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

=== vednis is now known as mars
wallyworld_StevenK: are you able to take another look at those recipe build listing branches? - i've made some changes as suggested by you and tim04:39
jtvHi gmb, got a very light review for you, with a bigger one to follow: https://code.launchpad.net/~jtv/launchpad/recife-pre-stats/+merge/4207907:42
=== jtv changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [jtv] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jtvNo reviewers today?08:00
=== jtv changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [jtv, jtv] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jtvstub: are you as busy as henning is?  Need some reviews!08:23
henningejtv: what makes you think I am busy? ;-)08:24
henningeNo staging - no QA08:24
jtvhenninge: okay, then I need some reviews!08:26
henningelet's do one at a time ... ;)08:26
=== henninge changed the topic of #launchpad-reviews to: On call: jtv || Reviewing: - || queue: [jtv, jtv] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jtvYes, let's.  :)08:26
=== henninge changed the topic of #launchpad-reviews to: On call: henninge || Reviewing: jtv || queue: [ jtv] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
henningewow, in-line diffs for updates.08:29
jtvYes, we have those now.08:32
henningejtv: very nice simplification of the test.08:43
henningejtv: I just don't see what you describe as "runs in both old-model and new-model statistics calculation."08:44
jtvIn all honesty, I did it to get the test to start up faster.  :-)08:44
jtvI clear both flags as an alternative to deleting the message.08:44
henningeah! so lines 148-151 could use a comment I think ;)08:46
henningejtv: but apart from that, r=me ;)08:46
* jtv looks08:46
jtvOK, I'll note that.08:46
henningethanks08:47
=== henninge changed the topic of #launchpad-reviews to: On call: henninge || Reviewing: jtv || queue: [ ] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
henningeok, the next branch is a bit larger08:48
jtvYup, though this pre-branch got it under the 800 line.08:48
jtvhenninge: actually, instead of a comment, how about I just fix getPOFilesWithTranslationCredits?08:49
henningein what way?08:50
jtvBy making it look at the translation side that's appropriate for the POFile, rather than always at is_current_ubuntu.08:52
jtv(In other words, updating it to the Recife model).08:52
jtvBy the way, my router had come back to life but went back into a coma again, so I'm on a slow edge connection today.  Makes it hard to  get to the kanban board. :(08:52
henningejtv: so I guess voice chat is out of the question?08:55
jtvhenninge: pretty much :(08:55
henninge:(08:56
henningejtv: if the test works as it is now you should finish the statistics stuff first - although I fear that is all inter-related.08:59
jtvhenninge: might as well finish this while you're reviewing—it's not a big change.09:00
jtvBetter this than forget to fix it!09:00
henningethat's cool, too09:01
jelmerg'morning!09:03
henningeHi jelmer ;)09:03
jelmerhenninge: Can I add another branch to the queue?09:03
henningejelmer: you always can ydd a branch to the queue ... :-P09:04
henninges/ydd/add/09:04
=== jelmer changed the topic of #launchpad-reviews to: On call: henninge || Reviewing: jtv || queue: [jelmer ] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jelmerhenninge: thanks (-:09:05
henningejtv: what does that change "Merging preparatory branch" mean? Where do all the property changes come from?09:05
jtvhenninge: I merged the branch you just reviewed, but since that one was branched off db-devel whereas this branch was branched off recife (which in turn was branched off an even older db-stable), it brought in a lot of other changes that won't show up in a diff against db-devel.09:06
henningeI see09:07
jtvIn other words: irrelevant updates.  :-)09:07
=== gmb` is now known as gmb
=== jtv changed the topic of #launchpad-reviews to: On call: henninge || Reviewing: jtv || queue: [jelmer, jtv] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
henningejtv: what's the trick in this?10:24
henninge137+        for count, in IStore(self).execute(query):10:24
henninge138+            return count10:24
henningeWould [0] not do the same?10:24
henningeor I think there is even a "first" method.10:24
jtvOnly if I listify first.  I wish I had a really concise way of stating it, but I'm willing to go with any suggestion you may have.  :)10:25
jtvOh, first, that might work.10:25
henningejtv: and what about "one"?10:26
henningeI am still trying to figure out why you'd only want the first, or why the query returns more than one.10:26
jtvThere is only one.10:27
jtvhenninge: first() does the trick.  Also magically turns the tuple-shaped row into a single int, which is what I really want.10:28
henningejtv: one() does not do that?10:28
jtvThe whole trick to that code was that I had a result set that looked like an iterator over [(n)], and I just wanted the n.10:29
jtvOh, hang on, first() did _not_ work.  What I saw was a screenful of errored tests.10:30
jtvThere is no "one" (or first) on this type of result set.10:31
jtvDuck-typing to the descue.10:31
jtvOr whatever the opposite of rescue is.10:31
henningejtv: what is "this type of result set" ?10:31
jtvPostgresResultSet.10:32
jtvStore.execute returns something different than Store.find.10:32
henningejtv: it has get_one, though10:33
henningehttp://people.canonical.com/~jkakar/storm/storm.databases.postgres.PostgresResult.html10:33
jtvah!10:34
jtvNow trying return IStore(self).execute(query).get_one()[0]10:35
jtvThat works.10:35
jtvThanks.  I always look through the documentation in the source code, but didn't find anything helpful.10:35
jtvChange pushed.10:41
henningecool10:47
jtvMeanwhile, could anyone else review this other very small branch?  https://code.launchpad.net/~jtv/launchpad/recife-getpofileswithtranslationcredits/+merge/4208310:53
jtvjelmer, is that something you could do?10:54
jelmerjtv: Sure, should we trade branches? Mine is very small as well.10:55
jtvjelmer: sure!10:55
jtvGot a direct link?  My connection's so slow right now it'd save me a lot of time.10:56
jelmerhttps://code.launchpad.net/~jelmer/launchpad/681974-building-commit/+merge/4208110:56
* jtv goes into a frenzy of browsing attempts10:57
=== matsubara-afk is now known as matsubara
jtvjelmer: good cover letter.  I'm surprised it's the buildd manager confusing the upload processor by moving the file before committing, and not another way around.11:02
jelmerjtv: This is happening with binary builds that the buildd manager has fetched from the builders.11:03
jelmerjtv: There is another archive uploader instance that processes the source uploads from users, which the buildd manager then sends off to the builders.11:04
jtvjelmer: ah so the data flows in the opposite direction from what I thought.11:08
jtvDepending on what the upload processor's transactions look like and even which isolation level it uses, there may _conceivably_ still be race conditions but even then this should narrow it own.  And I'm not assuming that you got it wrong anyway.  :)11:09
jtvI'm also assuming that you're not committing in some untenable state, and therefore r=jtv.11:10
jelmerjtv: Thanks :-)11:12
jelmerjtv: I don't understand why line 27 of your change is now necessary, how is it related to your other changes?11:17
jelmer+ clauses.append(POTemplate.id == POFile.potemplateID)11:17
jtvjelmer: yes it is a bit obscure.  It pulls POTemplate into the join.11:19
jtvI did reference it, but in a nested query.  And so that join doesn't get pulled into the outer query.11:19
jelmerahh, I see11:19
jtvThe ORM probably couldn't do that if it wanted, because it'd be ambiguous whether I wanted it in the outer query or just the inner one.11:20
jtv(In this case it doesn't matter much, but I'm assuming in a hand-wavy way that it might in other cases)11:21
jelmerjtv: yeah, I can see how that could make a difference.11:21
jelmerjtv: That was all I had. r=me11:22
jtvdankuwel11:22
jtvphew, my router is working again11:51
=== jtv changed the topic of #launchpad-reviews to: n call: henninge || Reviewing: jtv || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== jtv changed the topic of #launchpad-reviews to: On call: henninge || Reviewing: jtv || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jtvjelmer: if you use "ec2 land," there's no need to include the [r=…] tag etc. in your commit message.  That gets added automatically.12:11
jelmerjtv: I didn't add anything, ec2 land did!12:12
jtvoh!12:12
jelmerI guess it's now modifying the commit message on lp before send it off to ec2.12:12
jtvthere's no stopping progress, I suppose12:12
jelmer:)12:12
jtvThat could actually be helpful when landing fails because of testfix.12:13
jtvNo endless re-composing your commit message for every landing attempt.12:13
=== henninge changed the topic of #launchpad-reviews to: On call: henninge || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
henningejelmer, jtv: thanks guys for taking each other's reviews.12:34
henningejtv: r=me with a few comments to consider. ;-)12:34
* jtv jelmer & henninge all bow at each other12:34
jtvhenninge: great, thanks—sorry for the heavy review loa12:34
jtvd12:34
henninge:-D12:34
henningejtv: np. I will see that I get the migration script run now that staging is alive again. Or did you already take action?12:35
jtvhenninge: no, I didn't know it was up!12:35
jtvhenninge: you're right that there's no point to renaming that method I'm replacing—I just did it to keep your diff to a reasonable size, and left cleaning up the now-unused method as one of the TODO items.12:43
jtvI can remove it now if you're willing to rubber-stamp it—there are no calls to it.12:43
henningejtv: that's what I meant - no calls. ;-) rs=me12:44
jtvThanks.12:46
=== mrevell is now known as mrevell-lunch
=== NCommand1r is now known as NCommander
=== matsubara is now known as matsubara-lunch
abentleyhenninge: Could you please review https://code.launchpad.net/~abentley/launchpad/bzr-2.2.2/+merge/41981?14:05
henningeabentley: r=me14:13
=== mrevell-lunch is now known as mrevell
=== salgado is now known as salgado-lunch
=== bac` is now known as bac
=== matsubara-lunch is now known as matsubara
=== salgado-lunch is now known as salgado
jam1henninge: can I get a quick review of: https://code.edge.launchpad.net/~jameinel/launchpad/lp-service/+merge/4212915:46
jam1That was already merged and approved into db-devel, but I had meant to target devel15:46
=== jam1 is now known as jam
jamhmm... the diff appears to be empty, maybe db-devel has already become devel?15:47
henningejam: the branch's status is "Merged"15:48
jamanyone know when that happened? l-osas said the functionality wasn't present last Wed15:48
jamhenninge: right, it *was* merged into db-devel, but I meant to target 'devel'15:49
henningejam: when did that happen? Merging into db-devel, I mean?15:49
jamI thought I saw that db-devel was going to be merged/pushed over devel, but I don't know for sure that happened15:49
jamhenninge: *My* branch was merged into db-devel probably 2 weeks ago, or so15:49
henningejam: it happened on the 16th15:49
jamI didn't realize I had the wrong target unti the 24th15:49
jam(well, I didn't realize until today :)15:50
henningejam: devel and db-devel are merged before each roll-out.15:50
jamI was trying to get someone to use the new code, and they said it didn't work on the 24th.15:50
jambut right now, it appears to be properly merged into devel15:50
jamwhich is confusing me15:50
henningejam: it was merged on the 9th as r9951, r9973 was rolled out (if I remember correctly)15:53
henningejam: so, yes, your code is deployed.15:53
jamhenninge: thanks. Now I have to figure out why it wasn't available on qastaging...15:54
jamor if something else weird is going on15:54
jamanyway, thanks for your help15:54
henningejam: it is there for sure (unless it was reverted by a leter revision)15:54
henninges/leter/later/15:54
jamhenninge: I just cleared out the mp, sorry about the noise15:55
salgadohi henninge.  can you review a trivial one for me?16:28
=== henninge changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
henningesalgado: sure16:29
henningelast onen for today ;)16:29
salgadohenninge, https://code.launchpad.net/~salgado/launchpad/refactor-blueprints-tests/+merge/4213916:29
salgadothanks!16:29
bachi jcsackett, sorry for taking so long but i think your branch looks great16:52
jcsackettbac: cool! glad to hear it.16:52
henningesalgado: r=me ;)16:59
salgadothanks henninge17:00
=== abentley changed the topic of #launchpad-reviews to: On call: abentley || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
salgadoabentley, how about a trivial one to start the day? ;)17:17
salgadohttps://code.launchpad.net/~salgado/launchpad/expose-blueprint-dependencies/+merge/4214517:17
=== benji is now known as benji-lunch
abentleysalgado: sorry, was lunching.18:05
=== abentley changed the topic of #launchpad-reviews to: On call: abentley || Reviewing: salgado || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
salgadoabentley, np.  I've just pushed another tiny change there, though, so you might want to wait for the diff to update18:06
abentleysalgado: Is this test refactoring something I should review?18:09
salgadoabentley, the ones to use assertContentEqual?  Yes, although they're not related to the changes on the branch I thought you wouldn't mind reviewing them together?18:10
=== benji-lunch is now known as benji
abentleysalgado: Sure.  I just noted they were merged from another branch, so i wasn't sure.18:11
salgadobut the "merge test refactoring from other branch" has landed on devel already18:11
salgadoabentley, I just had to merge that directly from the branch because at that time it wasn't on devel18:12
abentleysalgado: So you could have set that other branch as a prerequisite branch.18:13
salgadoabentley, yeah, although it wasn't really.  I just merged to make sure there'd be no conflicts18:14
abentleysalgado: But now that you've merged it, you can't land this branch until that one's approved.18:14
salgadoabentley, but the other one has landed already18:15
abentleysalgado: now, it has, and I see that in the updated diff.  I was looking at an older one a minute ago.18:15
salgadoit landed 15 mins ago or so.   but 1h ago it hadn't landed and I merged to make sure there'd be no conflicts18:16
salgadoabentley, sorry for the confusion18:16
abentleysalgado: do you know about lp.testing.ws_object?  It's a more general version of getSpecOnWebservice.18:21
salgadoabentley, nope, I didn't know about that18:21
* salgado checks18:21
abentleysalgado: The functionality looks fine.  At 23, you should use a multi-line import.  r=me.18:23
salgadoabentley, I could use that in getSpecOnWebservice() but I don't see much benefit in doing so18:25
salgadoabentley, oh, so multi-line imports are to be used even when they're not necessary?18:25
abentleysalgado: yes.18:25
abentleysalgado: I don't think you need getSpecOnWebservice at all.18:25
salgadoyou mean to inline its functionality everywhere?18:26
abentleysalgado: I mean use ws_object instead.18:26
salgadothat's basically the same as I still need to get the Launchpad instance.  although I could store that as an instance variable on the testcase class18:27
salgadothat doesn't sound like a good idea18:27
salgadoabentley, or do you mean something else?18:28
abentleysalgado: It just seems like wasted effort to have different functions for getting objects via the web service, one for each type  of object, when you could just have one.18:29
abentleysalgado: If you'd like to enhance ws_object so that the launchpad parameter is optional, that would be a nice improvement for everyone.18:32
salgadoabentley, I'm not sure that'd help in this case as these tests need a 'devel' Launchpadlib and I don't think that should be the default18:33
lifelessyou could curry something18:33
salgadocurry?18:34
abentleysalgado: so we could have a parameter on ws_object to specify the launchpadlib version.  That would also be helpful for everyone.18:37
abentleysalgado: I don't think wanting to vary the launchpadlib version is a good reason to have different implementations of ws_object for different objects.18:38
abentleysalgado: At most, it's a reason to have different versions of ws_object for different launchpadlib versions.18:39
salgadoI don't think so either; I'm just saying that the current one is not a good fit18:39
salgadobut I can change it as you suggest18:39
abentleysalgado: I've already approved this, so it's only a suggestion to consider.  I just think it's better to spend effort in ways that help the whole team, where we can.18:40
salgadoagreed, and that's why I'm happy to do the change you suggested. :)18:41
abentleysalgado: cool.18:42
=== abentley changed the topic of #launchpad-reviews to: On call: abentley || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== matsubara is now known as matsubara-afk
salgadoabentley, the annoying thing is that the launchpad object is the first argument to ws_object() and it doesn't make sense to make both arguments optional so I'd have to change the method's signature and update all the callsites. :(19:03
abentleysalgado: It's true.19:04
salgadoabentley, I think I'll save this work for later, then19:05
abentleysalgado: sure.19:05
jcsackettabentley: have one to throw on your queue. https://code.edge.launchpad.net/~jcsackett/launchpad/distribution-enum-selection-677536/+merge/4216120:06
=== jcsackett changed the topic of #launchpad-reviews to: On call: abentley || Reviewing: - || queue: [jcsackett] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
abentleyjcsackett: ack20:06
=== salgado is now known as salgado-afk
=== Guest66935 is now known as EdwinGrubbs
abentleyjcsackett: r=me21:31
jcsackettabentley: thanks!21:31
=== abentley changed the topic of #launchpad-reviews to: On call: abentley || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
gary_posterabentley: 4 lines when you get a chance: https://code.launchpad.net/~gary/launchpad/ec2lucid/+merge/4217921:38
abentleygary_poster: r=me21:39
gary_posterthanks abentley21:39
=== jcsackett_ is now known as jcsackett
=== abentley changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews

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