/srv/irclogs.ubuntu.com/2010/09/29/#launchpad-reviews.txt

thumpermwhudson: ping03:26
mwhudsonthumper: otp03:26
=== StevenK changed the topic of #launchpad-reviews to: On call: StevenK || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
thumperhttps://code.edge.launchpad.net/~thumper/launchpad/branch-distro-avoid-scan/+merge/3694504:04
thumpermwhudson: trivial 3 line review04:04
StevenKArgh, I can't review that :-)04:04
thumperStevenK: well you could04:04
thumperStevenK: but it is super trivial04:05
mwhudsoni can mentor the review i guess04:05
mwhudsonthumper: oh haha, so the branches on disk were ok but the db was wrong?04:06
thumpermwhudson: yep04:06
mwhudsonoops04:06
thumperwasn't too bad04:06
thumperjust a tweak to avoid the scan04:06
thumpermwhudson: I'm looking at writing a script to fix up the stacking of the maverick branches that are stacked on lucid04:07
mwhudsonthumper: do we have any idea what happened there?04:07
thumpernot yet04:07
thumperI was thinking I should talk to james_w to ask04:07
thumperbut was too busy this morning04:07
mwhudsonthumper: branch reviewed04:07
thumperta04:08
thumperwallyworld__: ping04:35
wallyworld__thumper: pong04:35
thumperwallyworld__: skype04:36
jtvstub: I've completed my follow-up.06:08
jtvSorry, poolie.06:08
jtvNot stub.06:08
pooliejtv, any chance of yet another review?08:46
jtvpoolie: arrh!  Well, I _am_ supposed to be OCR today (though being lazy because of health issues)08:52
jtvpoolie: or do you mean, another round of the same one?08:52
poolieanother round of the same one08:53
poolieit actually got simpler, and perhaps smaller08:53
poolieif you can count it as OCR that would be a great use of the role08:55
* jtv looks08:55
jtvpoolie: what is a "relevant" feature controller?  What are the irrelevant ones?08:58
jtvI guess the "workaround for bug 631884" comment explains it—for as long as we keep that comment.08:59
_mup_Bug #631884: multiple variables pointing to FeatureController get out of sync easily <feature-flags> <qa-untestable> <Launchpad Foundations:New for lifeless> <https://launchpad.net/bugs/631884>08:59
jtvthank you mup, you're always there when we _don't_ need your help :)09:00
poolie:)09:01
poolie"the one you should look at"09:01
pooliei could change it to "for request" or "for thread"09:01
pooliebut i wasn't sure i wanted to commit to that09:01
poolieperhaps if you pass nothing it must be per thread in some way09:02
jtvpoolie: given that it's complex, I can understand your reluctance.  But it shows that there's often more good material for a docstring than you'd expect!  Then, in line 74 of the diff (the __all__ in lib/lp/services/features/browser/edit.py), there should be a comma.09:02
pooliek09:03
jtvpoolie: btw are all fields required to be nonempty?09:06
jtv(I'm guessing yes)09:06
poolieyes09:07
jtvThat's good to know.  And I guess the parser reads multiple spaces as a single separator?09:08
poolieyes09:08
jtvIs that covered by tests?09:09
poolieyes09:09
poolietest_setAllRulesFromText09:10
jtvAh.  It's implicit.09:12
jtv(And still weirdly indented)09:12
jtvIllustrates how quickly you can have too much data and verify too many things in one test.09:13
jtvIf you feel inclined to point out to me that I'm a fascist reviewer, rest assured that I've been told this before.09:14
poolieah, i am feeling a bit impatient with this at the moment09:14
pooliein bzr, i feel that it's more important to build up the quality of the contributors than the quality of their early patches09:14
pooliei don't mean to sound snarky09:15
pooliewhat i mean is that it's useful to describe the rules so people will use them automatically next time09:15
pooliemore so than fixing up stuff that's unidiomatic09:15
poolieit's interesting nobody picked up on my camelCase functions in the earlier landings in this theme09:16
jtvpoolie: ah!  My apologies.  I've known you as a team member so long that it never really occurred to me that you've been working more in a different codebase.09:16
* lifeless doesn't care particularly about camel-or-not09:16
pooliethis is about my 6th lp patch ever09:16
lifelessit seems inconsequential because we work with heterogenous stuff09:16
pooliecertainly the biggest so far09:17
jtvAnd I've been assuming that you've heard all this before.09:17
jtvMy mistake.09:17
poolienp09:17
pooliei appreciate being told09:17
lifelessso enforcing it in LP simply makes the inclination to do stuff that should be out of LP in LP even stronger09:17
pooliemaybe my 10th patch; certainly less than the 20th09:17
jtvAll in the same ballpark.  :-)09:18
jtvlifeless: about the camel (or dromedary, I guess, what with the one missing hump), you intended at one point to take the difference with PEP8 to the list.09:19
jtvlifeless: did you ever get around to that?09:19
lifelessjtv: I did, I'm frying one fish at a time.09:19
lifelessthe current one is review size limits09:20
poolielifeless: you want to push them down or dispense with them?09:20
jtvlifeless: I must have missed it.  :(  Anyway, my reaction to what you said was to accept either dromedary or lower-with-underscores for methods; but afaik dromedary for stand-alone functions is wrong either way, right?09:20
pooliei care more about the elapsed time than the number of lines09:20
lifelesspoolie: I want to remove them from the scope of reviews.09:21
lifelesspoolie: I think its a valueless overhead to worry about09:21
pooliesurely it is in the submitter's best interests to do small patches anyhow09:21
jtvlifeless: I do see our lives being appreciably better now that we have the limit though.09:21
poolieif they're enlightened enough to realize it09:21
lifelesswell09:21
pooliethough there are overhead factors that push people away from doing small landings, istm09:21
jtvThe limit is more a reminder than a limit, in practice.09:22
lifelessline count in the diff is a poor surrogate09:22
lifelessfor anything.09:22
poolieright09:22
lifelessthere are two questions, in my mind.09:22
lifelessa) do we need a 'limit or negotiate' clause at all09:22
lifelessb) if we do, whats the right metric.09:22
lifelessI have points on both a) and b)09:22
lifelessfor a), assuming we have a perfect metric that isn't a poor surrogate09:23
pooliealso, and more urgently09:23
jtvthere's a wide gap between "perfect metric" and "not a poor surrogate"09:23
poolieany other feedback, jtv?09:23
jtvpoolie: yes, I was letting lifeless finish, but now that you ask:09:23
lifelessjtv: sure, assuming we have a non-poor surrogate09:23
lifelessnot all reviewers are equally fluent across the code base09:24
jtvpoolie: you use check_permission to see if the poster is permitted to make the change.  I'm not very confident on this one, but ISTM you can just leave that to Zope permissions checks.09:24
lifelessand across the domains09:24
pooliejtv i wondered about that too09:25
poolieit does seem unnecessary09:25
pooliebit of belt-and-braces there09:25
lifelessso the metric will need to be specific to the reviewer, which seems pretty awkward09:25
pooliei could just remove it09:25
jtvlifeless: to me, 800 lines works pretty well—both to justify effective time management for the OCR and to remind the developer that it's time to cut off.09:25
lifelessjtv: well, that talks to b)09:25
jtvpoolie: yes, I'd test (if it's not tested already; can't recall just now) and then remove the check09:26
lifelessjtv: staying with a), I think the primary thing is that patches be large enough to be confident in the change and small enough to be confident in it.09:26
pooliewhy would anyone want to do a large patch?09:26
lifelesspoolie: say they were rewriting the http stack for lp09:27
jtvSometimes there's significant overhead to breaking things up in smaller self-contained chunks.09:27
pooliethere may be reasons, but it would be interesting to know what they are09:27
lifelessit will be very hard to be sure that the direction is right until you've migrated everything across09:27
poolieright09:27
lifelessbut there is lot of risk in changing that at all, so doing it twice is undesirable09:27
lifelesswhich is one of the forms of overhead jtv refers to09:28
poolieassuming arguendo that's true, having done it, you might as well land it09:28
jtvOr consider what you've done a proof-of-concept.09:28
poolieright, or perhaps it is useful to see if you can improve just one area09:28
pooliebut it would depend on the case09:28
jtvConversely it can also happen that things get clearer and better just from the act of re-doing it in chunks.09:28
lifelessso, I'm saying that the pragmatic reality is:09:29
lifeless - patches smaller than $metric sometimes get asked to be rearranged09:29
pooliejtv, my thing does have tests for access control so i'll remove the check09:29
pooliehm, well, there was one thing there09:29
jtvpoolie: great, then the tests will tell you whether we're making a mistake.  :-)09:29
poolieit was about trying to give read access more broadly than write access09:29
lifeless - patches larger are routinely accepted when from trusted individuals or by particularly confident reviewers09:29
pooliehowever it seems like ~registry has launchpad.Edit on ILaunchpadRoot anyhow09:30
lifelesshaving a policy that doesn't match reality adds to the learning curve for new contributors09:30
pooliei need to go and cook soon09:30
lifelessso we should make it match reality, make reality match it, or just nuke it.09:30
lifelessfor b), I don't think there is a good nonsurrogate for 'how complex and risky a change is'. Plenty of one lines will pass tests but utterly break LP.09:31
pooliejtv, so that's the point of it09:31
lifelessplenty of 1000liner patches will just be pure and wonderful09:31
jtvpoolie: as long as you test { anonymous, unprivileged, edit, admin} × { view, modify} it should be safe to trust zope with the whole thing09:31
lifelesse.g. don't trust zope at all09:32
lifelessthis is a bug in our security framework that such tests are needed at all.09:32
pooliedo people actually bounce patches for being too big?09:33
jtvShouldn't normally happen, but if the reviewer doesn't have much time or isn't very confident, it gives them a reason.09:33
pooliewell, i added them because i didn't trust my understanding of it09:34
lifelessI've had a 200 line one deferred to another reviewer09:34
jtvAlso, we're not supposed to chuck oversized branches on the queue without first discussing it with the OCR.09:34
lifelessbut most of my branches are > 800, and reviewers generally take about 5 minutes to review them.09:34
lifelessThis is one of the reasons I think the metric is poor; its clearly possible to write textually long changes that are easily understandable09:35
jtvBut that's rarely been an issue.  Plenty of branches get submitted as "this branch is over the limit, _but_ it's mostly deletions" (or sampledata updates, etc.)09:35
pooliejtv ok, so09:36
pooliei've cleaned up the formatting and added a comment09:36
lifelessanyhow, its late, I have a 4am start to get to sydney tomorrow09:36
pooliei think the permission check is at most harmless09:36
* lifeless waves09:36
pooliei know!09:36
pooliego to bed, see you tomorrow09:36
jtv\o lifeless09:36
pooliewe can have lunch with steph if that suits your schedule09:36
lifelesspoolie: to avoid confusion; you're staying at home, we'll get to st leonards on our own steam.09:37
poolieright09:37
lifelesspoolie: I'll sms you when I'm in st leonards.09:37
pooliegreat09:37
pooliefly well09:37
lifelessthanks09:37
lifelesslunch could be fun09:37
lifelessI'm with you  / at the urban all thurs09:37
pooliejtv, i pushed a few more changes, if you're not unhappy with the overall impact could you land it for me?09:38
pooliei don't have pqm access atm09:39
jtvpoolie: OK; got a few more small things such as "x.get('foo') or ''" → "x.get('foo', '')"09:39
pooliethat's not the same thing09:39
jtvBut that shouldn't stop it from landing.09:39
pooliein the case of {a=None}09:39
jtvoic09:41
poolienice unicode though :)09:42
jtv<compose> - >09:42
jtvWaited for years for that one to be supported…09:43
jtvStill no Dutch "ij" ligature though.  :(  It's a letter.  It's capitalized as one: IJsselmeer.09:43
jtvTo type Šegan, use <compose> c S09:43
pooliemm i know09:44
poolieit's a shame there's no good ui to discover these things09:44
jtvOoh yes these tests are much nicer09:45
poolieother than googling 'compose key'09:50
poolieok, really going now09:50
pooliethanks very much for hte reviews09:50
jtvnp09:58
jtvcya09:58
=== noodles775 changed the topic of #launchpad-reviews to: On call: StevenK || Reviewing: - || queue: [noodles775] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
noodles775StevenK: hi! I'm guessing you're not really still reviewing, but if you're keen for one: https://code.edge.launchpad.net/~michael.nelson/launchpad/649599-ajax-comment-on-dsdiff/+merge/3696610:54
StevenKnoodles775: I'm so not, sorry11:06
=== StevenK changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [noodles775] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
noodles775StevenK: no worries, enjoy your evening!11:07
=== allenap changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [noodles775, allenap] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== StevenK changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [noodles775, allenap, StevenK] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== jelmer changed the topic of #launchpad-reviews to: On call: jelmer || Reviewing: noodles775 || queue: [allenap, StevenK] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
gmbHi jelmer; another one for your queue if that's okay with you.12:18
=== gmb changed the topic of #launchpad-reviews to: On call: jelmer || Reviewing: noodles775 || queue: [allenap, StevenK, gmb(http://bit.ly/gmb-bw-branch)] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jelmergmb: np12:26
=== mrevell is now known as mrevell-lunch
=== matsubara-afk is now known as matsubara
=== mrevell-lunch is now known as mrevell
=== Ursinha-afk is now known as Ursinha
=== jelmer changed the topic of #launchpad-reviews to: On call: jelmer || Reviewing: allenap || queue: [StevenK, gmb(http://bit.ly/gmb-bw-branch)] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== EdwinGrubbs changed the topic of #launchpad-reviews to: On call: jelmer, EdwinGrubbs || Reviewing: allenap || queue: [StevenK, gmb(http://bit.ly/gmb-bw-branch)] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== jcsackett changed the topic of #launchpad-reviews to: On call: jelmer, EdwinGrubbs || Reviewing: allenap || queue: [StevenK, gmb(http://bit.ly/gmb-bw-branch), jcsackett] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jcsackettjelmer, EdwinGrubbs: when you have time to get to mine in the queue, MP is here: https://code.edge.launchpad.net/~jcsackett/launchpad/registry-errors-649836/+merge/3699415:42
=== sinzui changed the topic of #launchpad-reviews to: On call: jelmer, EdwinGrubbs || Reviewing: allenap || queue: [StevenK, gmb(http://bit.ly/gmb-bw-branch), jcsackett, sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
noodles775jelmer: I must have used the wrong branch with bzr lp-propose-merge (although I thought I used db-devel).15:59
noodles775bzr lp-propose-merge lp:~launchpad-pqm/launchpad/db-devel <-- was what I used, not sure why it ended up targeted to devel.16:02
noodles775Ah, it was the first of two. nm.16:03
noodles775Thanks for the review.16:03
EdwinGrubbsStevenK: are you around?17:00
=== Ursinha is now known as Ursinha-lunch
=== benji is now known as benji-lunch
salgadosinzui, bdmurray, the continue/cancel links don't work if you access the page on the main vhost17:23
=== salgado is now known as salgado-lunch
bdmurraysalgado-lunch: ah! so from launchpad.dev not bugs.launchpad.dev?17:27
bdmurraysalgado-lunch: okay, I've recreated it now and will fix it.  thanks17:28
=== deryck is now known as deryck[lunch]
leonardrjelmer, edwingrubbs, i'm putting a simple branch into the queue17:43
leonardrhttps://code.edge.launchpad.net/~leonardr/lazr.restful/474522-type-error/+merge/3701817:43
=== leonardr changed the topic of #launchpad-reviews to: On call: jelmer, EdwinGrubbs || Reviewing: allenap || queue: [StevenK, gmb(http://bit.ly/gmb-bw-branch), jcsackett, sinzui, leonardr] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== Ursinha-lunch is now known as Ursinha
=== matsubara is now known as matsubara-lunch
=== benji-lunch is now known as benji
=== salgado-lunch is now known as salgado
=== deryck[lunch] is now known as deryck
=== EdwinGrubbs changed the topic of #launchpad-reviews to: On call: jelmer, EdwinGrubbs || Reviewing: allenap, jcsacket || queue: [StevenK, sinzui, leonardr] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
sinzuibac: would do you have time to read an apocalyptic branch https://code.launchpad.net/~sinzui/launchpad/apocalypse-interface-imports-3/+merge/3703219:00
=== EdwinGrubbs changed the topic of #launchpad-reviews to: On call: jelmer, EdwinGrubbs || Reviewing: allenap, sinzui || queue: [StevenK, leonardr] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
bacsinzui: yes19:03
=== matsubara-lunch is now known as matsubara
=== EdwinGrubbs changed the topic of #launchpad-reviews to: On call: jelmer, EdwinGrubbs || Reviewing: allenap, leonardr || queue: [StevenK] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
bacsinzui: i need to work on a [testfix] so your code review will have to wait19:30
=== jelmer changed the topic of #launchpad-reviews to: On call: EdwinGrubbs || Reviewing: leonardr || queue: [StevenK] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
bacsinzui: do you think the example.zcml had no purpose?20:36
sinzuiI never used it. Did you know it existed?20:38
bacsinzui: yeah, i'd seen it a time or two20:38
* sinzui find children20:38
bacsinzui: seems like it could have utility, unless it requires a lot of upkeep20:39
sinzuibac, where could I move the file? We have ignored it for 5 years20:58
bacsinzui: ok, delete it.20:58
=== salgado is now known as salgado-brb
abentleyrockstar: I can has review? https://code.edge.launchpad.net/~abentley/launchpad/test-feature-flags/+merge/3706121:40
rockstarabentley, ack.21:40
rockstarabentley, r=me21:42
abentleyrockstar: thanks.21:44
=== salgado-brb is now known as salgado
=== Ursinha is now known as Ursinha-bbl
=== matsubara is now known as matsubara-afk
=== salgado is now known as salgado-afk

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