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

thumpermwhudson: https://code.edge.launchpad.net/~thumper/launchpad/get-branch-by-date/+merge/1881601:44
thumperit is pretty simple01:44
mwhudsonthumper: continuing your lounge tour?01:44
thumpermwhudson: yeah01:44
thumperin CHC now01:45
thumperI have about an hour before the next boarding call01:45
=== henninge changed the topic of #launchpad-reviews to: on-call: henninge || reviewing: - || queue [-] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== jpds changed the topic of #launchpad-reviews to: on-call: henninge || reviewing: - || queue [jpds(518232)] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
henningejpds: Hi! I only noticed your queue entry by chance. You should always poke me (the OCR) when you want a review ... ;-)10:44
henningeUnfortunately, I will be afk for a little while now, but I'll look at it afterwards.10:45
=== henninge is now known as heninge-afk
noodles775\w 1310:56
=== matsubara-afk is now known as matsubara
jpdsheninge-afk: Sorry about that.11:23
=== heninge-afk is now known as heninge
=== heninge is now known as henninge
jpdsnoodles775: Hi, can I have a UI review: https://code.launchpad.net/~jpds/launchpad/fix_518385/+merge/1881211:30
noodles775Hi jpds, afaik, sinzui is keen to build up UI reviews (assuming we're still going to do some sort of UI review process ourselves).11:35
noodles775jpds: so please request one from him on the MP... I'll take a look at it after that.11:35
jpdsnoodles775: Will do.11:36
henningejpds: No need to be sorry, I am looking at it now.11:41
=== henninge changed the topic of #launchpad-reviews to: on-call: henninge || reviewing: jpds(518232) || queue [] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
jpdshenninge: That's another MP. :)11:43
henningejpds: I know, I was referring to your earlier "sorry about that" ;-)11:44
henningejpds: I am looking at this now: https://code.edge.launchpad.net/~jpds/launchpad/fix_518232/+merge/1877811:45
jpdshenninge: Cool.11:48
noodles775hi henning, when you're free, can you review the following? https://code.edge.launchpad.net/~michael.nelson/launchpad/494391-ugly-upload-error-message/+merge/1883112:23
henningenoodles775: sure, just stick it in the queue12:25
=== noodles775 changed the topic of #launchpad-reviews to: on-call: henninge || reviewing: jpds(518232) || queue [noodles775] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
henningejpds: I don't see any pre-imp information in your MP.12:36
henningejpds: Who from the registry team did you talk to about this?12:36
jpdshenninge: sinzui in millbank.12:37
henningejpds: face-to-face, sweet ;)12:37
henningejpds: I find the test a bit hard to read. Couldn't it be made to focus on what is being restricted?12:43
henningejpds: by adding a few more "...", for example?12:44
jpdshenninge: Could do that.12:45
henningejpds: at least on the repeats.12:45
henningejpds: cool, that's all I could find to complain about ... ;-) r=me12:48
jpdshenninge: Something like http://pastebin.ubuntu.com/371650/ ?12:50
henningejpds: yes, that looks good ;-)12:51
jpdsIt doesn't seem to like it: http://pastebin.ubuntu.com/371653/12:53
henningejpds: you have consecutive "..." in there. Sorry, didn't look close enough.12:56
jpdshenninge: On which line?12:57
henningejpds: there is a new line and white space in between but still ...12:57
henningejpds: oh, also I think leading "..." aren't allowed either.12:58
henningejpds: or maybe that is the only problem, and consecutive ones are allowed.12:59
henningeTry it out ... ;-)12:59
henningejpds: maybe like this? http://pastebin.ubuntu.com/371658/13:01
salgadojml, around? I'd like to know what you think of https://code.launchpad.net/~salgado/launchpad/kill-rogue-ec2-instances/+merge/1883413:01
henningejpds: oh no, like this I meant ... ;) http://pastebin.ubuntu.com/371659/13:02
jmlsalgado, I'll take a look13:08
jpdshenninge: Pushed changes to test and good to go. :)13:10
henningejpds: ok, so it was the leading "..." ... ;-) Thanks for trying that out.13:14
jmlsalgado, done13:17
henningenoodles775: review sent.13:18
=== henninge changed the topic of #launchpad-reviews to: on-call: henninge || reviewing: lunch || queue [] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
salgadojml, thanks, but I just realized prepare_tests() is also called when setting up a demo instance, so I'll have to either more the new code to a different method which is only called when running the test suite or use a conditional13:19
jmlsalgado, ahh ok13:19
jmlsalgado, let me have a look13:19
salgadorun_tests(), maybe?13:20
jmlsalgado, that'd work. I was thinking maybe giving EC2TestRunner's constructor a timeout parameter, and passing that in from builtins.py13:22
salgadoyeah, that'd be nicer13:23
jmlsalgado, the EC2TestRunner class needs to be exploded.13:39
noodles775Thanks henninge13:47
salgadojml, check out the updated diff in the mp.  this one doesn't schedule a shutdown on demo instances13:49
jmlsalgado, looking...13:49
jmlsalgado, Looks good. I would have picked seconds, rather than minutes.13:51
salgadojml, do you think we need that much granularity?13:51
jmlsalgado, no, I just am unused to seeing computers talk about minutes ):13:52
jmlI meant to say ":)"13:52
jmlsalgado, no big deal13:52
salgadocool. :)13:52
=== henninge_ is now known as henninge
jpdshenninge: Could you ec2 / land the branch for me please.14:25
henningejpds: yes sure. Did set a commit message?14:26
henninge*you*  ;)14:26
jpdshenninge: Yep.14:26
henningejpds: cool, will land it now.14:26
=== matsubara is now known as matsubara-lunch
=== salgado is now known as salgado-lunch
bachenninge: can i add a review to the queue?15:06
bachttps://code.launchpad.net/~bac/launchpad/bug-514447-anon-api/+merge/1884215:06
* bac assumes 'yes'15:06
=== bac changed the topic of #launchpad-reviews to: on-call: henninge || reviewing: lunch || queue [bac] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
henningebac: please do15:06
bacthanks15:06
henningeoh, done ;-)15:06
henningenp, my job here ... ;)15:07
allenaphenninge: Fancy another one?15:09
allenaphttps://code.edge.launchpad.net/~allenap/launchpad/twisted-threading-bug-491870/+merge/1884315:09
=== allenap changed the topic of #launchpad-reviews to: on-call: henninge || reviewing: lunch || queue [bac, allenap] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
henningeallenap: sure15:10
allenaphenninge: Thanks :)15:10
=== abentley changed the topic of #launchpad-reviews to: on-call: henninge, abentley || reviewing: lunch, bac || queue [allenap] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
henningeabentley: Hi! ;)15:24
=== henninge changed the topic of #launchpad-reviews to: on-call: henninge, abentley || reviewing: allenap, bac || queue [allenap] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
henningeglad I looked here again before starting on bac's branch ... ;)15:25
henningeabentley: Hi! ;)15:25
henningeglad I looked here again before starting on bac's branch ... ;)15:25
abentleyhenninge, hi.15:26
abentleybac, your branch looks reasonable.  Did you actually make any changes to set_attributes, or is it just formatting?15:27
bacabentley: formatting.  that section was all on one super-long line15:27
abentleybac, cool.  I think the second line needs one more space (before translation_focus).15:28
bacok15:28
abentleybac, also, should that be alphabetically sorted?15:28
bacabentley: i don't know that sorting is a requirement.  i didn't pay any attention to the content, just did the reformatting.15:29
abentleybac, okay.15:30
abentleybac, r=me.15:30
bacgreat, thanks15:30
abentleybac, another way of handling the AnonymousAuthorization issue would be to merge jamal's branch into yours and then set it as a prerequisite branch.15:31
bacabentley: yeah, i realized i should've done that.15:32
abentleybac, just thought I should mention because prerequisite branches are newish.15:33
=== abentley changed the topic of #launchpad-reviews to: henninge, abentley || reviewing: allenap, - || queue [] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== matsubara-lunch is now known as matsubara
=== salgado-lunch is now known as salgado
jamaltayou can define prerequiesite branches now? that's pretty cool16:02
bacabentley: actually, could you explain how to create pre-req branch relationship?16:03
abentleybac, when you are working on branch FOO, but that needs changes from branch BAR, you either branch FOO from BAR or merge BAR into FOO.  When you create the merge proposal, you specify that BAR is the prerequisite branch.16:05
bacabentley: can you do that last step using 'bzr send'?16:06
abentleybac, no.16:06
abentleybac, you can do it with lp-submit (from pipeline), though.16:06
bacabentley: can you do that even if not using pipelines?  if so, is lp-submit replacing send in general?16:07
abentleybac, lp-submit doesn't require pipeslines, but the prerequisite is currently hardwired to be the previous pipe.16:08
henningeallenap: I thought lambda func were nothedl in high regard inLP code?16:08
abentleybac, I intend for lp-submit to replace send, and I have a branch that adds it to bzr itself.16:09
bacabentley: ok.16:09
allenaphenninge: In Twisted it's a very common pattern. I don't think I'll get shot for that.16:12
henningeallenap: I am the one with the gun here, though ... :-P16:13
allenaphenninge: Heh :)16:13
henninge;)16:13
henningeallenap: I have to admit, I lack Twisted familiarity here ...16:14
allenaphenninge: There are so many callbacks that to write a def for each one gets old very quickly. Using lambdas instead is, I think, accepted practice. Even with the `lambda ignore: ...` pattern.16:15
allenaphenninge: Actually, I can probably change it to use functools.partial. Let me see.16:17
allenaphenninge: Ah, no I can't.16:17
henningeallenap: I am not too happy with letting another projects coding styles leak into ours.16:18
henningeallenap: I think the real question is if we are/will be using Twisted a lot or if this is an isolated case.16:18
henningeallenap: I'd like a second opinion on this.16:20
henningeabentley: do you have a minute?16:20
abentleyhenninge, sure.16:20
allenaphenninge: The code team use Twisted quite a lot and I see several uses of it in lp.code and lp.codehosting.16:21
henningeabentley: we are discussing the use of lambda, which our coding styles forbid but seem to be in heavy use with Twisted.16:21
allenaphenninge: Actually, it's probably not worth arguing about this too much. I'm happy to put the calls into a def and be done with it. That way we're both happy :)16:22
abentleyhenninge, I wasn't aware that our coding styles forbid it.16:22
henningeabentley: https://dev.launchpad.net/PythonStyleGuide#Use%20of%20lambda,%20and%20operator.attrgetter16:22
henningeallenap: sorry to be PITA about it but the use of lambdas goes against explicit coding styles, so I like make sure to DRT.16:23
henningeDTRT16:24
henninge:-)16:24
henningeallenap: yes, with that I'd be happy :)16:24
abentleyhenninge, I think when coding style makes writing code painful, it should be abandoned.16:24
henningeabentley: I agree, that's why I raised the question if this is just an isolated case or if it happens regularly.16:25
henningeIf it's just a single case, the extra pain is neglectable, otherwise we should adapt our coding styles.16:26
abentleyhenninge, with Twisted, you have to define many more callables than with normal python.16:26
abentleyhenninge, often these callables merely adapt existing functions for Twisted use.16:27
henningeabentley, allenap: I will put the request to update the coding styles for Twisted code on the reviewers' meeting agenda.16:28
allenaphenninge: Cool.16:28
abentleyhenninge, so lambdas are pretty useful when writing Twisted code.16:28
henningeallenap: leave it as it is for now.16:28
allenaphenninge: Okay.16:28
henningeabentley: I see.16:28
abentleyhenninge, also, the purpose of the callables is to act as callbacks, not to support code reuse.16:29
henningeabentley: that is a good point to support this exception.16:29
abentleyhenninge, so it's really a different scenario.16:29
henningeallenap: sorry, got a bit distracted ...16:57
allenaphenninge: :)16:57
henningeallenap: Why did you definen a parameter "install_signal_handlers"?16:57
allenaphenninge: Otherwise there's an error in, I think, checkwatches-cli-switches.txt for a layering violation; SIGCHLD handler left behind.16:58
henningeallenap: I mean, why is it configurable?16:58
henningeallenap: so, are you saying setting it to "False" would produce an error?16:59
allenaphenninge: Just to make it work for testing. I could, for example, pass a reactor it, or make the reactor a class var and subclass. Maybe the latter would be better.16:59
henningeallenap: argh, I missed that in the test.17:00
allenaphenninge: If it were left as True in externalbugtracker.txt (not checkwatches-cli-switches.txt; I got that wrong) then there would be an error. The test would pass, but the test suite would complain.17:01
henningeI see. I don't know enough about Twisted to asses the other options you mentioned.17:01
henningeallenap: I was just wondering that only one code path was tested but now I understand it is to make it testable.17:02
henningeallenap: Please make a note in the doc string for install_signal_handlers.17:02
henningefor __init__, of course17:02
allenaphenninge: Sure. I think I might change it to a subclass, but I'll add some more docs to make it clear.17:03
henningethanks17:03
henningeallenap: I wonder if there should be a test for SerialScheduler in some way.17:07
allenaphenninge: I guess it's implicitly tested, but I'll add an explicit test too.17:25
* allenap goes to look after ill kids.17:36
henningeallenap: review sent17:38
=== henninge changed the topic of #launchpad-reviews to: abentley || reviewing: - || queue [] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
* henninge bows out.17:39
gmbabentley: Hi. Do you have time to review https://code.edge.launchpad.net/~gmb/launchpad/fix-b.l.n-timeouts-bug-517798/+merge/18866 for me?18:54
gmbSimple fix for bug 51779818:54
mupBug #517798: Launchpad beta timing out three times when I try to access the bug page. <oops> <timeout> <Launchpad Bugs:In Progress by gmb> <https://launchpad.net/bugs/517798>18:54
leonardrrockstar, version branch coming your way18:59
rockstarleonardr, cool.18:59
abentleygmb, happy to.19:03
=== abentley changed the topic of #launchpad-reviews to: abentley || reviewing: gmb || queue [] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
abentleygmb: r-me19:05
gmbabentley: Excellent, thank you.19:09
leonardrrockstar: https://code.edge.launchpad.net/~leonardr/lazr.restful/multiversion-pagetest/+merge/1886819:15
rockstarleonardr, great.  I'm assisting in a cherry pick right now, will review when that's done.19:16
=== abentley changed the topic of #launchpad-reviews to: abentley || reviewing: - || queue [] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== matsubara is now known as matsubara-afk
rockstarleonardr, hi.  Something is fishy about this diff.20:05
rockstarleonardr, is it not based on one of the previous branches I reviewed?20:05
rockstarleonardr, nevermind.  I plead temporary insanity.20:06
=== salgado is now known as salgado-afk
rockstarleonardr, so, if there's no mutator specified for 2.0, it uses the mutator specified from 1.0?20:13
leonardrrockstar: right20:26
leonardrsame as other named operations20:27
rockstarleonardr, so is "beta" the most recent version, and then 3.0, 2.0, and 1.0?20:28
leonardrrockstar: right, according to the list of versions defined in the iwebserviceconfiguration20:28
=== abentley changed the topic of #launchpad-reviews to: on call: - || reviewing: - || queue [] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== jamalta is now known as jamalta-afk

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