/srv/irclogs.ubuntu.com/2010/08/18/#launchpad-reviews.txt

=== jtv changed the topic of #launchpad-reviews to: On call: jtv || reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== mwhudson_ is now known as mwhudson
lifelesshttps://code.edge.launchpad.net/~lifeless/launchpad/registry/+merge/3295305:59
lifelessjtv: ^05:59
jtvlifeless: I take it this is a review request?05:59
lifelessyes please05:59
=== jtv changed the topic of #launchpad-reviews to: On call: jtv || reviewing: lifeless || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jtvlifeless: every time someone opens a new communication with the word "So," I'm tempted to replace it with "Therefore."06:01
jtvlifeless: I wasn't aware of ValidPersonCache.  We used to have some database views for optimization of translation exports, and we got a tremendous speedup by getting rid of them.06:03
lifelessjtv: yeah06:06
lifelessI wasn't aware of it either06:06
lifelessI think it came with the openid stuff, or something06:06
jtvlifeless: what are the "# --" comments?06:06
jtvah, I see now06:06
lifelessclarity in a long function which is simple-but-extended06:07
mwhudsoni think that validpersoncache was actually a cache at some point06:08
mwhudsonbut that changed, maybe during the account/person split06:09
* mwhudson may very well be wrong, of course06:09
jtvlifeless: I can't say I care much for the mixed style of passing arguments: chucking the first one in right after the opening parentheses but then tab-indenting the following ones.  Could you align the first argument with the following ones in line 37 of the diff?  I'd also appreciate a matching change in line 52.06:10
jtvconditions = AND(06:11
jtv    conditions,06:11
jtv    Or(...06:11
jtv(I gather the mixing of SQLObject AND and Storm Or is harmless then)06:11
lifelessthe AND is a mistake06:12
lifelessI'll change it06:12
lifelessthe indenting shows grouping, I think its much less clear without it06:12
lifelessaim for readability06:12
jtvThat's just the thing.  I think this is more readable, not less:06:14
jtvconditions = And(06:15
jtv    conditions,06:15
jtv    Or(06:15
jtv        Account.status == None,06:15
jtv        Account.status == AccountStatus.ACTIVE))06:15
lifelessI can do that06:15
lifelessthat wasn't what you seemed to be asking for06:15
jtvWell I figured you'd find out soon enough that you couldn't take the first argument to the left, and so either had to go to a new line or move the following argument to the right.06:18
jtv(I prefer the former, but would also accept the latter)06:18
lifelessjtv: I don't see the point of moving conditions to a separate line06:18
jtvlifeless: it makes it much easier to see that the line needs continuation.06:19
lifelessreally?06:19
jtvTo me, very.  It also makes it easier to see that in terms of grouping, the "conditions" is on par with the "Or."06:19
lifelessso06:19
lifelessI will do this06:19
lifelessbut if we do it consistently in the function06:19
lifelessit will add 30% or so to a long function06:20
lifelessthats unpleasant06:20
lifelessI presume you're looking at the diff only atm ?06:20
jtvI also looked at the source file; it could do with some cleanup, yes.06:21
lifelessI think its definitely cleaner on the valid = (06:22
lifelessline06:22
lifelessI remain ambivalent at best on the conditions section06:22
lifelessbut done, for the stuff in the diff06:22
jtvThanks.  I think the problem with the length of the method is just exposing that the method is too long.06:23
jtvISTM prepopulate_person really just wants to be driven by a type → attribute name dict.06:24
jtv(Although aliases may get in the way)06:25
lifelessrev 11371 pushed for your pleasure06:25
* jtv shudders with delight06:25
lifelessin future work I would like to push the adapters down into the base property definitions06:25
lifelessand that way the code is shared06:25
lifelessthere was just not-quite-enough tuits in doing this orginally06:26
jtvThe adapters being the bits that figure out where each result column goes?06:26
jtvlifeless: r=me.  May you find a nice, round tuit soon.06:28
lifelessyes06:28
lifelessthank you06:29
lifelessI'll finish chatting with stub about this before landing06:29
=== jtv changed the topic of #launchpad-reviews to: On call: jtv || reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jtvlunchtime!06:31
=== jtv is now known as jtv-eat
=== jtv-eat is now known as jtv
=== jelmer changed the topic of #launchpad-reviews to: On call: jtv, jelmer || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jelmer'morning jtv09:36
jtvhi jelmer09:36
jtvThank god you're here.  It's been a madhouse.  There was a branch to review.09:37
jtvA very small one, but still.09:37
jelmer:-)09:37
jelmerjtv: I have a branch up for review if you have time.09:39
jtvjelmer: that's what ocr is for.09:39
=== jelmer changed the topic of #launchpad-reviews to: On call: jtv, jelmer || reviewing: -, jelmer || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== jelmer changed the topic of #launchpad-reviews to: On call: jtv, jelmer || reviewing: -, jml || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jelmerjtv: Just trying to be polite :-)09:40
jelmerjtv: The MP is at https://code.edge.launchpad.net/~jelmer/launchpad/613468-xb-ppa/+merge/32908.09:41
=== jtv changed the topic of #launchpad-reviews to: On call: jtv, jelmer || reviewing: jelmer, jml || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jtvjelmer: in line 26 of the diff, I take it self._dict is a dict… do you really want to iterate over the keys there?  If so, better make it explicit.09:45
jelmerjtv: Yep, that's indeed the intention. I'll change it to use iterkeys().09:46
jtvthx09:46
jtvjelmer: are you using a list of tuples for the user-defined fields?  Wouldn't a dict make more sense there?09:55
jtvAlthough I can see that would upset some ordering in the tests, so you'd want to use assertContentEqual instead of assertEqual there.09:57
jelmerjtv: The order in the control field could matter; we discard that information at the moment because we convert it to a dict, but in general order is preserved in Debian control files.09:57
jtvOK09:58
jtvjelmer: then another question: don't you need any kind of escaping?  For multi-line text attributes for instance?09:58
jelmerjtv: That's already done for us, as the input file would have the same escaping.09:59
jelmerPerhaps I should add some tests to verify that though.09:59
jtvI'd guess you'd want a test to verify that problems with this are caught on input.10:00
jtvjelmer: btw kudos for breaking out test_preserves_order and test_files.  I'd also break out the "ignores None" part though, because it's a bit implicit.10:04
jtvjelmer_: you blinked10:09
jtvdon't know if you got this earlier:10:09
jtv(16:04:00) jtv: jelmer: btw kudos for breaking out test_preserves_order and test_files.  I'd also break out the "ignores None" part though, because it's a bit implicit.10:09
jtv(time is UTC+0700)10:09
=== jelmer_ is now known as jelmer
jelmerjtv: Evolution's memory usage is bringing my laptop down on a regular basis, it's getting a bit ridiculous.10:11
jelmerjtv: Thanks, I hadn't seen that.10:11
* jtv stopped trying to use evolution after a few machines decided spontaneously to wipe his calendars and ensure somehow that they couldn't be set up again10:12
jtvWhen did catastrophic data loss become acceptable outside the windows world?10:12
jelmerMuch as I'd like to avoid it I'm storing my private calendar in Google calendar these days.11:25
jmljelmer, linux needs a good desktop calendar app11:44
jtvjelmer: sorry, got distracted and completely forgot to complete your review.  All I had left was some simple layout issues.11:46
jelmerjtv: No worries11:46
jelmerjml: It also needs a good email client, still.11:46
jtvjelmer: in lib/lp/archiveuploader/nascentuploadfile.py line 334 or thereabouts, could you normalise the list comprehension?  Something like:11:47
jmljelmer, I guess mutt is still the best.11:47
jtvjelmer:11:47
jtvreturn [11:47
jtv    (field, contents)11:47
jtv    for (field, contents) in control11:47
jtv    if field not in self.known_fields]11:47
jtvjelmer: also, if it doesn't cause conflicts in other branches, could you reformat the __all__ in lib/lp/archiveuploader/tests/__init__.py to our standard one-item-per-line list notation?11:48
jelmerjtv: Sure, will do.11:49
jtvthx11:49
jtvjelmer: there's also one in lines 166—167 of the diff.  A bit hard to figure out the nesting the way it's currently grouped.11:50
jelmerjtv: do we have a style guide for list comprehensions? What you're proposing looks reasonable, but it'd be nice to have something to fall back to.11:50
jtvjelmer: I know we used to…  In any case I think it's common sense not to break lines in unexpected places.  Looks a bit like the twins in FC Knudde completing each other's text balloons.11:51
=== danilo_ is now known as danilos
jelmerhehe11:52
jtvjelmer: I'm so glad I can talk to someone who gets that one.  :-)11:56
jtvjelmer: in line 178 of the diff, there's a weird empty line in the docstring for extend.  Did you plan to write something more there?11:57
jelmerjtv: Nope, that's a formatting glitch. FIxed.12:03
jtvthx12:03
jtvjelmer: Another mis-formatted list in lines 229—245 of the diff.  Maybe better put it in a variable of its own.12:03
jtv(Did you run "make lint" btw?)12:03
jtvSame for 266—29112:04
jelmer"make lint" is unfortunately quite chatty about some of the files that I've touched12:06
jtvI'm not surprised.  :)  Try to do some drive-bys where you can, and make sure none of your own work is implicated.12:07
jtvMeanwhile, branch approved.12:07
=== jtv changed the topic of #launchpad-reviews to: On call: jelmer || reviewing: jml || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jelmerWill do, thanks for the review.12:08
jtvno worries, have a good one!12:08
* jtv is approaching eod12:09
jelmerjml: wow, this is one big branch :-)12:19
jmljelmer, yeah. sorry.12:20
jelmergmb: hi12:32
jelmergmb: I've updated the branch you reviewed yesterday and was wondering if you could have another look.12:32
jelmerjml: is there any reason you use Branch.open_containing vs Branch.open ?12:36
jmljelmer, I don't, it's preserved from the original. I reckon we should use Branch.open & would happily change the code.12:36
jelmerjml: --not-really doesn't really explain to me what it's not doing12:38
jelmerWhat about --no-tests or --test-setup-only ?12:39
jtvjelmer: I have to run now, but was hoping for a review anyway: https://code.edge.launchpad.net/~jtv/launchpad/bug-617431/+merge/3298612:39
jmljelmer, I'm going to delete the whole thing. it's buggy anyway12:40
jelmerjtv: Sure, no problemo12:40
jtvthanks!12:41
jtvStill updating diff.  :(12:41
jtvjelmer: in case the cover letter doesn't make it clear, we're already using the msgfmt program (in tests as well as in production) so msgunfmt, which my test uses, should be available.12:41
jelmerjml: ok, that renders that concern moot then. Those are the only two real points I have. I like the class splitup and testing ftw.12:42
jelmerjtv: Ok12:42
jmljelmer, cool, thanks.12:42
jtvjelmer: argh, the diff is polluted because I branched from devel and proposed for production-devel.  Hang on.12:43
jtvjelmer: this one should fare better — https://code.edge.launchpad.net/~jtv/launchpad/pd-bug-617431/+merge/3299112:49
jelmerjtv: thanks12:50
jtvgargh.  the push got interrupted so the diff is still incomplete12:51
jtvre-pushing...12:51
jtvAh no, it was entirely my fault.  A different push got interrupted.12:53
jelmerI'm going for lunch now, will have a look afterwards.12:53
jtvjelmer: ok12:53
=== matsubara-afk is now known as matsubara
gmbjelmer, Sure, I'll take a look in  the next half hour13:08
=== leonardr_ is now known as leonardr
=== mrevell is now known as mrevell-lunch
=== mrevell-lunch is now known as mrevell
jelmergmb: Thanks for the re-review.14:14
gmbnp14:15
=== EdwinGrubbs changed the topic of #launchpad-reviews to: On call: jelmer, Edwin || reviewing: jml || 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, Edwin || reviewing: jtv, - || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
marsjelmer, thanks for reviewing jml's branch15:18
jmlmars, did you write the daemonize function in ec2test remote?15:19
marsjml, no, I thought gary did15:19
marsjml, argh, the file history is broken!  Maybe bzr explorer can jump the gap15:22
jmlmars, no matter, I think I'm figuring out the reason why something is so without having to consult the original author15:23
=== salgado is now known as salgado-lunch
sinzuiEdwinGrubbs, jelmer: can either of you review my https://code.launchpad.net/~sinzui/launchpad/delete-team-2/+merge/32948 branch?16:11
EdwinGrubbssinzui: sure16:12
=== EdwinGrubbs changed the topic of #launchpad-reviews to: On call: jelmer, Edwin || reviewing: jtv, sinzui || queue: || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
EdwinGrubbssinzui: does the test runner no longer require the test_suite to find tests?16:15
sinzuiEdwinGrubbs, it does not16:15
bigjoolssalgado-lunch: -1 on your last change, I use those policies on the command line for testing16:19
EdwinGrubbssinzui: r=me, login_person and login_celebrity are not in alphabetical order16:26
* sinzui will fix16:27
sinzuiand make lint happy16:27
leonardrjelmer, edwin: please add https://code.edge.launchpad.net/~leonardr/lazr.restful/integrate-optimized-len/+merge/33023 to the queue16:48
=== jelmer changed the topic of #launchpad-reviews to: On call: jelmer, Edwin || reviewing: jtv, sinzui || queue: [leonardr] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== salgado-lunch is now known as salgado
salgadobigjools, you'll still be able to use them; they'll just live closer to the tests now.  although I'd have to change that XXX into a comment explaining why we want the policies registered all the time17:02
bigjoolssalgado: ok that's fine if we can still use them from the command line17:03
=== matsubara is now known as matsubara-lunch
=== deryck is now known as deryck[lunch]
=== Ursinha is now known as Ursinha-lunch
jmljelmer, thanks for that review, btw17:41
jmlsinzui, actually, you might prefer login_as to login_person17:42
sinzuijml, Yes, i do. I think I want to update all the registry tests to use the new login* hlpers17:43
jmljelmer, it turns out there was a serious bug preventing it from successfully daemonizing. I've written a fairly hideous test for this and fixed the issue. Once I've verified that it works, could I ask you for a review of the interdiff?17:43
jml(or now, if you don't mind reviewing possibly broken code)17:43
jelmerjml: yeah, I think so17:47
jelmerEdwin: Will you have time to look at leonardrs mp?17:47
jelmer(I'm going to EOD soon, don't want to promise to take on too much work before then)17:47
EdwinGrubbsjelmer: sure, I can do it.17:48
jmljelmer, http://pastebin.ubuntu.com/480006/17:50
jmljelmer, the main difference in the code is passing in & using filenames rather than file-like objects.17:50
jelmerjml: *nod*17:54
=== matsubara-lunch is now known as matsubara
=== deryck[lunch] is now known as deryck
=== Ursinha-lunch is now known as Ursinha
jelmer'morning thumper19:34
jelmerthumper: when you have a moment, any chance you can take a look at https://code.edge.launchpad.net/~jelmer/launchpad/always-import-link/+merge/32668 to check whether my approach is the right one for bug 504868?19:35
jelmerI'm not looking for a review necessarily, more of a post-pre-imp-call :-)19:36
=== benji is now known as benji-lunch
EdwinGrubbsleonardr: buildout couldn't find lazr.batchnavigator=1.2.219:57
leonardrEdwinGrubbs: it's not released yet. check out lp:lazr.batchnavigator19:58
jcsackettmars: ping20:00
sinzuijelmer, EdwinGrubbs: I have a very small branch for review: https://code.launchpad.net/~sinzui/launchpad/remove-mailman-beta-key/+merge/3304220:02
leonardredwin: actually, can you stop reviewing my branch? i've made a discovery that indicates it will screw up launchpad, so i don't want to land it now20:04
EdwinGrubbsleonardr: wow, I'm glad I hadn't approved it, even though I hadn't found anything wrong.20:05
leonardredwin: it's a problem with storm, not with this branch20:05
EdwinGrubbssinzui: I'll look at it20:08
=== EdwinGrubbs changed the topic of #launchpad-reviews to: On call: jelmer, Edwin || reviewing: jtv, sinzui || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
EdwinGrubbssinzui: oh, Francis already approved it with a comment.20:09
sinzuioh20:09
marshi jcsackett20:16
jcsacketthi mars. i was wondering if you wanted to continue reviewing the mp i had from yesterday, or if i should hand it off to on-call.20:17
marsjcsackett, if you uploaded a set of changes, you can hand just the changes off to the OCR20:19
marsthere should not be that many of them - a few dozen lines I would think?20:19
thumperjelmer: ack, I'll get to it after breakfast20:21
jcsackettmars: actually, lifeless introduced some good ideas that made it a larger change set, but i think i need to revise the cover letter and i'll pass it off to on call.20:23
marsjcsackett, that sounds good20:23
jcsackettcool. thanks mars.20:23
=== EdwinGrubbs is now known as Edwin-lunch
=== benji-lunch is now known as benji
=== jcsackett changed the topic of #launchpad-reviews to: On call: jelmer, Edwin || reviewing: jtv, sinzui || queue: [jcsackett] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jcsackettEdwin-lunch, jelmer: https://code.edge.launchpad.net/~jcsackett/launchpad/plus-participation-additional-fixes/+merge/3282020:45
jcsackettEdwin-lunch, jelmer: the mp is a little muddled b/c some review notes pushed the branch towards a much better solution than initially implemented. i revised the cover letter to reflect this.20:46
=== matsubara is now known as matsubara-afk
jelmerjcsackett: Sorry, I EOD'd a couple of hours ago but forgot to remove my name. Hopefully Edwin will have time to do a review.20:49
jcsackettjelmer: no problem, sorry to ping you. :-P20:49
=== salgado is now known as salgado-afk
=== Edwin-lunch is now known as EdwinGrubbs
EdwinGrubbsjcsackett: I can look at it.21:57
=== EdwinGrubbs changed the topic of #launchpad-reviews to: On call: Edwin || reviewing: jtv, sinzui || queue: [jcsackett] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jcsackettEdwinGrubbs: thanks!21:58
=== _mup__ is now known as _mup_
=== EdwinGrubbs changed the topic of #launchpad-reviews to: On call: Edwin || reviewing: jcsacket || queue: || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
thumperjelmer: I wish we had a regenerate diff button22:33
thumperjelmer: as that merge proposal you have has a lot of changes that aren't part of it22:33
lifelessthumper: why a button22:34
lifelessthumper: why not DTRT ?22:34
thumperlifeless: because we don't regenerate the diff for all merge proposals on the target moving22:34
thumperlifeless: as it is most often pointless22:34
lifelessthumper: we could trigger an update if its stale when someone logged in views the page22:34
james_wprerequisite moving?22:34
lifelessjames_w: trunk changing doesn't make the mp diff change22:35
thumperlifeless: it may well do22:35
thumperlifeless: for certain situations22:35
james_wthe prerequisite branch changing certainly can22:35
thumperjames_w: agreed, and we don't do that yet22:35
jelmerthumper: Should I try to resubmit ?22:47
=== Ursinha is now known as Ursinha-bbl
=== jcsackett is now known as jcsackett|afk
thumperjelmer: perhaps recreating targetting devel?23:07
jelmerthumper, I'll have a look23:10
EdwinGrubbsjcsackett|afk: I have a question about the team_memberships attribute.23:29

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