[00:26] https://code.edge.launchpad.net/~wallyworld/launchpad/reassign-reviewer-cancel-option/+merge/36671 [00:26] StevenK: ^^^^^^^^^^^^ [00:26] thanks ;-) === Ursinha-afk is now known as Ursinha === matsubara is now known as matsubara-afk [02:46] can someone review https://code.edge.launchpad.net/~jameinel/launchpad/lp-service/+merge/35877 [02:46] it's a big performance improvement [03:28] StevenK: ping? === Ursinha is now known as Ursinha-afk === Ursinha-afk is now known as Ursinha === jtv changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [jtv] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [08:13] noodles775: just one little thing: I don't think putting an all-caps CURRENT and ALWAYS in test names names is the right thing to do. I'd just keep the names low key ... ;) [08:14] s/names names/method names/ [08:16] henninge: as in test_blacklist_options_initial_values_CURRENT ? Right - I initiall was reflecting the enum. I've sent that branch to land, but will updated it in the next. [08:16] s/initiall/initially [08:16] noodles775: that's fine, it's not a big deal. === StevenK changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [jtv,StevenK] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews === StevenK changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [jtv] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews === gmb changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: - || queue: [jtv] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews === gmb changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: jtv || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews === gmb changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: poolie || queue: [jtv] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [11:09] gmb: Can I foist a trivial review onto you? [11:11] and me please! *2 [11:11] allenap, bigjools: Queue 'em up. === allenap changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: poolie || queue: [jtv, allenap] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [11:11] gmb: Danke. === bigjools changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: poolie || queue: [jtv, allenap, bigjools*2] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [11:11] buckets === gmb changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: jtv || queue: [allenap, bigjools^2] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [11:26] gmb: did you change your mind about my branch? [11:26] jtv: No, but I've had poolie's branch in my queue since Friday [11:26] Seemed a good idea to get it out of the way first. [11:26] gmb: ironically, he owes me one. [11:26] I traded reviews with him, but never got mine. [11:27] Shocking behaviour. [11:27] (And at that time he couldn't have known how rough I'd be on his, heh heh) [11:27] :) [11:32] jtv: r=me === gmb changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: allenap || queue: [bigjools^2] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [11:35] gmb: thanks [11:38] allenap: r=me [11:38] gmb: Cheers :) === gmb changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: bigjools || queue: [bigjools] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [11:52] bigjools: r=me * 1 [11:52] gmb: thanks - the other one errored on the email MP proposal, I just did another by hand [11:53] bigjools: Yep, looking now. So is this one a correction of the stuff that we rammed in on rollout day? [11:53] Or am I confusing different 'enabled' fields [11:53] gmb: not exactly but nearly - the rollout day change was just the db change [11:53] Ah, yes. Of course. [11:53] I need to tweak the code now [11:53] Cool [11:53] if you need help understanding the test let me know [11:54] k [11:54] you need to know how arch-all publishing works to appreciate it :) [11:55] bigjools: The test makes sense to an extent but for the sake of completeness... how does arch-all publishing work ? :) [11:56] gmb: although the binary is only built in one architecture, it has to be published everywhere [11:57] the code I tweaked calculates the other archtectures for publishing [11:58] Right. [11:58] bigjools: Pretty much as I thought, then. [11:58] ok cool [11:58] bigjools: r=me; looks good [11:58] thanks gmb [11:58] np === gmb changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [12:00] ah wgrant is stalking me again [12:00] bigjools: Yeah, sorry. [12:01] I didn't see it was being discussed in here. [12:01] wgrant: I'll fix copying separately [12:01] Hmmm. [12:01] I suppose. [12:02] it could do with refactoring [12:02] I'm also slightly worried about letting new binaries through the publisher unchecked. But I guess that's not a huge problem. [12:02] anyway the urgent case is the upload one [12:02] unchecked? [12:03] I think I'd prefer it if the publisher whinged if it tried to publish binaries in a disabled arch. [12:03] This is messy :( [12:04] what about the case where you want to delete? [12:04] Hm? [12:05] actually, hmmm, getPendingPublications doesn't look for that [12:05] it could whinge but it's not necessary - preventing creating publications is the important bit [12:06] I guess we can fix any screwup there later. [12:06] It's the indices that are the important bit. [12:06] Since they can never change after release. [12:06] yes [12:07] But copies need to be fixed soon, since there'll be SRUs possibly even before release. [12:11] Hrrrrrm. === gmb changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: vittles || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews === mrevell is now known as mrevell-lunch === matsubara-afk is now known as matsubara === mrevell-lunch is now known as mrevell === gmb changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews === vednis is now known as mars === leonardr changed the topic of #launchpad-reviews to: On call: gmb, leonardr || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [15:30] gmb: can you please review the extra revision I added to the second branch you did for me earlier? [15:31] it adds another check - yay for duplicated code logic. (bug filed BTW) [15:31] bigjools: Sure. [15:31] bigjools: What's the MP URL again? [15:32] gmb: https://code.edge.launchpad.net/~julian-edwards/launchpad/no-disabled-arch-publications-bug-648715/+merge/36838 [15:32] cheers [15:33] whoever in the Code team added the partial diff attachment processing, you're totally awesome [15:34] +1. That's the first time I've seen that. [15:34] it's been there for a while [15:34] bigjools: Yeah, but no-one ever does any work round here. [15:34] Lancaster? [15:34] :) [15:35] Touche. [15:35] bigjools: r=me on the changes. [15:36] gmb: thanks muchly [15:36] np [15:52] gmb, leonardr: Could you please review https://code.edge.launchpad.net/~abentley/launchpad/incremental-diffs/+merge/36875 ? === abentley changed the topic of #launchpad-reviews to: On call: gmb, leonardr || Reviewing: - || queue: [abentley] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [15:55] abentley, sure [15:55] leonardr: thanks. === leonardr changed the topic of #launchpad-reviews to: On call: gmb, leonardr || Reviewing: abentley || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews === matsubara is now known as matsubara-lunch [16:22] gmb or leonardr: time for a review? [16:22] jcsackett, put it in the queue === jcsackett changed the topic of #launchpad-reviews to: On call: gmb, leonardr || Reviewing: abentley || queue: [jcsackett] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [16:23] leonardr: you got it. MP is https://code.edge.launchpad.net/~jcsackett/launchpad/bad-state-transition-641266/+merge/36726 [16:23] jcsackett: and give me the mp url [16:24] one step ahead of you. :-P [16:36] abentley, all the fields in IIncrementalDiff are exported, but you don't call export_as_webservice_entry(). do you want these objects to be published through the web service? [16:37] leonardr: I guess so. [16:38] gmb, leonardr: Could you please review https://code.edge.launchpad.net/~abentley/launchpad/incremental-diff-job/+merge/36881 ? [16:38] abentley: try running the webservice tests with your branch as-is and see if you get any failures. i'm curious. [16:39] abentley: I'll take a look at that branch for you. [16:39] leonardr: How do I do that? [16:39] gmb: thanks. [16:39] ... after I've looked at jcsackett's. Argh; spent too much time looking at tests and am now all turned about. === gmb changed the topic of #launchpad-reviews to: On call: gmb, leonardr || Reviewing: jcsackett, abentley || queue: [abentley] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews === abentley changed the topic of #launchpad-reviews to: On call: gmb, leonardr || Reviewing: abentley || queue: [jcsackett, abentley] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews === abentley changed the topic of #launchpad-reviews to: On call: gmb, leonardr || Reviewing: jcsackett, abentley || queue: [abentley] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [16:45] abentley: bin/test -vvt webservice [16:50] abentley: even if the existing webservice tests pass, i suspect your branch will break as soon as someone does something to retrieve a diff from the web service, and the diff they get happens to be an incremental diff [16:50] leonardr: No, I don't think so. Incremental diffs aren't diffs, and don't have any URL at all. [16:51] abentley: in that case, i don't think you need to call exported() on their fields [16:53] leonardr: So either I should go all the way and export incremental diffs over the API, or I should drop the export calls? [16:53] abentley: exactly. export() is you telling lazr.restful which parts of the incremental diffs should be visible [16:54] leonardr: Fair enough. I'll probably export them, just because sooner or later, we'll get bug reports if I don't. [16:55] abentley: bug reports saying "export these pls"? [16:55] leonardr: yeah. [16:55] abentley: ok, i think you should do that in a separate branch [16:55] since you'd also have to give an incremental diff a url [16:56] leonardr: okay. [16:57] abentley, is an incremental diff really a 'thing' with an independent existence? it seems more like the product of an algorithm. that doesn't preclude giving it a url, but it might make the work more complicated [16:58] leonardr: You could look at it as merely cached data. [16:58] leonardr: Same for any diff, I guess. [16:59] abentley: at this point we're beyond a review of this branch, but if you get into this, maybe we can talk about how existing diffs are published in launchpad-dev? [17:01] leonardr: sure. === gmb changed the topic of #launchpad-reviews to: On call: gmb, leonardr || Reviewing: abentley, abentley || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [17:02] abentley: can you explain this line? IMasterStore(IncrementalDiff).add(incremental_diff) [17:02] are you caching the diff in the database for later? [17:04] and what's the difference between IMasterStore.of() and Store.of()? it looks like one takes a class and the other an instance? [17:04] leonardr: I am storing the value in the database. We cannot generate incremental diffs on demand. We will generate them in a cron job [17:05] leonardr: IMasterStore(class) returns the writable store that is meant to be used for that class. Store.of(instance) returns the store the the instance was retrieved from. [17:05] abentley: ok, that does give the incremental diff an independent existence [17:11] leonardr: export removed, diff is updated. [17:12] leonardr: s/export/expose === jcsackett is now known as jcsackett|afk [17:19] abentley, line 292, i think the end quotes need to be on their own line [17:21] leonardr: done. [17:21] going through tests now [17:25] abentley: r=me on the incremental diff job branch with a few small changes requested. === gmb changed the topic of #launchpad-reviews to: On call: leonardr || Reviewing: abentley || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [17:25] abentley, i think in test_generateIncrementaldiff there are several multi-line loc you could combine and stay under the character limit === sinzui changed the topic of #launchpad-reviews to: On call: leonardr || Reviewing: abentley || queue: [sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [17:25] gmb: thanks. [17:26] leonardr, I have a branch the refactors our rdf page. [17:26] and i could really use some comments explaining what all these branches have to do with each other. it's tough to figure out just by looking [17:26] sinzui: ok, send me the mp [17:26] https://code.edge.launchpad.net/~sinzui/launchpad/rdf-links-1/+merge/36865 [17:27] abentley: or some more expressive commits--right now all the commits are nearly identical except for one or two single-character differences === matsubara-lunch is now known as matsubara [17:28] i think it would help a lot to have a comment explaining the original state of the precursor branch, the state of the prerequisite branch, and then the changes made by the new branch [17:28] leonardr: I was only able fix one multi-line loc. [17:28] abentley: ok, i must have misjudged. what do you think of the comment idea? [17:29] leonardr: Sure, I can do that. [17:29] a way to make it simpler without comments would be to have a method that both creates a branch and does a commit [17:36] leonardr: http://pastebin.ubuntu.com/502197/ [17:37] leonardr: half of those commits are merges, though. [17:39] abentley: that makes it a lot clearer [17:40] i don't know if the method that creates branch and does commit would help much, but it might help distinguish between the branches as they were "before", and the branches that get changed "during" the test [17:42] abentley: a couple nosy questions about difftacular, which i see you wrote yourself during july (?) [17:42] how hard would it be to make an egg of it? i get the impression we prefer eggs to sourcedeps [17:43] granted that you have tests in difftacular, but did you get someone to review that code? [17:43] leonardr: impossible. bzr plugins cannot be provided as eggs. [17:44] ok [17:45] leonardr: I did not get someone to review that code. [17:45] leonardr: I'm sorry, but I need to go now to meet someone for lunch. === abentley is now known as abentley-lunch [17:48] abentley: no problem. i'll approve this mp with your changes, contigent on getting difftacular reviewed. i can probably review it today if it's not too complicated, since i need to leave some mps for a trainee who's ocr tomorrow === leonardr changed the topic of #launchpad-reviews to: On call: leonardr || Reviewing: sinzui || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [18:21] sinzui, just out of curiosity, have people been complaining about the rdf and the owl? [18:22] leonardr, none directly...they cannot find it. We have circuitous complaints that RDF is not documented [18:23] oh, Google knows about it [18:23] bots don't complain though, they just 404 [18:40] sinzui, obvious typo: "it's" in line 204 [18:40] * sinzui can fix that [18:43] sinzui: it looks like there was a problem where both the rdf spec and the link to it were called "rdf". was that the actual source of the problem (like a conflict) or was it just something that looked confusing so you fixed it? [18:44] abentley-lunch: I didn't get the job runner cron script ready in time for your OCR day. Do you have time to review it now, or do you know someone else who is familiar enough to handle it? [18:44] leonardr, that was part of the problem. browser resource loses the mimetype. lazr folder fixes that === benji is now known as benji-afk [18:45] leonardr, I think it was first broken because the director or zcml moved and the publisher could not find the dir. [18:45] sinzui: i see [18:45] ok, r=me === jcsackett|afk is now known as jcsackett [19:51] EdwinGrubbs: I can look at it now. === leonardr changed the topic of #launchpad-reviews to: On call: leonardr || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [19:52] abentley-lunch: when you have time, i've looked through the difftacular codebase and i have some questions at various granularities === abentley-lunch is now known as abentley [19:54] leonardr: sure. [19:54] abentley: my biggest problem is that i don't understand what ignore_heads does [19:55] it looks like it takes one branch, and a bunch of other branches, and returns a bunch of revision ids in the first branch that can be ignored? [19:57] leonardr: it's the changes introduced by those revisions that can must be ignored. [19:58] abentley: how about iter_lca_revision? i don't know what an lca is, but i'm guessing this is what strips out the revisions to be ignored? [20:00] leonardr: an LCA is a Least Common Ancestor. It is an ancestor shared by both revisions that has no descendants that are also ancestors of the revisions. [20:01] so the revisions included in the diff are the lcas of the original revision and all the revisions being ignored? [20:03] leonardr: we don't really diff revisions. We generate two trees and diff those. [20:03] The "new" tree is the tree for the "new_revision". [20:04] The "old" tree is generated by merging the changes from the ignore_branches that were merged into the new_revision into the old_revision as well. [20:04] abentley: thanks, here it is: https://code.edge.launchpad.net/~edwin-grubbs/launchpad/bug-615654-jobqueue-cron-script/+merge/36910 [20:04] ok, that's similar to what i was trying to say [20:04] let me take another look at the tests now that i understand ignore_heads [20:05] EdwinGrubbs: I am looking into it, but I am also multitasking pretty hard. [20:05] abentley: no problem, I need to get some lunch anyway. [20:13] abentley: why does ignore_heads return an empty list in test_ignore_heads_already_merged? is it because the merge happened in rev2, not between rev2 and rev3? [20:18] leonardr: it is because those branches haven't been merged into bar. [20:19] oh, they were merged into foo and you checked bar [20:19] no, i'm confused again. 'repo' is foo.branch.repository [20:19] you're generating a diff between foo rev2 and foo rev3 [20:19] and you're ignoring bar [20:20] but bar was merged into foo during rev2, so it doesn't show up [20:20] that makes sense to me, but it's not what you're testing? [20:21] leonardr: sorry, misread it. [20:21] leonardr: yes, your original idea was right. [20:21] ok [20:22] abentley: hopefully the final question before the suggestions [20:23] what exactly is going on in the unignored merge scenario? [20:23] i suspect it's not unignored on its own, but that you use it in a way where bar.branch is not ignored where it would otherwise be ignored [20:25] or, you create a new branch, merge it into foo, and its changes are picked up while bar's changes are ignored [20:27] leonardr: I don't understand what "unignored on its own" would mean. Everything depends on how you invoke the diff generation. [20:28] abentley: i don't think "unignored on its own" has any meaning, but "create_unignored_merge_scenario" implies that it does [20:29] i'm trying to figure out what is special about the scenarios where you call that functino. such that the "unignored" branch is not ignored [20:30] leonardr: I think it means that the merge would not be ignored if you did a normal diff. [20:31] abentley: in the two tests where you use it, the merge is *not* ignored. you ignore bar instead, and the "d" line shows up in the diff [20:32] which makes sense, given the name. i'm just not sure whether that's what you're testing [20:33] leonardr: I'm testing that when the branch isn't in the list of branches to ignore merges from, its merges aren't ignored. [20:34] leonardr: unlike mainline_diff, which will ignore such merges. [20:34] ok, i get it now, but it's confusing that the tests are called "ignore_x" and you're checking that only *certain* x are ignored [20:38] abentley: for lack of a better place to put these comments, i'm going to append them to my review of your launchpad branch [20:39] leonardr: okay. [20:51] abentley: i've approved your launchpad branch. let me know when you do a difftastic follow-up and i'll review that === leonardr 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 [20:57] leonardr: the preview tree must be used as the input to the next merge. Otherwise, you're not doing proper merges. [20:59] abentley: ok, i missed that you were reassigning tree [21:08] EdwinGrubbs: "for child in children: child.wait()": doesn't this mean that you can't re-run a job source until all job sources have terminated? [21:12] EdwinGrubbs: I was thinking that we would exit after all the JobSources had been forked, not after they all completed. [21:12] abentley: I guess it does. The problem I was having is that if the parent process doesn't wait for the children to exit, when you run it manually, the child processes continue to spew output to the terminal. One solution to this problem would be to not have the parent process use a lockfile, since the child processes already have their own lockfiles. [21:12] EdwinGrubbs: All the output should be redirected to logfiles anyhow. [21:15] EdwinGrubbs: Waiting doesn't prevent the children from spewing output to the terminal, it just means they won't do it while you're using the terminal for something else. Which isn't really a risk for cron scripts. [21:16] abentley: To prevent it from becoming more complicated to gather the output in the tests, I think I should add a command-line option so the tests can force it to wait, but I'll try running the tests without the waiting to see if that works at all. [21:19] I meant "spewing" to indicate that the output was coming at an annoying time. I actually wanted the children's output, but I just didn't want to be surprised by it. [21:20] bac: those stories do not ready like a story. should we be concerned that foo bar is being called an owner in a story? [21:20] * sinzui thinks stories need an owner/contributor browser and that is Sample Person [21:20] sinzui: yes, it required more set up [21:21] who owns applets? [21:21] sinzui: i welcome ideas on how to make it looks less mechanical [21:21] sinzui: either foobar or sample [21:21] EdwinGrubbs: Why do you default runner_class to JobRunner when an unknown runner class is specified? [21:21] The code team have been turning their mechanical tests into unittests that still use testbrowser [21:22] sinzui: foobar owns applet [21:22] * sinzui bangs head on a wall [21:23] The whole test is using a god to manage an upstream project [21:23] sinzui: i didn't intend for this to spiral. i made requested UI changes and broke the world. and then backfilled. [21:23] * bac bad [21:23] bac: right. I am thinking how do we stop hurting ourselves with this. [21:24] EdwinGrubbs: What about phrasing it like this? http://pastebin.ubuntu.com/502299/ [21:24] bac: did you check for test duplication? maybe we can delete instead of add to make it pass [21:24] abentley: oh, that was left over from the old solution. It handled defaulting to JobRunner if it didn't exist, but getattr() wouldn't default to JobRunner if it was set to null. Although, it's unlikely that someone will specify the field without filling it in with something valid, so I could probably go back to just using getattr() and let it blow up later if the config is invalid. [21:25] sinzui: no, i didn't look carefully for duplicates. being unfamiliar with the code tests i'm thinking that would take a while [21:25] * sinzui takes a quick look [21:25] abentley: that's a nice rewrite. I'll use that. [21:25] EdwinGrubbs: I think it's better if it blows up the value is invalid. [21:26] bac: code/browser/tests does not appear to intersect [21:27] oh, the list is nice [21:27] what list? [21:29] sinzui: ^ [21:29] bac: I like the listification of the hosting options [21:29] EdwinGrubbs: Do you need NoErrorOptionParser? Can't you just blow up in ProcessJobSource.__init__? [21:30] sinzui: yes, +1 to mrevell for the suggestion [21:30] bac: I have been thinking about privacy too long. I keep seeing context/displayname and thinking that will raise a 403 [21:32] abentley: the problem is if I want to pass "-v" into ProcessJobSource, the OptionParser in the __main__ section needs to ignore it. [21:32] bac: you cleaned up a generator, but 'v' is does not conform to lp standards [21:33] * sinzui argued for 1-char vars in comprehensions [21:33] sinzui: i'll join you in that argument [21:33] but for now i'll fix it [21:33] EdwinGrubbs: But if you do the argument parsing in ProcessJobSource.__init__, you'll have the real parser available to you. [21:34] sinzui: and then have to split the line, resulting in it being more unreadable [21:35] bac: branch-listing.pt may render faster if we used "sprite branch" instead to using an element 75 times [21:35] * sinzui was confused [21:35] sinzui: IRC hide-n-seek? [21:35] abentley: yes, but I can't get the real parser until after I parse the JOB_SOURCE name out of the command line arguments, since that is necessary for looking in the configs to find out which runner class to pass to ProcessJobSource.__init__(). [21:35] maverick has enabled tap on my magic mouse :( [21:36] EdwinGrubbs: You mean which job source class to pass to ProcessJobSource.__init__() ? [21:36] Bac: this paste looks good. I do not see what can be done about the tests. Given the age and value of the branch, I think it is ready to land. [21:37] abentley: sorry, I mean that ProcessJobSource.__init__() would be looking up the runner class, which it would be passing to JobCronScript.__init__() [21:37] sinzui: i've made sprite change and the generator change. thanks. [21:40] EdwinGrubbs: So I think the simplest thing is to override runner_class after you've done JobCronScript.__init__() [21:43] bac: you have my r for code. [21:43] sinzui: and UI? [21:44] That too, am I stepping on salgado though? [21:45] sinzui: i'll send this off to ec2 for testing and wait for salgado to reply. [21:45] bac: yes please [21:45] salgado is not working today, i think, if that's relevant [21:46] abentley: ok, it looks like I just have to override config_name and dbuser also, but init_zca doesn't get called in the __init__(), so I can get rid of the extra parser. [21:46] mwhudson: will he be around tomorrow? [21:47] bac: hopefully [21:48] EdwinGrubbs: have you considered providing a list of crontab_groups in [process-job-source-groups] and then providing configuration for each group? [21:49] EdwinGrubbs: I think then you wouldn't need all_job_sources or grouped_sources. [21:52] abentley: my main concern then is that a job class could become a member of multiple groups. Even if the cronscript would spit out an error when that happened, it would make the config file less convenient to use, and the config file will be edited a lot more than the cronscript's code. [21:53] EdwinGrubbs: fair enough. [21:55] EdwinGrubbs: could you please add documentation to your tests? Each test is supposed to have at least one line. === lifeless_ is now known as lifeless [22:00] EdwinGrubbs: is there a reason why test_setstatus_silent and test_setstatus_admin differ by more than the silent=True parameter? [22:00] abentley: ugh, another problem with not passing in the job_source to __init__() so that we can re-use its option parser is that the job_source is used to determine the config_name, and the config_name is passed to LaunchpadCronScript.__init__() as the name it uses for the cron control file, which determines whether the script runs at all. [22:02] EdwinGrubbs: so my meta-suggestion is "if the way things fit together is getting in our way, let's fix it instead of routing around it or doing double handling". [22:03] abentley: I'll add some comments to the tests. setStatus(silent) can only be done by a Launchpad admin, so I made extra changes for that restriction after I had already finished test_setstatus_admin(), which just refers to the team admin. [22:04] EdwinGrubbs: since you're doing admin = person_set.getByEmail('admin@canonical.com') you can use login_person instead of login, if you like. [22:05] also, if I can suggest [22:05] from lp.testing.sampledata import ADMIN_EMAIL [22:07] EdwinGrubbs: Have you tried using canonical.launchpad.scripts.tests.run_script? [22:09] abentley: no, I just copied the first test for a cronjob that I found. [22:10] EdwinGrubbs: Perhaps I should have gone back and fixed all the tests to use that when I wrote it, but I was not very aggressive back then. [22:11] abentley: regarding your meta-suggestion, I think it will all work better if I move all the setup logic from __init__() to run() in all the parent classes. The only downside is that it will create the lockfile briefly before it exits if the cron crontrol file tells it not to run. [22:12] abentley: I'll switch to run_script. [22:14] EdwinGrubbs: that sounds reasonable. [22:14] EdwinGrubbs: (moving the setup logic to run) sounds reasonable. [22:16] EdwinGrubbs: It's past EOD for me. Can we pick this up tomorrow? [22:17] abentley: sure, talk to you later [22:17] EdwinGrubbs: cool. === salgado is now known as salgado-afk === matsubara is now known as matsubara-afk === Ursinha is now known as Ursinha-afk