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

=== jtv changed the topic of #launchpad-reviews to: On call: jtv || reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews On call: - || reviewing: - || 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: jtv || reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jtvAnyone willing to review a branch for the OCR?  I've been leaning on henninge far too much for my reviews.09:24
jtvnoodles775, you could do this!09:24
jtvWilling to review https://code.edge.launchpad.net/~jtv/launchpad/extract-approval-js ?09:24
jtvAhem... MP is https://code.launchpad.net/~jtv/launchpad/extract-approval-js/+merge/2885209:25
noodles775Sorry jtv - I'm working to get an urgent feature done right now...09:29
* jtv continues his search for prey09:29
jtvrockstar, on the off-chance you're working right now: I'm hoping to get a javascript review...  https://code.launchpad.net/~jtv/launchpad/extract-approval-js/+merge/2885209:33
rinzejtv: I can code review, but I'm not a UI reviewer09:42
jtvrinze: that's fine—there's no UI change apart from chromium now showing things properly like other browsers.09:43
jtvrinze: is javascript a problem?09:43
rinzeno, javascript should be fine09:44
jtvAnd... change of nick?09:44
* rinze claims the MP09:44
jtvthanks09:44
rinzejtv: I switched to two nicks that I can connect/disconnect independently, one for work and one for other FOSS stuff09:44
jtvbegrijpelijk09:44
rinzejtv: I haven't forgotten your branch but it's taking a wee bit longer since my JavaScript is a bit rusty.12:46
jtvrinze: in that case, it'd probably be better to go over it with a javascript-specialized reviewer—gets you unrusted and also lets you pick up JS coding guidelines.12:47
rinzejtv: Yeah, that'd be useful, though there doesn't appear to be one around at the moment :-(12:51
jtv...and there's the catch.12:52
rinze(I've just been looking at https://dev.launchpad.net/JavaScriptReviewNotes)12:52
jtvrinze: looking at those myself now... I see that my documentation needs some tweaks.12:54
bigjoolsjtv: hi12:56
jtvhi bigjools12:56
bigjoolsjtv: can you review this for me please: https://code.edge.launchpad.net/~julian-edwards/launchpad/copy-archive-fix-component/+merge/2887112:56
bigjoolsit's going to be a CP12:56
jtvbigjools: so speed matters... right ho12:57
bigjoolsthanks12:57
jtvrinze: I was in the process of updating my documentation; will finish that after julian's review.  BTW I think I forgot to mention that there was no lint.12:58
rinzerinze, ok12:59
bigjoolsrinze: how many other nicks have you got? :)13:00
jtvbigjools: approved13:01
bigjoolsjtv: cheers13:01
bigjoolsnow, I need flacoste to do the same :)13:01
jtvquite13:01
jtvI suppose you can land on devel in the meantime.13:01
rinzebigjools: just these three :-)13:04
rinzejtv: I also have another branch up for review13:05
jtvrinze: let's have it then13:05
rinzehttps://code.edge.launchpad.net/~jelmer/launchpad/600153-main-archive-builds-on-restricted/+merge/2886713:05
=== matsubara-afk is now known as matsubara
jtvrinze: did you run "make lint" btw?13:15
rinzejtv: No, I haven't run make lint13:17
jtvMake it a habit.  We're supposed to do that before submitting the MP.13:17
rinzeok13:19
jtvAlso, I know it's not your fault (or at least not in this branch), but could you give _get_enabled_restricted_families and _set_enabled_restricted_families docstrings explaining what their purpose is?  If they're methods, give them dromedaryCase names rather than underscore_separated names.13:22
* rinze nods13:25
jtvAlso, in _set_enabled_restricted_families please consider avoiding that nasty line break in the "if" condition.  Not very important, but would-be-nice.13:27
bigjoolsjtv: I have another branch up, not urgent though, at your leisure!13:28
* bigjools needs to eat13:28
jtvbigjools: on the queue please13:28
rinzejtv: I considered that but I couldn't think of an easy way of doing that without adding a nested if statement13:28
=== bigjools changed the topic of #launchpad-reviews to: On call: jtv || reviewing: - || queue: [bigjools] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
bigjoolsdone, ta13:28
jtvThanks.  My fault for not updating the topic.13:28
jtvOn call:  jtv || reviewing: rinze || queue: [bigjools] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews13:28
=== rinze changed the topic of #launchpad-reviews to: On call: jtv || reviewing: rinze || queue: [bigjools] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jtvrinze: in this case a nested would not be _that_ bad if you combine it with a temporary variable.13:29
jtvrinze: thanks  :)13:29
jtvrinze: btw I was wondering... what does CannotRestrictArchitectures._fmt do?13:31
rinzejtv: I believe it's used for the stringified version of the exception13:35
jtvrinze: stringified version?  You mean for __repr__'ing it?13:35
jtvrinze: come to think of it I'd prefer it if you just passed the error message to the constructor.13:36
rinzeI meant __str__, but now that I'm checking it doesn't actually appear to be the case.13:36
rinzeit's what some of the other exceptions used as well13:37
rinzejtv: That makes sense13:37
jtvAlso avoids changes between python versions... the underscore sort of says "don't mess with this, it looks funny and there's a faint ticking noise coming out of it."13:38
jtvrinze: btw lint doesn't complain about it, but try to avoid trailing whitespace as well.13:49
flacostebigjools: what do you need me for?13:56
jtvrinze: you have a line overrun in your docstring for test_main_archive_can_use_restricted.  You can fix that by turning it into a comment—we don't usually write docstrings for test methods.14:17
jtvrinze: and have a look at TestCase.assertContentEqual; will save you a bit of listification there.14:19
rinzerinze: The style guide is ambiguous in that regard: "Write in the docstring of each test case what is being tested. As a special case for test methods, a comment block at the beginning of the method is considered an acceptable substitute to a docstring."14:19
rinzes/rinze/jtv/14:20
rinzejtv: Ah, I wasn't aware of that one - thanks14:20
jtvrinze: we don't usually write docstrings there... saves us having to follow the docstring format.14:20
jtvSo don't feel too bad about being merely "considered acceptable."  :-)14:20
rinzeheh, ok14:23
jtvbigjools, line 66 of your diff: s/Lets/Let's/14:31
bigjoolsgrar14:32
jtvBut frankly starting paragraphs with that is usually an indicator that you're trying to pass off setup code as documentation.14:32
jtvYou may just want to say something like "we have a" rather than "let's make a"14:32
bigjoolsI welcome any recommendation to make it better14:32
jtvDo it all in French!14:33
jtvno wait14:33
bigjoolsEnc...14:33
bigjoolsno waut14:33
jtv?14:33
bigjoolstyping is clearly not my strong point today14:34
jtvbigjools: instead of...14:35
jtvhttps://code.launchpad.net/~julian-edwards/launchpad/api-commercial-ppas-bug-597211/+merge/2887714:35
jtvargh14:35
jtvInstead of...14:35
jtvstore = getUtility(IStoreSelector).get(MAIN_STORE, DEFAULT_FLAVOR)14:35
bigjoolsare we putting the missing U back?14:36
jtv...you can just say...14:36
jtvstore = IStore(Archive)14:36
jtvThe missing U back?  I wish.  But now we can say it's a metric U and some people just haven't gotten around to adopting it yet.14:36
bigjoolsdoes that select a slave or master depending on the operation?14:36
jtvYes, that's the default flavour.14:37
bigjoolscool14:37
jtvThere's also IMasterStore and ISlaveStore.  Thank stub for that.14:37
bigjoolswe should do a branch to fix all of those at once14:37
bigjoolsyeah I know, I have a jihad branch that is forcibly choosing ISlaveStore but it breaks a million tests14:37
jtvIn some places you'll need to commit just to make the slave catch up.14:38
bigjoolsI know -  but it's not as simple as that14:38
jtvbigjools: I was hoping for more here :)14:40
jtvwhat complications do you have in mind?14:40
bigjoolsI'm gonna take a new strategy of using the Slave policy in top-level scripts and cast objects to IMasterObject where I need to write them14:40
jtvBTW with those changes the branch looks good to me.  Nice work.14:40
stubIf IStore(Archive) doesn't work because it is not derived from SQLBase (not sure), they can review my branch with the one line fix.14:41
jtvbigjools: I just approved your branch14:43
bigjoolsjtv: grassyass14:43
jtvrinze, how's yours coming along?14:43
jtvbigjools: de nutter14:43
=== jtv changed the topic of #launchpad-reviews to: On call: jtv || reviewing: rinze || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
* jtv is taking a break14:55
=== jtv is now known as jtv-afk
=== jtv-afk is now known as jtv
=== jtv is now known as jtv-afk
=== EdwinGrubbs changed the topic of #launchpad-reviews to: On call: jtv, Edwin || reviewing: rinze || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jtv-afkhi EdwinGrubbs!15:17
jtv-afkMaybe you can review one of mine?15:17
EdwinGrubbsjtv-afk: sure15:17
jtv-afkEdwinGrubbs: e.g. https://code.launchpad.net/~jtv/launchpad/bug-580337/+merge/2888015:17
=== EdwinGrubbs changed the topic of #launchpad-reviews to: On call: jtv, Edwin || reviewing: rinze, jtv || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
EdwinGrubbsjtv-afk: what does "test_getVariable_smoke" mean? I don't see anything called "smoke".16:04
=== jtv-afk is now known as jtv
jtvEdwinGrubbs: smoke test :)16:32
EdwinGrubbsI kinda guessed, but it seemed a little vague.16:34
EdwinGrubbsjtv: review sent16:35
jtvEdwinGrubbs: thanks!16:35
=== EdwinGrubbs changed the topic of #launchpad-reviews to: On call: jtv, Edwin || reviewing: rinze || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== matsubara is now known as matsubara-lunch
EdwinGrubbsjtv: btw, do you have any thoughts on the email I sent about adding code to POTemplate.importFromQueue() to cache the message count?17:20
jtvEdwinGrubbs: oh, I swapped that out... hang on17:20
jtvEdwinGrubbs: istm this count doesn't have to be time-accurate so an offline job may be more suitable.  Apart from that it made sense.17:22
jtvBut is the caching necessary?  Summing the template message counts for a package shouldn't be too costly.17:23
jtv(As long as you don't go doing it in python)17:23
EdwinGrubbsjtv: the problem occurs because the +needs-packaging page sums the message counts for each sourcepackage and then sorts the sourcepackages based on that.17:24
jtvEdwinGrubbs: SQL-side or python-side?17:24
EdwinGrubbsjtv: it's summed in sql17:24
jtvOh, it's the old "sort before you batch" problem?17:25
jtvWhere you don't have any performance problems thanks to batching, _except_ determining the order to batch in scales really badly with overall table size?17:25
EdwinGrubbsjtv: I'm assuming that there are multiple POTemplates per sourcepackage, since we are using a subquery. If it was one-to-one, we could join instead.17:26
jtvWell you can still left-join—it's just a question of how costly that is.17:27
EdwinGrubbsdoes the message count typically change more than once a day for each sourcepackage? If not, a daily cronjob would actually be more db intensive.17:27
jtvUnless we pick out only the templates that _have_ changed.17:28
jtvA message queue would be ideal, but timestamps would do it as well.17:28
EdwinGrubbsjtv: are you saying it's either 1-to-1 or 1-to-0? I thought it was 1-to-many, which a left-join wouldn't help.17:28
* EdwinGrubbs feels like I'm talking about world cup scores.17:28
=== deryck is now known as deryck[lunch]
jtvIt's one-to-many... but you can still "group by"17:30
jtvselect sourcepackagename.id, sum(messagecount) from sourcepackagename join potemplate on potemplate.sourcepackagename = sourcepackagename.id group by sourcepackagename.id;17:31
EdwinGrubbsjtv: how is POTemplate.date_last_updated updated? I don't see a trigger, and the POTemplate class doesn't seem to do it automatically or in importFromQueue().17:35
rinzejtv: I've pushed an updated version of my branch17:38
jtvEdwinGrubbs: in POTFileImporter17:39
jtvrinze: cool, thanks... I'll get on it in a minute17:39
jtvrinze: in ll.66—67, could you capitalize and punctuate the error string?17:41
jtvEdwinGrubbs: so it is up-to-date, though it may be python-side time rather than database-side time.  But I guess that could be fixed if needed.17:42
rinzerinze, yep17:42
jtvrinze: you're talking to yourself again :)17:42
rinzedoh17:43
jtvrinze: anyway, with that one remark, I'm approving.  Please give me a moment to document.17:43
jtvrinze: done17:47
rinzejtv: thanks!17:47
jtvnp17:47
* jtv is about done17:47
=== jtv changed the topic of #launchpad-reviews to: On call: Edwin || reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
rinzeEdwinGrubbs: Can I add a branch to your queue? It's a simple one to fix the merge of stable into db-devel17:56
EdwinGrubbsrinze: sure17:57
rinzeEdwinGrubbs, https://code.edge.launchpad.net/~jelmer/launchpad/stable-fix/+merge/2891217:58
=== deryck[lunch] is now known as deryck
EdwinGrubbsrinze: this branch appears to have a lot more than resolved conflicts. Is there another branch that was already reviewed but never landed?18:11
rinzeEdwinGrubbs: It merges stable into db-devel so it's got all the other changes from stable as well18:12
=== matsubara-lunch is now known as matsubara
rinzeEdwinGrubbs: I don't have much experience fixing these sorts of merges, I wonder what the best way is to present these changes for review.18:15
EdwinGrubbsrinze: it's a good idea to add a comment to the mp which shows just the two files that you had to modify.18:19
rinzeEdwinGrubbs, the two files are lib/lp/soyuz/{configure.zcml,model/archive.py}18:23
EdwinGrubbsrinze: what editor do you use?18:30
rinzeEdwinGrubbs, vi18:30
=== jtv is now known as jtv-afk
EdwinGrubbsrinze:  your branch contains an unusual amount of dangling whitespace and tab-characters as opposed to spaces. Most of us have vi or emacs configured to highlight these. See https://dev.launchpad.net/UltimateVimPythonSetup18:32
EdwinGrubbsrinze: the most import configs are18:33
EdwinGrubbshighlight WhitespaceEOL ctermbg=red guibg=red18:33
EdwinGrubbsmatch WhitespaceEOL /\s\+$/18:33
EdwinGrubbsand18:33
EdwinGrubbssetlocal list listchars=tab:>~,trail:*18:34
rinzeEdwinGrubbs, thanks18:35
EdwinGrubbsrinze: actually, setlocal should be just 'set' unless it is called from a command that checks the filetype of each newly opened file.18:35
EdwinGrubbsrinze: btw, at the very bottom of that wiki page there is a branch that I made that incorporates almost all the configs, so you don't have to copy and paste or download dependencies.18:39
rinzeEdwinGrubbs, thanks for the review18:52
rinzeEdwinGrubbs, and thanks for the hint about the vim config branch, I'll have a look at it sometime18:52
abentleyEdwinGrubbs, could you please review https://code.edge.launchpad.net/~abentley/launchpad/fix-stuck/+merge/28924 ?19:16
EdwinGrubbsabentley: sure19:19
=== EdwinGrubbs changed the topic of #launchpad-reviews to: On call: Edwin || reviewing: abentley || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
EdwinGrubbsabentley: looking at the .bzrignore, it seems odd that the source package files would be placed directly in the lib/canonical/ directory and not in a subdirectory.19:35
abentleyEdwinGrubbs, IME, building a package places the files in the parent directory.19:36
EdwinGrubbsoh, I see, you didn't want to have two levels of temp directories.19:36
EdwinGrubbsabentley: it also seems like SourcePackageRecipeBuildManager.initiate() would benefit from adding assert isinstance(self.author_name, unicode) so you get an early warning if None or a str is passed in.19:38
abentleyEdwinGrubbs, how would that be a benefit?19:42
EdwinGrubbsabentley: well, it would only catch tests that initialize the object without running it. I'm not sure if that is even plausible.19:45
EdwinGrubbsabentley: r=me19:52
abentleyEdwinGrubbs, thanks!19:53
=== matsubara is now known as matsubara-afk
abentleyrockstar, could you please review https://code.edge.launchpad.net/~abentley/launchpad/process-upload-no-cwd/+merge/28682 ?20:49
rockstarabentley, ack20:53
=== salgado is now known as salgado-afk
=== sinzui changed the topic of #launchpad-reviews to: On call: Edwin || reviewing: abentley || queue: [sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
bdmurrayleonardr: my mp is ready for re-review22:37
leonardrbdmurray: ok, i'll get to it tomorrow morning. remind me if i don't get to it22:44
bdmurrayleonardr: okay thanks22:46
=== EdwinGrubbs changed the topic of #launchpad-reviews to: On call: - || reviewing: - || queue: [sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
EdwinGrubbssinzui: I didn't see your branch in the queue. I can do it later today.23:24
sinzuiEdwinGrubbs, okay23:29
=== flacoste is now known as flacoste_afk

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