/srv/irclogs.ubuntu.com/2009/09/16/#launchpad-meeting.txt

=== bigjools-afk is now known as bigjools_
=== bigjools_ is now known as bigjools
=== mrevell is now known as mrevell-lunch
=== mrevell-lunch is now known as mrevell
=== salgado_ is now known as salgado
barry#startmeeting15:04
henningeHey barry!15:04
MootBotMeeting started at 09:04. The chair is barry.15:04
MootBotCommands Available: [TOPIC], [IDEA], [ACTION], [AGREED], [LINK], [VOTE]15:04
barryhello everyone and welcome to this week's ameu reviewer's meeting.  who's here today?15:04
BjornTme15:04
abentleyme15:04
henningeme15:04
bacme15:04
noodles775moi15:04
sinzuime15:04
gary_posterme15:04
EdwinGrubbsme15:05
henningenoodles775: toi?15:05
flacosteme15:05
noodles775henninge: nah, it's just "Australish"15:05
adeuringme15:05
intellectronicame15:05
henninge;-)15:05
EdwinGrubbsnoodles775: instead of "ping" do you say "Oi!"15:06
noodles775You got it Ezza ;)15:07
barryderyck, salgado cprov bigjools danilo-afk allenap mars ping15:07
barry[TOPIC] agenda15:07
MootBotNew Topic:  agenda15:07
cprovme15:07
allenapme15:07
bigjoolsmeh15:07
deryckme, sorry15:07
salgadome15:07
barry * Roll call15:07
barry * Action items15:07
barry * UI review call update15:07
barry * new heading/title rules [barry]15:07
barry * 4-space indents for CSS styles [barry]15:07
barry * Peanut gallery (anything not on the agenda)15:07
barry 15:07
barry 15:07
barry[TOPIC] * Action items15:07
MootBotNew Topic:  * Action items15:07
barry[TOPIC] * Action items15:07
MootBotNew Topic:  * Action items15:07
* barry thanks mootbot15:08
barry * gary_poster and barry will transfer review guidelines from the old wiki and old old wiki to the new wiki15:08
gary_posterpostponed to post 3.015:08
barrysorry, gary_poster asked me to get mrevell a list of pages to pull over but 3.0 is swamping me15:08
danilosme15:08
barrywhat gary_poster said :)15:08
barry * cprov to update guidelines to clarify how code sensitive to env changes should be written15:08
cprovoi! sorry I forgot about it.15:08
barrycprov: we'll just carry that one over.  i'm hoping we'll be less stressed after this week or maybe next15:09
barryso no worries15:09
cprovbarry: sure, thanks.15:09
barry[TOPIC]  * UI review call update15:09
barry 15:09
MootBotNew Topic:   * UI review call update15:09
barrylet me see if beuno is around...15:10
intellectronicai think he's on holiday15:10
barryintellectronica: ah.15:10
barryright15:10
intellectronicaone important thing we discussed is how overburdened ui reviewers are15:10
barryintellectronica: yes.  and that this is an extra-ordinary time because of the push for 3.015:11
intellectronicato make it a bit easier until 3.0 is out, it's ok for people to land very simple changes (mechanical conversions and such) with ui=rs15:11
barrybeuno did say he was going to start working with a few people to get them ui graduated15:11
intellectronicai think martin has writted to the list about that15:11
barryyep.  intellectronica thanks15:11
barrythat's all i can think of.  intellectronica, anything else?15:12
intellectronicai think that's it15:12
sinzuiDoes everyone know that Blueprint pages are ui=rs?15:12
noodles775Woops, I just landed the sprint-add mechanical change with r=rs and ui=rs... sorry.15:13
barrynoodles775: right, still need a normal code review15:13
noodles775Yep.15:14
bigjoolsyeehaw15:14
intellectronicasinzui: does that include volunteers? i bet there are many people out there itching to give us a hand with blueprint conversions. if that happens, can we land their changes without a proper ui review?15:14
sinzuinoodles775: That is better than me. I was juggling 4 branches yesterday. I landed one by accident. I am glad bac approved it15:14
noodles775heh15:14
barryi promised bac to land one thru ec2 and then promptly pqm-submitted it ;)15:15
sinzuiintellectronica: I do not have an answer15:15
barryintellectronica: for volunteers, we still have to land the branch so i think a quick look couldn't hurt15:15
flacosteintellectronica, sinzui: if they are mechanical changes, yes15:15
flacostei still think we should do a UI review for non-mechanical blueprints UI change15:15
danilosintellectronica, I've got 12 templates converted to generic-edit for blueprints, already reviewed, should land soon15:15
flacostedoesn't need to be much involved15:16
danilosintellectronica, i.e. make that 12 templates removed and replaced with generic-edit.pt15:16
intellectronicadanilos: you're a star15:16
sinzuiintellectronica: blueprint 2.0 pages will not work when we release, so doing a bad conversion job fixes more than will be broken in production15:16
flacostethere is only 12 unclaimed blueprints templates on https://dev.launchpad.net/VersionThreeDotO/BlueprintsConversion15:16
barrymoving on..15:17
sinzuiThe two blueprint pages I converted yesterday had whitespace issues. text overlapped text. I had to make some markup changes to make the page layout15:17
barry[TOPIC] * new heading/title rules [barry]15:18
barry 15:18
MootBotNew Topic:  * new heading/title rules [barry]15:18
barryi want to make sure any question you have about the new rules get answered15:18
danilosbarry, excellent15:18
barryi know that the breadcrumbs/titles/headers need some refinement, but that will have to wait until after 3.0.  the rules we have now will not change until after 3.015:18
barryso... ask your questions now! :)15:19
bigjoolsplz barry just fix everythin kthxbye15:19
noodles775barry:  did you see deryck's email?15:19
flacostethat's actually a job for salgado :-)15:19
deryckbarry, beuno, and I talked off list about breadcrumbs in titles a lot already15:19
barrynoodles775: yes, but only in the sense that it made my inbox grow larger.  i haven't read it yet.  but deryck and i spoke this morning15:20
noodles775Great.15:20
barrysalgado is the breadcrumb man15:20
deryckI just replied to my own mail with the results of our call15:20
barryderyck: cool, thanks15:20
derycknp15:20
danilosok, so, I am wondering about the h2/h1 issue... it seems the h2 with context.title is gone on most pages? is that expected?15:21
danilosor, how do we make it appear again?15:21
barrydanilos: yes15:21
noodles775Add view.label?15:21
danilos(sorry if I didn't pay close attention to the new rules page)15:21
barrynoodles775: yes, it can be something like:15:21
barry@property15:21
barrydef label(self): return self.context.label15:21
danilosnoodles775, right, I am looking into figuring these out for all the translations page now that we've basically got everything converted15:21
barrynoodles775: i would like to make that simpler (e.g. fall back to context.title) but not for 3.015:22
noodles775Yep - that'd be great!15:22
bigjoolswe get rs=barry for fixing stuff like this I think you said?15:22
intellectronicabarry: maybe have a mixin that does that?15:22
barryintellectronica: i think it can be done on LaunchpadView and/or base-layout.pt15:23
barrybigjools: sorry, what was the "stuff like this" in that sentence?15:23
bigjoolsbarry: fixing existing 3.0 changed pages to conform to the new heading rules15:23
barrybigjools: right, +115:24
bigjoolswe were waiting for your branch to land so we could do that15:24
barryyep.  now you can jfdi! :)15:25
bigjoolsthanks for the extra work :)15:25
barry:)15:25
flacosteactually, it's less work15:25
flacostebecause otherwise, there were tweaks on a per-page basis15:26
bigjoolsfor future changes, yes15:26
flacostenow, it's the same thing everywhere15:26
barryupdating pagetests might not be fun15:26
* flacoste mumble about approval tests15:26
barrywhich is actually the main reason we aren't going to change the <title> rules until post 3.015:26
* bigjools dreams of killing pagetitles.py15:27
sinzuiA lot of converted pages appear to be using pagetitle :(15:27
barryplease everyone, take a healthy swing with a large baseball bat at pagetitles.py15:28
sinzuiWe'll know who cheated on day 1 of week 0 when pagetitles is deleted.15:28
deryckheh15:28
* bigjools uses a cricket bat instead15:29
* sinzui uses a small cannonette15:29
barrybigjools: just give it two healthy swings then15:29
bigjools:)15:29
sinzuium15:29
barryanything else on titles/headings/breadcrumbs?15:29
barrycool15:30
sinzuiour designer is not available and I have not seen a design for the front page. Are we changing the page macro and declaring victory?15:30
bigjoolswhile we're on the subject of UI, some of the two-column <dl>s are a bit borked if an item uses an icon15:31
sinzuileading icon?15:31
* bigjools looks for an example15:32
bigjoolsyes leading15:32
bigjoolssinzui: https://edge.launchpad.net/ubuntu/+source/kdepim/15:33
bigjoolsanyway, OT for this meeting I guess15:34
barryk, let's move on15:34
barry[TOPIC]  * 4-space indents for CSS styles [barry]15:34
MootBotNew Topic:   * 4-space indents for CSS styles [barry]15:34
barryfairly simple one i think.  most of our css in styles-3-0.css are 4 space indents15:34
bigjoolsJFDI15:35
barryany objections to keeping 4 space indents?15:35
barry515:35
barry415:35
noodles775Nope - guessing it was just 2-spaces from pre-minimization days?15:35
barry315:35
sinzuikeeping it? I intentionally set it to 4, who put something else15:36
barrysinzui: dunno15:36
noodles775sinzui: there's old stuff in style.css with 2 spaces I think.15:36
barryrs=me on fixing them for the next person to touch the file15:36
barry4 spaces it is15:36
barry[TOPIC] peanut gallery15:36
MootBotNew Topic:  peanut gallery15:36
sinzuiThere should not be. stuff requires porting from specific CSS to generic15:36
* bigjools has a peanut15:37
barrybigjools: shuck it!15:37
bigjoolsok15:37
bigjoolsreal quick, but I sometimes see some obtuse page test code that does this:15:37
sinzuiThere should not be a zillion p.<class_that_is really_useful_but_can_only_be_used_by_paragrpahs>15:37
bigjools >>> browser.getLink("xxx").click()15:37
bigjools >>> print browser.url15:37
bigjools http://launchpad.dev/blah15:37
abentleybigjools: Then take some pictures of it, and you'll have your own peanut gallery.15:37
bigjoolswhich causes an unnecessary page load15:37
bigjoolsyou can just do:15:37
bigjools >>> print browser.getLink("xxx").url15:37
bigjoolsinstead15:38
bigjoolsEOT15:38
BjornTbigjools: shouldn't the test make sure that the link leads to the right page?15:38
barrybigjools: oh, you mean if you aren't doing anything else on the target page?15:38
bigjoolsBjornT: they are the exact same test15:38
sinzuibigjools: barry: I think there is a misunderstanding here15:39
bigjoolsbarry: yes15:39
BjornTbigjools: no. the first one makes sure the link isn't a 404. your version doesn't15:39
bigjoolsBjornT: if the test is doing nothing else, my version is better.  Loading a page and doing nothing is a bad test.15:39
sinzuiI do what bigjools is suggesting when I test that a view provides expected content, but a story is about link traversal15:39
BjornTbigjools: well, it still depends on the intention of the test15:40
bigjoolsit should ideally have a separate test for that page15:40
bigjoolsBjornT: yes, agreed15:40
bigjoolsbut it's just something to look out for15:40
bigjoolsI am on the rampage against slow tests15:40
bigjoolsand this is low-hanging fruit for a big gain15:40
sinzuibigjools: most of the slow tests are pagetests that are checking the contract of a view. Covert them to a unittest or a doctest of the view.15:41
barrysinzui: +1  view tests rock15:41
bigjoolsyes, I think that's a separate issue to this though15:41
bigjoolsif another page test file tests the page, you don't need to load it somewhere else just to check a link exists15:42
bigjoolsanyway, that's it15:42
sinzuibigjools: right. That is why I argue we have far too many pagetests15:42
barrybigjools: cool thanks15:42
barry3m left.  anyone else?15:42
BjornTbigjools: well, if some other test makes sure you can navigate to that page, yes. that's what really is happening there. from page A we can reach page B15:43
barryokay, i think we're done.15:44
barry#endmeeting15:44
MootBotMeeting finished at 09:44.15:44
noodles775Thanks barry!15:44
barrythanks everyone15:44
deryckthanks barry15:45
bigjoolsBjornT: I don't think you need to click through to ascertain that though15:45
bigjoolscheers barry15:45
bigjoolsBjornT: if the other test opens the same URL15:45
henningebigjools: I don't get the core of the discussion here.15:46
BjornTbigjools: again, it's testing that you can navigate to the page, not that you can open it. (and again, it depends on the intention of the test, which isn't always easy to know)15:46
henningebigjools: are you saying that 'print browser.url' triggers a page load like 'click()' does?15:46
bigjoolsall you need to know is that the link exists15:47
bigjoolshenninge: no, it doesn't, that's the point15:47
bigjoolsif the link exists then you can assume it works15:47
BjornTbigjools: what if the link is a 404?15:47
bigjools*provided* you have another test that opens the same URL15:47
BjornTbigjools: the point with test is that you don't have to assume that things work, you can make sure ;)15:47
bigjoolsif you don't open the link anywhere else then yes, you must click it15:47
BjornTbigjools: and provided you keep the two tests in sync15:47
bigjoolsthat's easy enough15:48
BjornTbigjools: it is? how?15:48
bigjoolsbut it also separates tests in a nicer way15:48
bigjoolsboth tests will fail if you change the URL15:48
sinzuibigjools: I don't think this is an issue is we separated the test of the view's contracts and expected out put from the simple story of link traversal15:49
sinzuis/is/if/15:49
BjornTbigjools: not necessarily. what if the page name is hardcoded in the template?15:49
bigjoolsBjornT: I don't understand the point?15:49
BjornTbigjools: page A links to page B (having a <a href="B">B</a> in the page. you have a test that opens B.15:50
BjornTbigjools: what happens if you rename B to C, forgetting to change the link in page A?15:50
bigjoolsnothing changes from the scenario I posted in the meeting15:51
bigjoolsit would fail in the same way15:51
bigjoolsie not fail :)15:51
BjornTbigjools: not. the original version would fail. your version wouldn't.15:51
BjornTbigjools: click() fails if it goes to a 40415:52
bigjoolsyes, but we always redirect from old URLs.  if we don't then that's bad15:52
bigjoolsbut I see your point15:52
BjornTbigjools: my main point is that it's not always a good idea to fix those cases. pagetests should test workflows, not single pages15:52
BjornTbigjools: there are many cases where we don't redirect from old URLs15:53
bigjoolsI still think we need to avoid extra page loads15:53
bigjoolsthey are expensive15:53
bigjoolshow often do we change URLs?15:53
BjornTbigjools: you're suggesting we should stop testing for things we only change rarely?15:54
sinzuibigjools: What is wrong with my suggestion to separate content testing in a view test from a browser test that checks links?15:54
bigjoolssinzui: nothing, it's great15:54
bigjoolsBjornT: rarely, or never?15:54
BjornTbigjools: both. there's no such thing as 'code that will never change' ;)15:55
bigjoolsBjornT: have you looked at Soyuz lately? :)15:55
bigjools</joke>15:55
BjornTbigjools: my main point is, we shouldn't blindly reduce test coverage to make things faster15:56
bigjoolsBjornT: it's a case-by-case consideration, I understand your point and agree, but I think that in some cases the test is slow for no reason15:56
BjornTbigjools: right, i agree, it's a case-by-case consideration, that was where i was going15:56
bigjoolsso we agree in our agreement :)15:57
=== danilos is now known as danilos-afk
=== salgado is now known as salgado-lunch
=== salgado-lunch is now known as salgado
=== cprov is now known as cprov-afk
=== salgado is now known as salgado-afk
barry#startmeeting23:30
MootBotMeeting started at 17:30. The chair is barry.23:30
MootBotCommands Available: [TOPIC], [IDEA], [ACTION], [AGREED], [LINK], [VOTE]23:30
barryhi guys23:30
rockstarni!23:30
wgrantme23:31
thumperhi23:31
barryjml, mwhudson ping23:31
jmlhi23:31
barryso.  let's start with a recap of ameu23:32
mwhudsonhi23:32
barryall updates to blueprint pages and all mechanical changes are ui=rs23:32
barrythey still need a code review though23:32
barrywgrant: that includes volunteers :)23:32
mwhudsonblueprints?  what's that again? :)23:32
barry:D23:32
barryuse 4 space indents in css files23:33
wgrantbarry: Tempting, tempting...23:33
barrythat's it!23:33
mwhudsoncool, short and sweet23:33
barrythumper: has something for today...23:33
rockstarthumper landed a new toy today.  He should talk about it.23:33
thumper:)23:34
thumperr9475 of devel has a new method on TestCase23:34
thumperdef assertStatementCount(self, expected_count, function, *args, **kwargs):23:34
thumperit uses the StormStatementRecorder23:34
thumper(also in r9475)23:34
thumperyou need to be careful about the state of the store cache23:34
jmlthumper, wow, that's a great idea :P23:34
thumperjml: :)23:35
thumperbut it is good for asserting that you aren't hitting the DB when you don't expect to23:35
mwhudsonthumper: can you use the StormStatementRecorder to find out more about the actual queries than just the count?23:35
rockstarthumper, can we find a way to get the information from StormStatementRecorder into every HTTPResponse for our dev server?23:35
mwhudsonalthough i'm having a hard time thinking about why you'd want that, now i've said it...23:36
thumpermwhudson: if the count doesn't equal, it prints out the actual statements in the fail message23:36
barrythumper: when you say "you need to be careful about the state of the store cache" what does that mean?23:36
mwhudsonthumper: cool23:36
thumperbarry: if you are creating objects in the test, then they are in the cache23:36
thumperbarry: so factory.makeBranch will already have the branch owner in the cache23:36
thumperwhere as if you have just loaded the branch itself, it won't be23:36
thumperso23:37
thumperyou need to do something like:23:37
thumperstore = Store.of(obj)23:37
thumperstore.flush()23:37
thumperstore.reset()23:37
thumperreload the obj somehow using a utility23:37
thumperthen assert counts23:37
thumperthe store.reset() removes the hidden storm store attribute of the object23:37
thumperso you can't just use: store.reload(obj)23:38
thumperit doesn't work23:38
barrythumper: this sounds cool even today when i'm more fully awake :)  please email launchpad-dev to let people know about it and/or add it to our dev wiki23:38
thumperthis _maybe_ solvable with enough storm-fu23:38
rockstarthumper, I think the landscape guys might like to know about it too.23:38
thumperperhaps23:39
thumperI'm using it to confirm that my "priming of the storm cache" actually does what I expect23:39
barrythumper: this is cool, thanks for adding it, and please do let everyone know about23:40
thumperok23:41
barryanything else guys?23:41
rockstarNot from me.23:41
thumperthat's it from me23:41
barrywgrant, jml, mwhudson ?23:41
jmlnot from me23:41
mwhudsonnope23:42
barrygreat, thanks everyone!23:42
wgrantno23:42
barry#endmeeting23:42
MootBotMeeting finished at 17:42.23:42
* rockstar takes the dog for a walk.23:42

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!