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

rockstarthumper, https://code.edge.launchpad.net/~rockstar/launchpad/recipe-oopses/+merge/2731300:42
rockstarthumper, https://code.edge.launchpad.net/~rockstar/launchpad/fix-branch-requestMirror/+merge/2731702:21
thumperrockstar: hey02:21
thumperrockstar: looking at the oopses one02:21
rockstarthumper, cool.02:24
rockstarthumper, ping03:52
rockstarthumper, re: "Is it right to hard code the formats?" we talked about this same issue when I first worked on BranchUpgradeJob.  We decided it wasn't a big deal, and especially not since bzr won't be changing its default format until 3.0.03:53
thumperrockstar: I just think it would be better to get the formats out of the branch itself03:58
thumperrockstar: in that particular situation03:58
rockstarthumper, sure.  I can do that.03:59
thumperrockstar: thansk03:59
rockstarthumper, can you look at the other one as well?04:02
thumperrockstar: I did04:02
thumperI even commented04:02
rockstarthumper, I mean this one: https://code.edge.launchpad.net/~rockstar/launchpad/recipe-oopses/+merge/2731304:15
thumper?!?04:16
thumperI did04:16
thumperdamn, wtf?04:16
* thumper tries again04:17
thumperrockstar: look now04:17
thumperrockstar: I have one for you if you want04:20
rockstarthumper, sure, I can look at it.04:23
thumperrockstar: did you see the buildbot failure?04:24
thumperrockstar: it is a windmill failure04:24
rockstarthumper, no, I haven't seen it.04:24
rockstarthumper, how do I take bzr branch format and get the corresponding BranchFormat enum?04:26
* rockstar forgets...04:26
thumperrockstar: take a look in the codehosting ssh server04:26
thumperrockstar: I don't remember04:26
thumperbut that is the other location it is done04:26
thumperrockstar: https://code.edge.launchpad.net/~thumper/launchpad/branch-index-slowness/+merge/2731804:33
thumperrockstar: I've somehow managed to change my gnome window decoration to something that looks like it is out of the 90s04:37
thumperit is like the icon set changed04:37
rockstarthumper, log out and log back in.04:37
rockstarThe gnome config daemon probably died...04:37
rockstar(happens to me all the time)04:37
thumpereh?04:37
rockstarIt's hella annoying.04:38
thumperah, yeah04:38
thumperthat's why I left kubuntu04:38
thumperwell, left04:38
thumperwell, trying gnome for a bit04:38
rockstarthumper, Lucid is not the best gnome foot forward...  :/04:39
rockstarthumper, line 150 of your diff, why not use isinstance?05:02
thumperrockstar: because I didn't think of it :)05:03
rockstarthumper, okay.  Can you remedy that?05:03
thumperyep05:03
rockstarthumper, do you have some data to go with this branch that might be good to go to the list?05:04
thumperrockstar: what are you asking exactly05:04
rockstarthumper, I think query count numbers along with the changes in this branch would be good to post to the list.05:06
thumperrockstar: I'll be writing something up, yes05:07
rockstarthumper, also, there are new changes to look at on this review: https://code.edge.launchpad.net/~rockstar/launchpad/fix-branch-requestMirror/+merge/2731705:07
thumperrockstar: you don't close the branch05:09
thumperrockstar: you'd make me very happy if you created a context manager05:10
thumperrockstar: and went "with BzrBranch.open_from_transport(source_branch_transport) as branch:" ...05:10
rockstarthumper, I can move ForbiddenInstruction to lp.code.errors.  I think hardcoding the instruction isn't that bad, since there are only three actual instructions in the first place.  Thirdly, I can't do the catch of the exception in the validate because the exception isn't raised until we actually try and make the changes.05:11
rockstarabentley and I talked about the third option, and we both came to the conclusion that it's the best way to do it.05:11
thumperrockstar: isn't there a validator for the recipe?05:11
thumperrockstar: there are only three instructions now, what about later?05:11
thumperrockstar: if the information is in the exception (and it should be) then it shouldn't be hard to use right?05:12
rockstarthumper, I think that would make the code more counterintuitive than it needs to be.05:12
* thumper has to go move a sofa05:12
thumperwhy?05:12
abentleythumper, it follows Easier to Ask Forgiveness Than Permission.05:13
thumperwhich is against the zope way of doing views05:17
thumperhowever...05:19
thumperI think we can let this go here for now05:19
thumperas we have a precident05:19
abentleythumper, if EAFP is against Zope conventions, that's another example of our architecture/conventions not encouraging optimal code, both from a speed and maintenance perspective.05:21
thumperabentley: it is what the validate method is for05:22
abentleythumper, preventing speed and maintainability?05:22
thumperabentley: I _think_ it is to offer a single place of validation for potentially many actions05:22
abentleythumper, if that is the single place for validation, then we can't have validation in the model, and that leads to madness.05:24
thumperabentley: true05:25
thumperWe are no longer using views how zope intended I think05:25
thumpergiven our API exposure of the models05:25
abentleythumper, well...05:26
abentleythumper, I think validation of the input has a place.  e.g. if x is supposed to be an INT, make sure it's an INT.05:27
abentleythumper, but I don't think the views should attempt to replicate the model rules.  It means you have to keep two pieces of code in sync.05:28
thumperyeah, that makes sense05:28
abentleythumper, until rockstar pointed out that actions could call setFieldError, I assumed we had no choice.05:29
rockstarthumper, on further inspection, it looks like we can't get to the actual message.  bzr-builder would need a patch before we could.05:38
thumperrockstar: what about the command?05:38
rockstarthumper, yeah, the command actually doesn't have any information about what the actual command is.05:40
thumperrockstar: ok then.  Can you file a bug and XXX the callsite05:40
thumper?05:40
rockstarthumper, ack.05:41
rockstarthumper, I think we can probably even patch it fairly simply, now that I'm looking at it.05:41
rockstarthumper, this one is updated: https://code.edge.launchpad.net/~rockstar/launchpad/recipe-oopses/+merge/2731306:07
rockstarthumper, I'm not sure what the context manager gives us.06:07
thumperclosing the branch and nicer code06:08
thumperalso, this has conflicts now06:08
rockstarthumper, no, I resolved those, wait for the diff.06:09
* thumper waits06:09
rockstarthumper, where else are we "closing" a branch?06:09
thumperrockstar: don't know, but if you open something, it is good manners to close it :)06:09
rockstarThere's not even a "close" method.06:09
thumperreally?06:09
rockstarthumper, I don't see one.06:10
rockstarthumper, this is why I ask where else we're doing it.06:10
* thumper asked on #bzr06:10
rockstarthumper, I don't see anywhere where we close a branch.  Even BzrSync.syncBranchAndClose just unlocks the branch.06:15
thumperrockstar: forget about the context manager then06:37
rockstarthumper, I can has approve then?06:38
thumperaye06:38
rockstarthumper, thanky06:38
rockstarthumper, talk to you in week 4.06:39
thumperrockstar: have a good break06:40
=== adeuring changed the topic of #launchpad-reviews to: On Call: adeuring || reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
=== sinzui changed the topic of #launchpad-reviews to: On Call: adeuring || reviewing: - || queue: [sinzui, sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
=== bac changed the topic of #launchpad-reviews to: On Call: adeuring,bac || reviewing: - || queue: [sinzui, sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
bachello adeuring14:37
adeuringhi bac14:38
bacadeuring: just letting you know i'm on call now too14:38
adeuringbac: thanks; seems to be a quiet day :)14:38
baccool14:38
bacadeuring: did you see that sinzui stealthily added branches to the queue?  you want to split them up?14:53
adeuringbac: whoops... no14:53
baci'm not sure why he always flies under the radar like that.  very unproductive14:53
adeuringOK, I'll take https://code.edge.launchpad.net/~sinzui/launchpad/front-page-footer-0/+merge/2731114:54
bacok14:54
=== adeuring changed the topic of #launchpad-reviews to: On Call: adeuring,bac || reviewing: sinzui, - || queue: [sinzui, sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
=== adeuring changed the topic of #launchpad-reviews to: On Call: adeuring,bac || reviewing: sinzui, - || queue: [ sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
bachi sinzui, question about your test for PRF changes15:12
bacwell, actually about the dispay of latest downloads that changed in that branch15:12
bacsinzui: you have a new test showing obsolete series are ignored15:12
bacbefore setting s4 to obsolete, the latest with downloads was 3.3, which is a part of s3.  so even if s4 is marked obsolete shouldn't 3.3 still display?15:13
sinzuibac: I think I demonstrated that in the test.15:15
* sinzui looks15:16
sinzuibac, waaa..15:17
sinzuibac: I am going to run that test. It looks wrong and I think I did say 3.3 was the latest. I may have backed that out of the test15:18
bacsinzui: ok.  it just looks funny to the gentle reader.15:18
sinzui:(15:19
sinzuibac, I did backout my change15:20
sinzuiwell, ctrl-z15:20
sinzuiah15:20
sinzuiWow15:20
bacsinzui: the test passes for me, which makes me confused15:20
sinzuiI really messed that up. current is 4.3, and after obsolescence it is 3.315:20
sinzuino way,15:21
sinzuibac, http://pastebin.ubuntu.com/448268/15:21
sinzuiI will make the change I intended to make. What I see in the review is the test I wrote before I changed the code and saw I also misread the test15:22
bacsinzui: oh you're right, it does fail for me15:23
bacsinzui: you didn't include that test in the "test" line of your MP so i hadn't actually run it15:23
sinzuiIt was just after midnight I screwed up.15:24
sinzuibac: http://pastebin.ubuntu.com/448271/15:24
bacsinzui: see, curtis, turning into a pumpkin is just a metaphor.  you really should stop work after midnight.15:26
adeuringsinzui: r=me; two nitpicks15:47
=== adeuring changed the topic of #launchpad-reviews to: On Call: adeuring,bac || reviewing: -, - || queue: [ sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
sinzuiadeuring, thanks15:47
bacsinzui: r=bac, with a couple of changes and one absurd request16:01
=== bac changed the topic of #launchpad-reviews to: On Call: adeuring,bac || reviewing: -, - || queue: [ -] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
sinzuithank bac16:02
sinzuibac ping16:31
bachi sinzui16:32
sinzuiabout your points.16:32
sinzui1. I too hate glob16:32
sinzuiand it is not clear what uses it16:32
bacwellispecificallyhatedthelackofseparatorsinthename16:33
sinzuiWe can start by making  good api name. maybe release_finder_url_pattern?16:33
bacsinzui: hey that's much better!16:37
baccause, you know what?  it *is* an URL pattern16:37
bacsinzui: fwiw i did exercise it via lplib and got validation errors when i tried just using 'cow', etc16:38
sinzuiyep16:38
sinzuiI want the name to state what it is and for. One day I will make the release finder public and easy to understand16:39
bacnice16:39
sinzuibac: may I change the name in the api then?16:39
bacsinzui: i think that's a swell idea16:39
sinzuiI am not interested in adding an lplib test for this. I added it because I personally need this to see the damage that has been done on edge. No one cares about this as a feature until users know it is a feature16:40
=== deryck_ is now known as deryck
=== deryck is now known as deryck[lunch]
gary_posteradeuring or bac: up for a review of a very small chance to our meta dependencies?  https://code.edge.launchpad.net/~gary/meta-lp-deps/geoiplite/+merge/2738118:13
adeuringgary_poster: I'll look18:14
gary_posterThank you adeuring. Note that there is a pre-existing dependency on geoip-data | geoip-data-city-lite fro launchpad-dependencies.  I'm just trying to say that devs (and people expecting to run tests)really need the lite version18:15
gary_posterfor18:15
adeuringgary_poster: ok, r=me18:15
gary_posterthank you adeuring18:16
maxbgary_poster: So you're implying that launchpad itself can run with geoip-data, but the tests need -city-lite?18:20
gary_postermaxb: yeah.  I just committed it and am pushing it.  Is that OK by you?18:20
maxbif that's the case, fine. It just feels a bit perverse that the tests need one thing and production needs another18:21
gary_posterI agree18:21
gary_posterI think it is about licensing issues, and open-source issues18:21
=== deryck[lunch] is now known as deryck
=== adeuring changed the topic of #launchpad-reviews to: On Call: bac || reviewing: - || queue: [ sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
bacsinzui: you are in the topic queue but i think that is a mistake, right?  i see nothing on activereviews18:35
sinzuibac: yes I think I am done18:36
=== bac changed the topic of #launchpad-reviews to: On Call: bac || reviewing: - || queue: [-] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
EdwinGrubbsbac: can you review https://code.edge.launchpad.net/~edwin-grubbs/launchpad/bug-590840-getMembershipInformation-timeout-2/+merge/2739419:57
baci will19:57
=== bac changed the topic of #launchpad-reviews to: On Call: bac || reviewing: edwin || queue: [-] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
bacEdwinGrubbs: in the MP you talk about "testing both of the unioned queries".  i don't see in your changes where that is addressed.  could you clarify?20:02
EdwinGrubbsbac: sorry, that was unclear. registry/doc/mailinglist-subscriptions.txt already tests the team_members query in getSenderAddresses(). I added the tests in message-holds.txt to test the approved_posters query which gets unioned to to team_members in getSenderAddresses(team_names).20:04
EdwinGrubbsbac: it's a little confusing that I'm adding tests for getSenderAddresses(team_names), but the branch also modifies the other getSenderAddresses().20:05
bacEdwinGrubbs: ok.  that makes sense.  the branch proper looks fine...i was just confused.20:10
bacEdwinGrubbs: finally, i assume there was no real benefit to returning a generator instead of the storm resultset as you do now.20:11
bacoh, i see they were filtering the results too, which you don't have to do now20:12
EdwinGrubbsbac: right, the generator is just overhead20:13
bacsinzui: is your other branch going to make it today?21:48
sinzuiNo21:48
sinzuiI suck21:49
bacdoh21:49
bacsinzui: well i will look at it over the weekend if you want21:49
sinzuiNo rush21:49
sinzuiI will work on lint over the weekend though21:49
bacschweet21:49
sinzuibac: I have a 19503 line branch that removes glob imports from our tree.21:55
bacreally?21:55
sinzuiI fear the review would kill21:55
bachow many 800 line branches would that be?21:55
sinzui421:55
sinzuiBut this is a mechanical branch21:56
bacsinzui: i can work on it this weekend21:56
sinzuiI have fixed all but one call site21:56
sinzuic.l.__init__ has a lot in it still because removing all causes cyclic import problems21:57
sinzuibac: I want an rs to get this into a safe state, so that future branches can do the hard thinking work of decoupling the cyclic imports21:58
bacwhy don't you do a rs=sinzui then?  you know what you've done better than i do and that is perfectly legal21:59
sinzuiYou have a good point.22:00
sinzuigary talked me off the ledge this week so the scope is safe22:00
=== matsubara is now known as matsubara-afk

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