/srv/irclogs.ubuntu.com/2010/10/28/#launchpad-reviews.txt

leonardrjcsackett: r=me if you add it to the NEWS.txt00:10
=== Ursinha-bbl is now known as Ursinha
thumperhttps://code.edge.launchpad.net/~thumper/launchpad/less-wip-emails/+merge/3948903:53
thumperanyone03:53
thumperStevenK: are you on?03:53
StevenKthumper: I am now.03:56
thumperStevenK: want to look at that review?04:07
thumperStevenK: we can get someone else to mentor your review04:07
thumperStevenK: but you can have the practice04:07
StevenKthumper: It is also currently 11pm, and I'd like to sleep so I can be useful in the 9am session tomorrow, unlike today where I didn't feel awake until 10.04:09
thumperStevenK: oh, forgot04:09
thumpersorry, feel free to leave it04:09
StevenKthumper: Ah, you thought I was in .au?04:09
thumperyeah04:09
StevenKHeh, yes.04:09
thumperwallyworld: I'm looking at your review04:57
wallyworldthumper: thanks. actually, any idea why firefox  keeps asking me to enter a username/password when it is being ised by windmill to run the tests?04:58
thumperno, just ignore it04:58
wallyworldthe popup says: "The site says: 'bookmark-user-auth blah blah blah'04:58
wallyworldyeah, but i have to click cancel 100000 times since there's so many of them and sometimes if i don't the test fails :-(04:59
wallyworldand i also get "invalid security certificate"04:59
wallyworldand it leaves zombie firefox instances eating all my cpu :-(04:59
wallyworldand sometimes i get that page where you need to click to add a security exception05:00
wallyworldmakes it very hard to run the tests05:00
wallyworldis it just me/my setup or is it a general problem?05:01
thumperI don't get that....05:01
wallyworldhmmmm. what should have been a 5 minute test took way longer dealing with that stuff cause the test kept failing :-(. i'll have to look into it then05:02
thumper:(05:03
thumperI gave you the wrong info05:03
thumperstr(e) isn't good enough05:03
thumper<Product at 0xa592f10> has no linked branch.05:03
thumperis kinda crap05:03
wallyworldah bugger. i didn't see that when i ran it up.05:04
wallyworldprobably cause i had fake products foo and bar05:04
wallyworldi'll make the test better and fix the problem05:04
wallyworldleave it with me05:05
thumperwallyworld: cool05:05
wallyworldeverything else ok though?05:05
thumperlooks reasonable05:08
=== jtv changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [StevenK, jtv] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
thumperjtv: hi05:11
jtvhi thumper05:11
jtvI'll trade you.05:11
thumperjtv: https://code.edge.launchpad.net/~thumper/launchpad/less-wip-emails/+merge/3948905:11
thumperjtv: what do you have?05:12
jtvthumper: https://code.edge.launchpad.net/~jtv/launchpad/bug-662552-view-permissions/+merge/3948105:12
thumpernice size for a review :)05:12
jtvTook enough research, I can tell you.05:13
* jtv looks at Snapshot05:16
thumperjtv: Snapshot is what the LaunchpadFormView uses, and lazr.restful05:17
thumperjtv: the code I changed was using the delta object in error05:17
thumperit just happened to work05:17
jtvnod05:19
jtvthumper: so far so good, but I just have to find something.  Could you replace "there is no email job created" (test_branchmergeproposal.py) with something easier to read?05:23
thumpersure05:23
* jtv suddenly realizes the danger of picking nits while doing mutual reviews05:23
jtvthumper: wouldn't test_nominateReview_no_job_if_work_in_progress clearer if it just did a "with person_logged_in(bmp.registrant): bmp.nominateReviewer(...)" instead of logging in at what looks like a somewhat arbitrary point?05:26
jtv*be* clearer, that is05:27
thumperjtv: probably, I was primarily just copying existing tests05:27
jtv(pot, kettle)05:27
jtvThere's one other thing in that method: in the IStore(...).find(), the last line of the condition isn't indented enough.  I think it'd help to keep BMPJobType.REVIEW_REQUEST_EMAIL in a variable.  One with a short name.05:28
thumperjtv: where is that first line you want changed?05:28
jtvtest_nominateReview_no_job_if_work_in_progress as well, top comment, 2nd line.05:29
jtvOh!  How about putting the IStore(...).find() in a helper method, so that the positive test can check for the exact same thing?05:30
* thumper was looking in old branch05:30
thumperjtv: because the positive test wants the one05:30
thumperdoes store.one return None or raise if not found?05:31
jtvRaises.05:31
jtvBut any() does what you want here, no?05:31
thumperno05:31
thumperbecause if there was 405:31
thumperit would pass05:31
jtvSimple solution: have your helper return the result set.05:31
wallyworldthumper: can you ping me when you are done.05:31
jtvthumper: there are a few other places in the test that could potentially be nicer with a "with person_logged_in()" but I'll leave that up to you.  Approving.05:35
thumperta05:35
thumperwallyworld: whazzup?05:36
wallyworldthe issue is that NoLinkedBranch and friends use %r for their error messages05:36
wallyworldso i will have to catch each type and recreated the error message with %s05:36
wallyworldany idea why the exceptions don't use %s05:37
thumpernot all types have a string representation05:37
wallyworldi guess it's to give a better indication of what the object is05:37
thumperhmm...05:37
wallyworldwell, i would have to check but surely Product et al would have a string representation05:38
thumperdon't expect that05:39
jtvthumper: and you're done.05:39
thumperuse something like 'name' or display anme05:39
thumperdisplay_name05:39
thumperjtv: used with person_logged_in(bmp.registrant) in those tests now05:39
jtvcool05:40
wallyworldyeah, so i have to catch the exceptions and recreate a new instance of the same type with display_name as the construction  arg05:41
wallyworld?05:41
wallyworldthat way i can then do a str() to get the error message05:41
wallyworldthumper: sound ok^^^^^^^^^^ ? i have to duck out and pick up the kid from school and buy more tonic water :-)05:42
thumperwallyworld: I think it would make more sense to have a better error string05:43
thumperwallyworld: perhaps another method on the exception05:43
thumperwallyworld: don't recreate a different one05:43
thumperwallyworld: the exception has all the info we need05:43
thumperwallyworld: it just isn't showing it to us in a nice way05:43
wallyworldi don't mean to create a new exception type05:44
thumperdon't create a new object05:44
wallyworldack. i didn't think we would want to dick with the exception code. but i can do that np05:44
wallyworldie add a new method etc05:45
wallyworldcreating as new object wasn't what i really wanted to do :-)05:45
=== Ursinha is now known as Ursinha-afk
=== jtv changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [StevenK] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== allenap changed the topic of #launchpad-reviews to: On call: allenap || Reviewing: - || queue: [StevenK] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
bachi allenap can i add a trivial branch to your queue?11:25
allenapbac: Certainly :)11:25
bacgreat.  LP is still processing the MP but it should show up shortly11:25
=== bac changed the topic of #launchpad-reviews to: On call: allenap || Reviewing: - || queue: [StevenK, bac] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
baci'm going to go walk around the block. brb11:26
=== allenap changed the topic of #launchpad-reviews to: On call: allenap || Reviewing: bac || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== allenap changed the topic of #launchpad-reviews to: On call: allenap || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== matsubara-afk is now known as matsubara
=== Ursinha-afk is now known as Ursinha
=== mrevell is now known as mrevell-lunch
=== mrevell-lunch is now known as mrevell
adeuringallenap: couls you please review this MP: https://code.edge.launchpad.net/~adeuring/launchpad/bug-594247-unittests-for-searchtasks-3/+merge/39523 ?14:06
allenapadeuring: Sure.14:06
adeuringthanks!14:06
=== allenap changed the topic of #launchpad-reviews to: On call: allenap || Reviewing: adeuring || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
rockstarallenap, can I jump in your queue?14:21
allenaprockstar: Sure, I've had my eyes on your merge queue proposal already.14:22
rockstarallenap, ooh, kinky.  :)14:22
rockstarallenap, for easy lookup: https://code.edge.launchpad.net/~rockstar/launchpad/merge-queue-index/+merge/3948814:22
=== rockstar changed the topic of #launchpad-reviews to: On call: allenap || Reviewing: adeuring || queue: [rockstar] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
adeuring1allenap: thanks for the review! may I ask for another review? Your remark about the assert() let me realize that I forgot to "bzr commit" the latest changes...14:42
allenapadeuring1: Sure.14:42
=== allenap changed the topic of #launchpad-reviews to: On call: allenap || Reviewing: rockstar || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
adeuring1allenap: thanks, and sorry for the confisuon...14:42
allenapadeuring1: Have you pushed the branch?14:43
adeuring1allenap: a few seconds ago...14:43
=== matsubara is now known as matsubara-lunch
rockstarallenap, hey, my password fix doesn't actually clobber the password argument.16:08
allenaprockstar: Really? I must have misread.16:08
rockstarallenap, so, the only place that password gets used is creating a user if the user isn't specified.  Since we then get a naked user (ooh la la), we're essentially getting the password back from the user, so in some cases, it's really a no-op.16:09
allenaprockstar: Okay, cool. I'll add a comment to the mp.16:11
=== allenap changed the topic of #launchpad-reviews to: On call: allenap || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
leonardrEdwinGrubbs, https://code.edge.launchpad.net/~leonardr/lazr.restfulclient/enhanced-consumer/+merge/39447 now incorporates the changes you wanted16:52
EdwinGrubbsleonardr: that looks good.16:55
=== matsubara-lunch is now known as matsubara
leonardrok, great16:55
=== allenap 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
flacostelifeless: feel free to call me18:10
=== benji is now known as benji-lunch
leonardredwingrubbs: as long as you're reviewing my branches, want to look at a short follow-up?18:46
leonardrhttps://code.edge.launchpad.net/~leonardr/lazr.restfulclient/system-wide-consumer/+merge/3955218:46
EdwinGrubbsleonardr: I'm headed to lunch now, but I could look at it later today.18:47
leonardrok, i'll let you know if someone else takes it up18:47
leonardrEdwinGrubbs: one other minor question. i was thinking of changing OAuthAuthorizer to be able to accept a Consumer object as well as a consumer name (so that I can create it with a SystemWideConsumer), but i could just create it with no consumer and then set the consumer afterwards. let me know which you would rather19:09
EdwinGrubbsleonardr: I really don't know which way would be better.19:15
=== benji-lunch is now known as benji
leonardredwingrubbs: i'll create it with no consumer. it's simpler, and i can change it later19:16
=== matsubara is now known as matsubara-afk
leonardrEdwin: can you look at that branch? i assumed you'd done the review since you asked that question, but i don't see a review from you21:54
EdwinGrubbsleonardr: I'll start on the review now.21:56
leonardrthanks21:56
EdwinGrubbsleonardr: I did a little looking into the platform module, since I was curious. It appears that some older versions of platform.dist() don't sort the results of listdir('/etc'), so it may randomly get its info from /etc/debian_version or /etc/lsb-release. That seems like it could cause some really confusing bug reports eventually, if authentication breaks. Maybe, you should check if /usr/bin/lsb_release exists and use22:38
EdwinGrubbs"lsb_release -si"  before trying dist().22:38
leonardrEdwinGrubbs: my gut reaction to that news is to get rid of the dist() altogether and go right to system()22:48
EdwinGrubbsleonardr: ok, if "Linux" is distinct enough, that sounds fine.22:50
leonardr"Linux" is fine22:51
EdwinGrubbsleonardr: btw, I already submitted my review, but it just rehashes this issue for the record.22:51
leonardrok, thanks22:51
jcsackettlifeless: ping22:56
jcsackettnm.23:04
lifelesshi23:21

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