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

rockstarthumper, ping.02:43
thumperrockstar: hey hey02:43
rockstarthumper, unping.  I need to check to make sure my assertion is correct before making it.02:44
rockstarthumper, NOW I think I'm ready to land this branch.  I've taken out the tree creation (at one point I was running the job, so it needed a tree)03:47
thumperrockstar: is it pushed?03:48
rockstarthumper, yessir.  A bit ago (I got distracted)03:49
thumperrockstar: https://code.launchpad.net/~thumper/launchpad/more-product-series-permissions/+merge/1688803:52
rockstarthumper, wait, I have to scratch your back for to scratch mine?  :)03:53
thumperrockstar: you don't *have* to...03:53
rockstarthumper, I'm kidding.  Looking now.03:54
rockstarthumper, so this allows us to delete import branches that are the series branch?03:54
thumperrockstar: yes03:55
rockstarAwesomeness.03:55
thumperrockstar: now I have a few questions03:55
rockstarthumper, shoot.03:55
thumperrockstar: why create two branches in the test?03:55
thumperrockstar: if you are only testing that newer ones aren't deleted, you don't need two branches03:55
thumperbranch jobs03:55
thumperjust one03:56
thumperis enough03:56
rockstarHm, okay.03:56
thumperthen you can remove the first assert03:56
thumperalso why use transaction.commit()03:56
thumperis that really necessary>03:56
thumper?03:56
thumperyou have no comment at the top of the test03:56
thumperyou have two lines between the tests03:56
rockstarthumper, yes, otherwise it blows up apparently.03:56
thumperand I don't think you need tempfile anymore03:56
thumperapparently or certainly?03:56
rockstarthumper, it was blowing up otherwise.03:57
thumperwith what error?03:57
thumperI don't see why you should need the commit03:57
rockstarthumper, lemme try.03:58
thumpermwhudson: https://code.edge.launchpad.net/~thumper/launchpad/revision-karma-fix/+merge/1689004:02
thumpermwhudson: ta, using critical04:08
rockstarthumper, yea, looks like the transaction.commit is needed.04:22
thumperrockstar: hmm04:23
thumperok04:23
thumperrockstar: have you fixed the other bits?04:23
rockstarthumper, no idea, but the other tests in the TestCase do it as well.04:23
rockstarthumper, other bits fixed, pushing now.04:24
thumperok04:24
rockstarthumper, diff is updated.04:29
thumperrockstar: replied, a few more things to fix04:34
rockstarthumper, I think I got them all this time.04:42
* rockstar REALLY wants to send this branch off the ec204:43
rockstarthumper, going home from the coffee shop, back soon (hopefully to submit to PQM)04:47
thumperok04:47
thumperrockstar: you are good to go now04:48
rockstarthumper, sweet, thanks.05:01
=== jtv changed the topic of #launchpad-reviews to: on-call: jtv || reviewing: - || queue [] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== jtv is now known as jtv-afk
=== stub1 is now known as stub
=== jtv-afk is now known as jtv
jtvstub: I followed up on your db review yesterday... is it enough to take you from Needs Information to Approved?10:29
stubjtv: updated10:44
jtvta10:44
=== salgado-afk is now known as salgado
=== matsubara-afk is now known as matsubara
al-maisanhello jtv, are you still reviewing?11:58
jtval-maisan: indeed!11:58
al-maisanGreat! Would you mind taking a look at https://code.edge.launchpad.net/~al-maisan/launchpad/xx-next-builder-502927/+merge/16896 ?11:58
jtvgimme11:58
jtvlooking...11:58
al-maisanthanks :)11:58
jtvoh nice... will this one also generalize BuildQueue.required_build_behavior?11:59
jtvseems no... but progress is progress :)11:59
al-maisanjtv: not really .. this is still about job dispatch time estimation12:00
al-maisanstep n-312:00
jtvOh, I see you got builder_key un-nested... I like it better this way12:00
jtv(but didn't say anything last time because IIRC you had nested it based on another reviewer's suggestion)12:00
al-maisanyes, it was jml's suggestion I believe12:01
al-maisannow builder_key() is used in more than one place12:01
jtvdamn his morning croissant12:01
al-maisan.. and the crumbles :)12:02
jtvBut where is _minTimeToNextBuilderAvailable actually called?12:02
al-maisanjtv: nowhere yet12:02
jtv(tests aside, of course)12:02
al-maisanthat will come in one of the next branches12:02
jtvOK12:02
jtvThen bear in mind that a method name should begin with a verb12:03
al-maisanthe branch this is taken from is almost 2K LOC12:03
al-maisanah .. a verb12:03
jtvmaybe "estimate"?12:03
al-maisanI can fix that12:03
al-maisan"estimate" is nice .. I like that.12:03
jtvinstead of "min" (because the docstring suggests this is an estimated time, not a mininum)12:03
al-maisangood idea!12:04
jtvAlso, "Get" is one of those over-generic and over-used words...  Why say "Get estimated time" when you're really producing one?  Same verb can serve there.  :-)12:04
al-maisanhmm .. fair enough.12:05
jtvAlso, mixed_mode is a bit cryptic.  Can you document it in the docstring?12:05
al-maisanjtv: I can but the big comment at the beginning of the method is all about the "mixed mode"12:06
jtval-maisan: I look at the comments when I want to know more about the implementation, but the docstring should give me the "This Method for Dummies" meaning of the parameter.12:07
jtvHow about processor_dependent?12:08
jtvor even, is_processor_specific?12:08
jtvAs the law goes, two things are hard in computer science: cache invalidation and naming things.12:09
al-maisanjtv: I can add the explanation in the doc string.12:10
al-maisan.. and yeah, naming things is not easy, I agree :)12:11
al-maisan"mixed_mode" really expresses the meaning best IMHO12:11
al-maisanthink about a queue with jobs12:11
al-maisanwhat this method needs to know is whether there are jobs ahead of the job of interest (JOI) that are processor independent12:12
al-maisanif yes, then all builders should be considered12:12
jtvisn't that "mode" a property of the BuildQueue object?12:13
al-maisanjtv: not quite each job has a BuildQueue12:13
jtvRight, that's why I'm asking.12:14
al-maisanBuildQueue should actually be named BuildQueueJob12:14
jtvThe BuildQueue's job can be architecture-specific or non-architecture specific... isn't that what determines which value will be passed here?12:14
al-maisanwhat is being passed in here is: are there any jobs ahead of me that are processor independent?12:15
al-maisanahead of me in the sense that they have a higher score and ..12:15
al-maisan.. should be dispatched before me12:15
al-maisanme being the build queue job of interest12:16
jtval-maisan: maybe it would help me to understand why you need the two "modes."  Are you trying to get an estimate of when this particular job can start running (assuming that it's at a front of the queue)?12:17
al-maisanagain, think of a queue of jobs12:18
al-maisanjtv: please give me few minutes to come up with a clarifying example12:19
jtval-maisan: it would help me a lot right now to have an idea of what this method will be used for12:20
al-maisanOK12:20
al-maisanthe question this method answers is: what is the shorted time until a builder capable of running the JOI becomes available?12:21
al-maisanjtv: s/shorted/shortest/12:22
jtvbut then my previous question stands: isn't whether the job is architecture-dependent or not a property of the BuildQueue object (or its associated Job etc.)?12:22
al-maisanyes, that's what's encoded in the 'my_processor' local variable12:23
al-maisanbut12:23
al-maisanthere's (at least) one other scenario where that is not sufficient12:24
al-maisanjob queue [amd_job_1, proc_independent_job_2, x86_job_3, x86_job_4]12:25
al-maisanlet's assume x86_job_4 is the JOI12:25
al-maisanin that case proc_independent_job_2 and x86_job_3 compete for its builder pool12:26
al-maisanbut not amd_job_112:26
al-maisanso, what I need to know is: how long is the delay until the head of the queue of mutually competing jobs can be dispatched12:28
jtv(btw otp sorry)12:29
al-maisanjtv: actually, I just realized that the method may not be doing what it's supposed to do.12:30
al-maisanjtv: please ignore this merge proposal until I come back to you.12:30
=== mrevell is now known as mrevell-lunch
* jtv finally gets off phone12:42
jtval-maisan: the entire MP?  And we were still on the first line of diff!12:42
jtvnew record for me ;-)12:43
al-maisanjtv: you are asking good questions :)12:43
jtv"I could tell from the way his first two characters rendered in my browser that there was a bug somewhere"12:44
jtvmeanwhile, I'll go have a standup :)12:44
al-maisanjtv: thanks for looking at this anyway :)12:44
jtvno worries, it's what we're working on!12:44
=== mrevell-lunch is now known as mrevell
al-maisanhello gmb, I know it's not your OCR day but I have a branch that needs to land today. Would you be in a position to take a look at it? It's 611 lines long but the bulk of it are tests.14:11
al-maisanhere's the diff: http://pastebin.ubuntu.com/352336/14:12
gmbal-maisan: Sure.14:13
gmbal-maisan: Is there a merge-proposal for this?14:13
al-maisangmb: I really appreciate your help .. the MP is here: https://code.edge.launchpad.net/~al-maisan/launchpad/xx-next-builder-502927/+merge/1689614:13
gmbal-maisan: No worries :). I'll grab a cup of tea and then take a look.14:14
al-maisangmb: if you want to go through examples, I have a picture of some scenarios here: https://devpad.canonical.com/~muharem/IMG_0275.JPG14:14
gmbal-maisan: Thanks.14:14
al-maisanwe can also have a voice call .. whatever suits you.14:17
gmbal-maisan: Bear with me; I'll ping you when I need more information :)14:28
al-maisangmb: great :)14:29
=== salgado is now known as salgado-lunch
=== abentley changed the topic of #launchpad-reviews to: on-call: jtv || reviewing: - || queue [abentley] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== fjlacoste is now known as flacoste
gmbal-maisan: So, what happens if our 120 second wild guess is wrong? Anything bad?15:21
al-maisangmb: not really .. the estimate will not be as good as we'd like.15:21
al-maisanthe dispatch time estimate that is15:22
gmbal-maisan: Okay, cool. I think that the comment in the SQL should be updated to reflect that it's not going to make horrible things happen.15:22
al-maisangmb: fair enough, can do that.15:22
gmbal-maisan: Very impressive branch. r=me with the comment change and one other minor nitpick (see review)15:35
al-maisangmb: thanks a million! I owe you one :)15:35
gmb:)15:35
=== matsubara is now known as matsubara-lunch
=== salgado-lunch is now known as salgado
=== EdwinGrubbs changed the topic of #launchpad-reviews to: on-call: jtv, Edwin || reviewing: - || queue [abentley] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== beuno is now known as beuno-lunch
abentleyEdwinGrubbs: Could you please review https://code.edge.launchpad.net/~abentley/launchpad/no-review-diff/+merge/16900 ?16:08
EdwinGrubbsabentley: sure16:09
abentleyEdwinGrubbs: Thanks.16:09
abentleyEdwinGrubbs: jtv is listed in the topic, but apparently has connectivity issues.16:09
leonardrflacoste, i'm getting somewhat close to being able to land the first major multiversion branch. i wonder if you're interested in going over it with me. it would be a fairly major project (i have divided it into two chunks but each chunk is larger than 800 lines)16:16
leonardr(ie. i am trying to find someone to do a review, and i thought of you since you're interested in this project)16:16
flacosteleonardr: yes, i'd have time for this this afternoon16:17
leonardrflacoste, ok, great16:17
=== beuno-lunch is now known as beuno
EdwinGrubbsabentley the docstring for test_preview_diff_text_with_no_diff() says that the review_diff should be None when there is no context.preview_diff. Is that right? I don't really understand the difference between a review diff and a preview diff or whether all the objects treat them as separate.17:02
abentleyEdwinGrubbs: The confusion between review diffs and preview diffs was one of the reasons we got rid of review diffs.  A review diff shows the changes the branch author made.  A preview diff shows what would happen if you merged that branch.17:03
abentleyEdwinGrubbs: The review_diff field on the view class now actually refers to the preview diff, so the docstring is accurate.17:04
EdwinGrubbsabentley: is that first docstring in the diff correct, or should "review_diff" be "preview_diff". In the test you are checking view.preview_diff_text.17:05
abentleyEdwinGrubbs: I think review_diff should be preview_diff_text.17:06
EdwinGrubbsabentley: The docstring for test_preview_diff_utf8 doesn't make any sense.17:06
abentleyEdwinGrubbs: It means that if the bytes are utf-8-encoded, they should be decoded to unicode as utf-8.17:07
EdwinGrubbsabentley: can you clarify that in the docstring?17:08
abentleyEdwinGrubbs: "A preview_diff in utf-8 should be decoded as utf-8" ?17:08
EdwinGrubbsabentley: yes, but there is no reason to say utf-8 twice, can you say "decoded into a unicode object"?17:13
abentleyEdwinGrubbs: The reason to say it twice is because it should not be decoded using a different encoding.17:14
abentleye.g. "A preview_diff in utf-8 should be decoded as utf-8, not utf-16"17:14
EdwinGrubbsabentley: ok, that makes sense, since that's what you are really trying to test.17:15
EdwinGrubbsabentley: in xx-branch-merge-proposals.txt, a tag with id='review-diff' is retrieved. Is that just a case where the UI hasn't yet been updated to match the name of the attribute that is now used?17:18
abentleyEdwinGrubbs: Yes.17:19
EdwinGrubbsr=me with the two docstring changes17:19
abentleyEdwinGrubbs: Thanks.17:19
=== matsubara-lunch is now known as matsubara
=== EdwinGrubbs is now known as Edwin-lunch
leonardrflacoste, let me know when you're ready to start the review17:44
flacostesend it to me, i'll start on it after lunch17:44
leonardrok, the first bit is some code i pushed back in november17:45
leonardrhttps://code.edge.launchpad.net/~leonardr/lazr.restful/version-specific-request-interface/+merge/1517217:45
leonardri'm working on writing up the subsequent changes17:45
leonardri tried to use looms for this branch but i didn't do a very good job17:45
leonardron top of that branch, i've got one tiny thread and one enormous thread17:45
flacosteleonardr: i'll look at that m-p after lunch and contact you if i have any questions17:50
leonardrok17:56
leonardrthen we'll move from there17:56
=== flacoste is now known as flacoste_lunch
=== deryck is now known as deryck[lunch]
=== flacoste_lunch is now known as flacoste
=== Edwin-lunch is now known as EdwinGrubbs
=== matsubara is now known as matsubara-afk
=== deryck[lunch] is now known as deryck
=== noodles76 is now known as noodles775
flacosteEdwinGrubbs: can I have r=you for adding a top-level .ctags to the launchpad tree?20:07
EdwinGrubbsflacoste: sure20:08
EdwinGrubbsflacoste: thanks for doing that20:08
flacosteleonardr: around?20:27
leonardrflacoste, yes20:27
flacosteleonardr: do you remember why in multiversion.txt you have to register an IComponentLookup adapter?20:27
flacosteeverything_uses_the_global_site_manager20:28
leonardrflacoste: i was modeling it after webservice.txt. i assumed it was because the test was running in a very minimal environment20:28
leonardri'll try removing it and seeing if it still works20:28
leonardrflacoste, that code is unnecessary both in webservice.txt and multiversion.txt. i'l remove it from both places20:29
flacosteleonardr: ok, thanks!20:29
flacosteleonardr: what is the use of IVersionedClientRequestImplementation20:32
flacoste?20:32
flacosteI'm reading the "Defining the request interfaces" section20:32
flacosteand the narrative doesn't talk about that interface20:33
leonardrflacoste: IVCRI makes it easy to look up a marker interface based on the version string20:33
flacosteleonardr: ok, you probably want to explain that in the narrative then20:33
leonardrsure20:33
flacosteleonardr: first review done20:51
leonardrflacoste, ok20:51
leonardrbecause the original branch causes a huge number of test failures (the second branch is all about fixing these), i'm going to make your suggested changes to the second branch20:52
flacosteleonardr: ok, i won't have time to review the second branch today though20:53
leonardrflacoste: no problem20:53
leonardri'm almost done for the day. i'll spend the rest of the day responding to your review and we can pick up tomorrow20:54
leonardrflacoste: not sure why those conflict markers are showing up20:55
leonardri'll re-push my branch and hopefully they'll disappear20:55
flacosteleonardr: branch trunk and merge your branch20:56
flacostesee if you get any conflicts20:56
leonardrnope21:05
=== Ursinha is now known as Ursinha-afk

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