[00:00] yes, but we're getting back to the topic i raised on the dev list - i disagree with our current workflow because it encourages only superficial qa just get get stuff deployed rather than testing for defects / verification [00:01] wallyworld: uhm, thats the point though. [00:01] not imho :-) [00:01] wallyworld: accept *some* risk, in return for velocity. [00:01] wallyworld: higher velocity gives faster TTR [00:01] wallyworld: and smaller deltas per deploy [00:01] sure, but i think we go too far and rework is the enemy of velocity [00:01] wallyworld: and that gives a gaster TTD [00:01] wallyworld: we are doing far less rework than in the old system [00:02] Anyone want to review https://code.launchpad.net/~wgrant/launchpad/bug-728836/+merge/52355? [00:03] wgrant: I think it may conflict with my fix [00:03] the distroseries attribute in particular [00:03] now, if there were metrics to show the number of bugs that had to be reopened/reworked, that would be interesting [00:03] lifeless: Which fix? [00:03] wallyworld: I don't see how the ok to deploy process affects rework in this case [00:03] wallyworld: 723560 or whatever it is [00:04] wgrant: bug 727560 [00:04] <_mup_> Bug #727560: Archive:EntryResource:getPublishedSources < https://launchpad.net/bugs/727560 > [00:04] Ah, right. [00:04] wallyworld: the process of closing bugs when the first deploy against them is done is easily tweaked and doesn't affect the deploy discussion at all. [00:05] wallyworld: I appreciate that we need to improve the way these two processes interact, but its also -extremly- important we don't conflate the way we improve one with the way we improve the other. [00:05] I think the qatagger needs a patch to give a list of bugs that can be closed by the rev we can deploy to. [00:05] lifeless: if affects rework because it encourages only superficial qa and not a "proper" check that the issue supposed to be fixed really is fully fixed. and so increases the chance that the defect will have to be revisited to fix it "properly" [00:05] wallyworld: once a commit is in trunk, it *must* be deployable or rolledback in a matter of houres [00:05] Makes it easier to cut-n-paste into LPS [00:06] lifeless: It appears not to conflict. [00:06] StevenK: there is a bug open, and when Ursinha rolls out my tweak to the templates it wil lshow Bug:1234 rather than Bug 1234 in the report [00:06] <_mup_> Bug #1234: Gina is an unmaintainable mess of command line options, environment variables and shell scripts < https://launchpad.net/bugs/1234 > [00:06] wgrant: cool [00:07] Haha, I love that bug [00:07] Since it STILL is [00:08] lifeless: I meant a line at the top that has "If we deploy, the following bugs can be closed: 58585 58568 58922 66856 ..." [00:08] StevenK: That bug's fix is the cause of it being so terrible. [00:08] StevenK: yes there is a bug open for that [00:10] gina needs a good hard rewrite [00:11] wgrant: does get_archive do queries ? [00:11] lifeless: I made Archive.debug_archive a cachedproperty to prevent that. [00:12] where does bpr come from ? [00:13] 278 + candidates = (And( [00:13] 279 + BinaryPackagePublishingHistory.archiveID == [00:13] 280 + get_archive(archive, bpr).id, [00:13] oh, I see [00:13] 8 line generator. [00:13] wgrant: not the clearest [00:13] Bah. [00:14] Don't blame me for generators being backwards :P [00:14] forward ones are known as 'for loops' [00:16] Maybe. [00:16] It wasn't initially quite so big. [00:16] The archive used to be in the main query. [00:19] * StevenK notes SMM is now out of date, given 45 second PQM is real [00:20] And I think we could go one better and hook tarmac into Jenkins with a paramaterized build [00:20] Heh. [00:22] lifeless: Thanks. [00:23] benji: Not around? [00:33] wgrant: what do you need ? [00:33] lifeless: Unfreezing. [00:33] wgrant: we don't need benji, we need a losa [00:36] wgrant: IIRC the docs were updated on friday [00:36] wgrant: so it should be a simple point, ask a losa, and mail benji & the list [00:36] I haven't read the new ones. === almaisan-away is now known as al-maisan [00:36] wgrant: might be an idea ;) [00:37] Better to ignore the docs and see what works ;) === al-maisan is now known as almaisan-away [00:39] wgrant: other folk will look to the docs for reference [00:39] wgrant: so keeping them in sync is important [00:39] (or delete if not needed) [00:40] * thumper is close to pounding the table in frustration... [00:40] lifeless: Where are these docs? [00:40] thumper: If you need to pound a table, please choose BranchRevision. [00:40] haha [00:40] If you can break a few indices off it would be great. [00:41] wgrant: we have a solution, but no time to implement [00:41] It is like 130GB! [00:41] wgrant: jam and abentley have a workable solution that'll fix loggerhead speed too [00:41] wgrant: they just need the OK to spend some time doing it [00:41] Ah. [00:41] wgrant: using bzr-historydb [00:41] Will that work for LP too? [00:41] wgrant: it'll kill the table completely [00:42] wgrant: as far as we are aware [00:42] wth is getQuery for [00:42] I thought that was only planned for loggerhead. [00:42] That's great news. [00:42] wgrant: quite a bit of analysis went into it [00:42] lifeless: on what? [00:42] thumper: grep for '\' [00:43] heh [00:43] kill it [00:43] It's not needed by the Zope vocab stuff? [00:43] ah... maybe [00:43] check the Interface [00:44] I'm grepping. [00:44] Doesn't seem to be. [00:45] Yeah, I had grepped there already [00:45] * thumper stabs some tech-debt in the face [00:46] lifeless: https://wiki.canonical.com/InformationInfrastructure/OSA/LaunchpadRollout says that we can only unfreeze once the stable rev is determined. [00:46] By the RM. [00:46] This is why I don't like reading documentation. [00:47] Because I means I have to knowingly subvert processes instead of just being ignorant of them. [00:48] wgrant: === this stuff below is old and somewhat invalid with buildbot === [00:48] lifeless: Not there... near the bottom of the first section of "Preparatory Tasks" [00:49] "Once all QA is done (including any RC branches that were landed after the db-stable -> devel merge), the RM will let the LOSAs know the revno of stable that we will use as the release branch. Once this release branch is determined, a LOSA can put devel back into normal mode on pqm and prep the stable branch for rollout" [00:50] anyone know if the teamparticipation table is designed reflect valid team memberships taking account of expiry dates, membership status etc? ie can i just query that one teamparticipation table to see if a person validly belongs to a team? [00:50] wallyworld: Yes, use TeamParticipation. [00:51] wgrant: thanks [00:51] wallyworld: It is unreliable in one case: some code (eg. inTeam) considers the team owner to be an implicit member. [00:51] But we consider that a bug, and anything that uses TP directly (lots of stuff does) does not see that. [00:53] wgrant: ok. so add a teamparticipation clause to a query is considered ok i assume [00:53] adding [00:53] Yup. [00:53] cool [00:53] That's part of the point of it. [00:53] Nice and easy. [00:53] And quick. [00:53] sure is. so that means there must be code to maintain that table based on expring memberships etc [00:54] wgrant: fixed [00:59] thanks doko [01:00] What about doko? [01:00] mbf on dh_python [01:00] Aha. [01:00] so my inbox just exploded [01:10] * wgrant finds food and works out whether to drive +copy-packages down further or attack checkwatches. [01:11] wgrant: 59 / 0 LanguageSet:CollectionResource:#languages [01:11] wgrant: has noone attacking it right now [01:12] lifeless: Maybe, but I want to get +copy-packages down low enough that I can stick a test over it. [01:12] I basically just need to preload source files now. [01:12] Didn't we add a CopyPackagesJob or so? [01:13] There is the package clone job which is used for copy archives. [01:13] But anyone pushing normal package copying out into a job is insane and likes causing QISEs. [01:13] (see delayed copies, for example) [01:14] Yes, you said earlier delayed copies don't need to exist? [01:14] One reason for the existence (reuploading files to the public librarian) is wrong. [01:14] Another reason (slowness) will be wrong once this lands. [01:15] And the other (correctness when copying into the primary archive) is easily fixed by moving the overriding and emailing stuff into the normal copy logic. [01:16] StevenK: before we move things into backend jobs we should make them efficient. [01:16] lifeless: It is a dupe, but I cannot remember the summary of the original :/ [01:16] nor I [01:17] wgrant: Lets kill delayed copies, then? :-) [01:17] StevenK: When I have a moment I am going to investigate how much work that is. [01:18] Custom uploads were another reason for delayed copies, but they were never actually implemented. [01:18] And any future implementation should be done by making custom uploads not INSANE. [01:19] Right, I have my test written, now comes the lovely "test dies with a permission error, edit security.cfg, make schema", rinse and repeat [01:22] StevenK: i did that over the w/e. not much fun :-( [01:26] you don't need to run the whole make schema do you? [01:26] just python database/schema/security.py or something [01:27] I investigated last time I had this issue, and the only thing that helped was the full monty of make schema [01:27] enjoy then [01:27] you need to run it against the template test database [01:27] but yes, you don't need full schema build [01:29] It was only 3 perms, so the pain was minimal [01:34] Oh, sigh, every SPPH for Debian is PENDING. [01:34] *That'll* help. [01:44] StevenK: We're going to need to solve that eventually. [01:44] I have considered getting the dominator to run over it. [01:45] And after it takes 4 days? [01:45] But we also need to handle deletions somehow. [01:45] * thumper grabs a bite to eat, then gets the girls [01:46] wgrant: Just trying to write a better query to see how much of Debian's SPR.changelog are None [01:46] StevenK: You should always use IN (1, 2), whenever you are querying for publications. [01:46] Querying only for 2 is always wrong, unless you are the dominator. [01:49] Apparently, 12k. I think my query is wrong, anyway [01:53] StevenK: Maybe just SELECT COUNT(*) FROM sourcepackagerelease WHERE changelog IS NULL and upload_archive=3; [01:53] Won't only give you current stuff. [01:53] But meh. [01:54] wgrant: Can't we craft the query like the populator does and ignore stuff with expired SPRFs? [01:55] StevenK: You could. But nothing in Debian should be expired. [01:55] Because our GC is sort of awful awful awful awful. [02:00] I guess the timing of a test can't really be taken as anything? [02:01] What do you mean? [02:02] From devel: Total: 16 tests, 0 failures, 0 errors in 1 minutes 4.196 seconds. [02:02] what about it [02:02] My branch: Total: 17 tests, 0 failures, 0 errors in 1 minutes 5.195 seconds. [02:02] sounds like your branch adds a 1 second test [02:03] Clearly, my question is that number "reliable" [02:03] repeat it 5 times [02:03] take the lowest time for devel and the lowest time for your branch === wgrant changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | firefighting: - | On call reviewer: - | https://code.launchpad.net/launchpad-project/+activereviews | PQM: open RM: benji === lifeless changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | firefighting: - | On call reviewer: - | https://code.launchpad.net/launchpad-project/+activereviews [02:09] LEAN [02:09] Heh. [02:09] Hard / Soft Page ID [02:09] 130 / 223 BugTask:+index [02:09] 109 / 0 LanguageSet:CollectionResource:#languages [02:10] wgrant: ^ let me encourage you to stay flexible and responsive [02:10] wgrant: we will get back to copy packages [02:10] Indeed. [02:10] * wgrant finds a timeout. [02:11] Hmm. Or I could fix two checkwatches OOPSes and get us below 1000 exceptions by the end of the week. [02:11] Tempting, tempting. [02:11] But #languages it is. [02:12] WTF, why is it querying Karma? [02:12] * wgrant deletes #languages as being stupid. [02:14] Thereby fixing the timeout? [02:14] Yes. [02:15] ... maybe people use it? [02:15] It fixes OOPSes *and* decreases WTF/m. [02:15] wgrant: Sigh, SELECT count(spr.id) from sourcepackagerelease as spr JOIN sourcepackagereleasefile as sprf ON sprf.sourcepackagerelease = spr.id JOIN libraryfilealias AS lfa ON sprf.libraryfile = lfa.id WHERE lfa.content is NULL and spr.upload_archive = 3; => 0 [02:15] Who cares if peopel use it :P [02:18] wgrant: The users, I guess. [02:18] Hmm. [02:18] I think I will unexport Language.translators_count, and maybe turn it into a method. [02:19] Maybe people use that too? :-) [02:19] No widely distributed scripts use it, so I do not care much about the users. [02:19] They can adapt. [02:19] What are you, a kernel developer? [02:20] Probably. [02:20] wgrant: is it in 1.0 ? [02:20] wgrant: was it in 1.0 at release ? [02:21] lifeless: It was added in March 2010. So it was probably just after 1.0 was declared. [02:21] lifeless: Anyway, aren't you supposed to drop the lowest, the highest and take the average of the remaining? [02:22] StevenK: huh? [02:22] lifeless: Rather than run the tests 5 times, and just take the lowest number [02:23] So, I could preload, or I could temporarily break a couple of scripts that might not exist and make requests a second or so faster. [02:23] jtv: Heh, I was just looking at that. [02:24] StevenK: we assume that a noisy environment can't make your test faster [02:24] StevenK: and thus everything that makes it slower is noise [02:25] jtv: We could optimise the query, or we could reexport the attribute as a method, breaking all of the very few scripts that use it. [02:26] wow [02:26] wgrant: I would default to optimising in the first instance [02:26] wgrant: its easier (than the coordination to remove something in 1.0) [02:27] lifeless: We need to coordinate the removal of most of 1.0 soon. [02:27] Total: 16 tests, 0 failures, 0 errors in 56.713 seconds. [02:27] Total: 17 tests, 0 failures, 0 errors in 1 minutes 2.982 seconds. [02:27] wgrant: is that hyperbole or do you know something I don't ? [02:27] lifeless: We have committed to supporting 1.0 for another 4 years. That is completely stupid. [02:28] 6 seconds with the two best times, 2 seconds with the two worst times. [02:28] We need to rescind that commitment. [02:28] wgrant: I agree that is has a high cost; its why I'm encouraging devs to only put stuff in devel, and am sure that for 1.1 (or $label) we will only want to move some stuff into supported. [02:29] so [02:29] I have an idea [02:29] why don't we write a caching layer for milestones [02:30] and use it for the hidden edit forms but not for the visible bugtask rows. [02:32] Hi wgrant—whatever works, I guess. :) I'm not sure that "it's a method now" will console many people though… [02:32] wgrant: plus, there's already a bug for timeouts on… getAllLanguages IIRC. So if you want a method that times out rather than a property that times out, well, you've already got one. [02:32] Though I do think what you say has merit in itself! [02:32] jtv: Hmm? getAllLanguages is exactly the same problem. [02:33] It gets lots of Languages, and serialising the Language calculates the translators_count. [02:33] Yes, I figured, but ironically the bug page didn't load. [02:33] That definitely shouldn't be a property, no… [02:33] It is always going to be expensive. [02:33] It doesn't have to be so expensive. [02:33] so [02:34] But it's still going to be expensive. [02:34] The number of reasonable uses for that property by an API script is 0. [02:34] I was assuming that the API request specifically was deliberately getting contributor counts for all languages. [02:34] I really suggest a) optimise, b) if we want to change start the discussion to change it [02:35] Hmm. [02:35] Maybe I can reexport it on devel, and preload on 1.0. [02:36] I need a reviewer [02:36] https://code.launchpad.net/~lifeless/launchpad/bug-724033/+merge/52358 [02:37] wgrant: yes. Which means starting with the preload, and then (probably) file a bug to do something about it in a while in devel. [02:37] :P [02:37] Right. [02:38] hmm, POFile:+translate is still showing up [02:39] Yes, it's difficult and IIRC there was a rewrite that we never completed. [02:39] lifeless: looking at your branch… [02:41] jtv: wanna review my fix for 407260 when you are free? https://code.launchpad.net/~wallyworld/launchpad/branch-picker-team-branches/+merge/52356 [02:42] wallyworld: I'm just reviewing Robert's branch [02:42] jtv: no hurry at all. i just thought you may be interested :-) [02:42] I am, I am… just not free to look at it just yet. :) [02:43] wgrant: DistroSeries:EntryResource:getBuildRecords - improved by your branch ? [02:43] lifeless: no. [02:45] thumper: do you have any examples of making a ws api call on one of our domain objects within javascript? [02:45] * thumper looks [02:46] jtv: fixing the silly docstring [02:47] wallyworld: there is something in lp.code.tests.test_branch_webservice [02:47] thumper: thanks. [02:49] lifeless: speaking of docstrings, it might be nice to have one on CachedMilestoneFactory._load. I have a feeling there's more going on there than I understand. [02:49] thumper: that's all python. i was after javascript :-) [02:49] jtv: what do you think is going on ? [02:49] thumper: i know how to do it from python :-) [02:49] wallyworld: ah... [02:50] wallyworld: what do you want to do? [02:50] jtv: ah, its buggy. Fixed. [02:50] lifeless: the fact that it's based on self.contexts suggests that it's meant to be called only once, but if it were meant to, I get the impression it would've been a one-liner. [02:50] thumper: i want to invoke the recently exported pending_builds api on a recipe object from within javascript [02:51] jtv: pushing the just once guard now. [02:51] The what [02:51] ? [02:51] Ahhhh, _that_ is what the comment meant… [02:51] jtv: uhm its not a one liner because our vocabularies are based on /a context/ not on /contexts/ [02:51] …it meant you only want to call this once? [02:51] It was very, very unclear and helped confuse me. [02:51] jtv: its called many times [02:52] thumper: so i'm on the recipe index page and there'll be a recipe web_link i can use [02:52] jtv: I want the heavy lifting to take place just once, and all at once [02:52] jtv: we currently have some bugs where we construct *300* milestone vocabularies. [02:53] wallyworld: you want to do something like... : [02:53] lp = Y.lp.client.Launchpad(); [02:53] jtv: http://bazaar.launchpad.net/~lifeless/launchpad/bug-724033/revision/12538 [02:53] lp.get(some_path, config)l; [02:53] and that'll be the recipe [02:53] then call the method on that object [02:54] var client = new Y.lp.client.Launchpad(); [02:54] thumper: oh ok. looks reasonable. i'll give it a go thanks. [02:56] wallyworld: grep for "client.get" and you'll find some stuff [02:56] thumper: yeah, just grepping for ".get(" right now in fact :-) [02:56] looks like I get POFile:+translate again [03:01] thumper: i've got enough to go on now but there really don't seem to be very many places at all we use the ws api from our js. unless i only had a boy look :-) [03:01] wallyworld: correct, we don't [03:02] thumper: is that something considered bad or alternatively we just haven't gotten around to it yet? i would have thought it would be the "right thing to do" from a soa perspective [03:05] wallyworld: we don't make many api calls over javascript to code objects [03:07] thumper: in that case would you prefer that i got the pending builds for a recipe another way? the ws api seems correct though. otherwise i'll need to hack zcml and add zope stuff [03:07] wallyworld: what are you doing? [03:08] thumper: may be easier via mumble? [03:08] wallyworld: yep, [03:08] me hooks up [03:12] client.asserts.assertProperty( [03:12] jquery=u'("div#edit-lifecycle_status span.value")', [03:12] validator=u'className|branchstatusEXPERIMENTAL') [03:18] ahh I'm back. lifeless, the last I got from you was "I want the heavy lifting to take place just once, and all at once." It makes sense to me now that you've fixed it: the code I read initially re-created all the MilestoneVocabs on every invocation. [03:18] (Unless I'm going completely dyslexic, which I also wouldn't discount as a possibility :) [03:19] wallyworld: posted a comment on your branch… hard-hitting questions about your approach. :) [03:20] jtv: thanks. otp. will look soon [03:22] lifeless: to explain what I meant with _load being essentially a one-liner: I was thinking if the work is done just once, then ISTM it would amount to self.vocabularies = dict(target, MilestoneVocabularyTarget(target) for target in map(MilestoneVocabulary.getMilestoneTarget, set(self.contexts))) [03:23] Is that correct or am I still misunderstanding something? [03:28] jtv: you're missing that it instantiates the vocaularies [03:28] jtv: not the targes [03:28] targets [03:28] milestone_vocabulary = MilestoneVocabulary(target) [03:28] I thought MilestoneVocabularyTarget(target) instantiated a vocabulary? [03:29] * thumper afk for a while, back later tonight [03:29] jtv: a product and a product series of that product share a set of milestones [03:29] jtv: there is no MilestoneVocabularyTarget [03:29] Sorry, I mis-typed that. [03:29] Scratch the Target. [03:29] jtv: so its a two pass filter: one to map context->targets which is the actual things that we need milestones on [03:29] jtv: and a second to construct the vocabularies for each target [03:30] jtv: a later branch will make the second pass a single call to do optimised sql and generate all the vocabularies out of a minimal set of lookups [03:32] lifeless: but without the typo, and modulo icky external references to self.vocabularies, you're saying _load does not amount to "self.vocabularies = dict(target, MilestoneVocabulary(target) for target in map(MilestoneVocabulary.getMilestoneTarget, set(self.contexts)))"? [03:32] jtv: it won't once the next stage is done [03:32] The set() needs to be outside the map() perhaps? [03:32] jtv: because it won't loop at that point [03:32] Ah, that'll be moved inside some batched method? [03:32] yes [03:33] this is prep work to do an eager load optimisation on bugs that have 150 different products / distro combinations [03:33] it will reduce the query counts we have today substantially I hope, and make it easier to do the next stage [03:34] Then maybe you'd also like to move the self.cached_milestone_source.contexts.add() outside the loop that calls _getTableRowView? The loop iterates over a list anyway. [03:34] Whaa I need to be afk for a moment [03:34] jtv: I wanted to keep it adjacent to the code that hands out the milestone_source [03:34] jtv: that way they can't get out of sync [03:41] back [03:41] jtv: so its layering: someone calling _addTableRow or whatever its called *has* to make sure the context is added to the contexts set or the assertion will trip [03:41] jtv: the easiest way to ensure that is to have addTableRow do it [03:42] lifeless: sure, makes sense [03:42] _getTableRow [03:42] View [03:42] right [03:42] I'm in POFile:+translate now, so going from memory [03:42] (Also, I just noticed it's called in another place as well) [03:42] (Still in the same loop, but nevertheless) [03:43] lifeless: if you have a bug open for the future task of batching this, it'd be nice to make that TODO comment a proper XXX so that all you have to do later is grep for the bug number. Or someone else doing the same job, if it comes to that. [03:43] jtv: its the same bug [03:43] Oh so you're doing that right after this branch? [03:43] probably [03:44] depends on the impact, but I suspect we'll still have timeouts on this once this lands [03:44] BugTask:+index is our #1 timeout [03:49] lifeless: I'd prefer a note to check up on that (and file a bug if appropriate—whether it's timing out or "still a bit slow") over a TODO comment in the source TBH. [03:50] (Since you're going to Q/A this anyway, I'm assuming that your eyes will pass over the relevant data anyway) [03:51] jtv: I think that thats waste TBH: the data will tell us [03:51] I can delete teh comment if you like, but thats also waste - we're probably going to be back here in two days doing more. [03:52] the comment will tell someone else guided here by profiling an option I've considered; a bug would not be usefully triaged outside of the data that we have driving maintenance [03:54] I don't think the comment will be very helpful to someone else reading it. It's little more than a reference to something you have in your head that they'll have to reconstruct by reading the same data, or dig up who wrote it so they can ask. [03:54] If you can make it clearer, then great. [03:54] I take that back; it's clearer now. [03:57] Only other thing is test—it'd be good to know that calls for the same target will return the same vocab. [03:57] I'm really not inclined to - because: [03:58] - I've refactored, vs introducing a new layer: whatever tests there are for this either already ensure that, or were judged unnecessary in the past [03:58] - the key thing isn't whether the same instance is returned, its whether the query count is flat [03:58] - and we can't test the key thing yet because the page is so darn horrible. [04:00] lifeless: so there is a test to ensure that the query count is flat? [04:00] jtv: no, because its not [04:00] jtv: 675 OOPS-1891H475 NullBugTask:+index for instance [04:03] wgrant: want to mentor https://code.launchpad.net/~stevenk/launchpad/populate-spr-changelogs/+merge/52363? [04:03] sorry, be mentored on [04:03] lifeless: I probably shouldn't, since it's an adaptation of my code. But I could. [04:04] wgrant: I'll still give it a full review [04:04] k [04:04] jtv: can I ask a question about pofile:+translate [04:04] go ahead [04:04] in lib/lp/translations/browser/translationmessage.py [04:04] oh God [04:04] line 1287 says if self.form_is_writeable: [04:04] explaining we don't nee dsuggestions if the user cannot do translations [04:04] but [04:05] after the else clause of that if block [04:05] lifeless, wgrant: I'm still attempting to get LP to generate a diff [04:05] jtv: there is another if block starting with if self.sec_lang is None: [04:05] StevenK: Push again. If that doesn't work, push -2 then push again. [04:05] I think I know what's going on, but can't check because ENOLOSA. [04:05] jtv: and it *also* asks for suggestions, but is not guarded by the form_is_writable check [04:05] jtv: I am thinking that that is a bug, but is it ? [04:06] lifeless: arguably… the secondary language serves two very different use cases. [04:06] Unable to obtain lock held by stevenk@bazaar.launchpad.net [04:06] at crowberry [process #14934], acquired 52 minutes, 15 seconds ago. [04:06] <_mup_> Bug #14934: [warty] mozilla-browser: JS can access any mozilla memory < https://launchpad.net/bugs/14934 > [04:06] Whee! [04:06] jtv: e.g. alt_submissions should be [] if form_is_writable is False [04:06] One is "this language is so similar, I'd like suggestions from it so I can just click them into the translation I'm working on." [04:07] The other is "me speak english no good, me like read translations other language as well" [04:08] jtv: ok, so its not a bug [04:08] No [04:08] so, I'll make it more complex there to keep the behaviour [04:09] Sorry to hear it, but I think it's for the best. [04:09] jtv: its about 80% more efficient to query for the alt language with the primary language than to query seperately [04:09] * jtv whistles [04:09] 350ms query * two, or one 355ms query [04:10] There's something that could be done about that, but not now: [04:11] re-design with the two use-cases in mind as separate goals. [04:11] The second use case doesn't actually need the suggestions if there's an accepted translation. [04:12] lifeless: there's something we did in the pre-sharing model that we threw out ("for the time being") to keep things simple. [04:12] Just fetch all relevant TranslationMessages, and sort out their roles python-side. [04:13] jtv: yeah, thats what I'm bringing back in here [04:13] jtv: my patch last week took a solid chunk of time off [04:13] but not enough [04:13] so this is the next step [04:13] There's really no point IMO in having separate calls "get me the current translation," "get me the current translation for the other side, and by the way is it the same one," "get me the suggestions on this side," and even "get me the suggestions for other, similar messages." [04:13] jtv: the query plan for this is very expensive - it expects tonnes of IO [04:14] You're telling me… cost me years of my life [04:14] but just think about all the sql you know now. [04:14] Done. [04:14] Why? [04:15] a joke; suggesting that getting this fast had driven some sql knowledge [04:15] Not really—it drove a lot of optimization knowledge, but optimization goals have shifted a lot since the page formed. [04:16] jtv: it was humour, not a serious statement [04:17] Forgive me—I am not well [04:17] jtv: :( jetlag? [04:17] Hang on—friend in what sounds like serious trouble [04:18] Multiple stores make me sad. [04:36] Has anyone here tried to set up Launchpad on Natty and had a problem installing python2.6-minimal? [04:37] That should still work... what's the error? [04:38] wgrant: http://paste.ubuntu.com/576805/ [04:39] lifeless: ^^ you are probably keeping better track of modern Python transitions than I. [04:40] fun [04:40] bzr-lpreview-body!! [04:40] huwshimi: what does dpkg -S /usr/lib/python2.6/site-packages show [04:41] I suspect huwshimi's output to be the same [04:41] yeah the same [04:41] bzr-lpreview-body: /usr/lib/python2.6/site-packages [04:41] in which case, remove that package [04:41] then install python2.6-minimal [04:42] But fixing bzr-lpreview-body doesn't enter into it? [04:43] sure it does [04:43] two separate things though [04:43] unblock, then root cause [04:44] lifeless: That wants to remove python2.6 and some other python stuff, is this going to kill me? [04:44] huwshimi: Use dpkg -r bzr-lpreview-body [04:45] As root or with sudo [04:45] apt-get remove will try to resolve the dependency mess, dpkg -r won't. [04:45] StevenK: thanks :P [04:46] lifeless, wgrant: Diff for https://code.launchpad.net/~stevenk/launchpad/populate-spr-changelogs/+merge/52363 looks fine now [04:46] StevenK: OK, will look in a sec. [04:47] Thanks guys, all working now [04:51] jtv: so where are we at on this review? [04:52] jtv: if you're sick, I can get a different reviewer. [05:00] StevenK: Commented. [05:01] wgrant: Rargh! (my fault, but your problem now) [05:02] Heh. [05:02] I presume I had a good reason for doing it. [05:02] But I don't recall. [05:02] It was my first tunableloop, so I may have been wrong. [05:02] I'm not sure how to record to skip a given SPR, though [05:03] Neither am I. [05:03] Which is why i still hold the opinion that having this in garbo is crack. [05:03] * StevenK waves his hands furiously [05:03] You say garbo is crack, lifeless says this is the way [05:03] Rock, hard place! [05:04] Yes, but I am right :P [05:04] lifeless: ^ [05:10] lifeless: back... I think my friend must have run out of battery so I can complete the review. Not that much more I can say to him except as a way to let him distract himself from his problems. :( [05:10] So I can complete that review. [05:10] jtv: cool, he is ok ? [05:11] wgrant: whats the story [05:11] wgrant: and what does skipping an spr have to do with running it in the garbo [05:11] lifeless: SPRs may fail to extract or be otherwise unimportable. [05:11] lifeless: The job will start from the first SPR without expired files and without a changelog. [05:12] So say we have 1000 SPRs that fail to import. [05:12] The job will process those 1000 at the start of every run, then run out of time. [05:12] lifeless: No, he's not OK but he's out of immediate danger. Part of the work every time this happens is to listen to him explain how he's not OK, and then the other part is the uphill struggle to convince him that he's not OK and there must be things he can do about it. [05:13] wgrant: this seems orthogonal to the execution framework [05:13] lifeless: It was designed to be started once. [05:13] Garbo starts it hundreds or thousands of times. [05:13] wgrant: thats a high risk design [05:13] Oh? [05:14] its extremely likely that anything running for more than a few hours will be interrupted [05:14] Sure. [05:14] stash the failed sprs in memcache and move on [05:14] Well, not extremely likely. [05:14] Back when this was written we were deploying once a week at most. [05:16] The script was meant to work and be run just a couple of times, not to be the most robust, efficient creature in the universe. [05:16] there is a pretty big spectrum in the middle [05:17] I am curious as to why you say anything running for more than a few hours will be interrupted, though. [05:17] We have some regular scripts that run for much longer than that. [05:17] sources of interrupts; [05:17] - deploys [05:17] - long running transaction killing [05:17] - machine maintenance [05:18] Deploys: OK. [05:18] - db deploys [forced interrupt] [05:18] Long running transactions: there are none. [05:18] - 'kill X its making things slow' [05:18] Sure, and it can easily handle being killed once a day or so. [05:18] But once every 10 minutes? [05:18] its a 1 second query to find the work to do [05:19] why are we expecting failurs? [05:19] Because some don't have changelogs, some don't unpack any more, and I forget other reasons. [05:19] what will be the impact o fthat on derived distros [05:20] Most of them are old, and those that are not old will just not have a base version. [05:20] are you still doing it in increasing id order? [05:20] just stash the last done id in memcache; 3 line patch [05:20] Sounds reasonable. [05:21] lifeless: Uh, I don't know how to do that [05:21] There's a utility. [05:22] Which, sadly, is as useful as saying "There's this website, it's called Google." [05:22] Well, a memcache utility probably starts with IMemcache. [05:22] * wgrant greps. [05:22] IMemcacheClient. [05:23] client = getUtility(IMemcacheClient) [05:23] result = client.set(key, value) [05:24] if not result: raise RuntimeError('Memcached access denied or memcached servers down') [05:24] value = client.get(key) [05:34] wgrant: To answer one of your points, I'm using the master store since everything else in garbo is. [05:36] stub: That's excellent, thanks. [05:39] lifeless: with apologies for the delay (my friend found a phone charger) I just approved your branch. [05:40] wallyworld: I initially typed my comment for your MP into the wrong window, so that it now defaces an unrelated bug. Hopefully it's also on your MP now. [05:40] And now, food. === jtv is now known as jtv-eat [05:58] jtv-eat: thanks! [05:58] stub: https://code.launchpad.net/~lifeless/launchpad/bug-730391/+merge/52370 - I can have review? [06:10] k === jtv-eat is now known as jtv [06:17] StevenK: something I find myself in doubt about now… I've done the code to create a bunch of DSDs in Needs Attention state, but do I need to create DSDJs for those _as well_? [06:18] wgrant: could you do me a favour? [06:18] wgrant: with timeout and oops bugs, always put the oops report key - the page id - in the title. [06:18] wgrant: e.g. bug 728836 [06:18] <_mup_> Bug #728836: copyBinariesTo query count scales by number of binaries < https://launchpad.net/bugs/728836 > [06:19] looks like a dupe of bug 575450 [06:19] <_mup_> Bug #575450: Archive:+copy-packages nearly unusable due to timeouts < https://launchpad.net/bugs/575450 > [06:19] lifeless: But which one? that has three :( [06:19] lifeless: It is part of 575450 [06:19] wgrant: list em all [06:20] But 575450 is big. [06:20] So I wanted a separate one. [06:21] jtv: i was picking up the kid from school before but got your comments and am about to push up changes [06:21] cool [06:50] lifeless: r=stub with minor bits [07:26] Could someone review https://code.launchpad.net/~wgrant/launchpad/bug-728174/+merge/52374? [07:27] wgrant: so, on bugs - I think its fine to do new bugs [07:27] lifeless: I see that you tend to close the main one when the first fix is done. [07:27] wgrant: I'd just like it to be a little easier for ursula and diogo and others that don't have the entire callgraph internalised, to see that there are related things. [07:28] wgrant: What I do - yes. Uhm, I generally do that because the data is changed by the first fix. [07:29] wgrant: like, for bugtask:+index it will be 7 or 8 or more distinct fixes before we're flat [07:29] these are different to use case bugs where there is a specific use case with lots of rationale etc [07:30] True. [07:30] But I treat them differently if a user has filed and subscribed to the timeout. [07:30] Because the bug is not just for us. [07:30] It is for them too. [07:31] wgrant: I'm happy either way === Ursinha is now known as Ursinha-afk [07:31] like i say, what I want is better connections between what folk see in the oops reports and the open bugs [07:31] so that its easier to avoid duplicates and overlappying work [07:33] wgrant: why are you using ISlaveStore ? [07:33] lifeless: getAllLanguages already did. [07:34] so that leads to two Person objects in memory, for instaance. [07:34] Indeed. [07:35] don't destabilise things, but generally ISlaveStore should never be used. Ditto IMasterStore [07:36] We often use ISlaveStore... [07:36] we've had traumatic timeouts because of that. [07:36] Oh? [07:37] yeah [07:37] eager load from one store, get object from the other, dereference. [07:37] Ah. [07:38] we should, I think, change things to only ever have one store connected. [07:38] That sounds reasonable. [07:38] I shall change this to use the default store, as there is no clear benefit, you object, and it makes tests easier. [07:39] wgrant: there is a risk something else will barf at you from ec2. So its up to you whether you change this or not. [07:39] lifeless: If it does then I will kill it :) [07:40] :) [07:41] ok, two timeout fixes playing today, and a third landed in the morning. [07:41] not too bad. [07:42] stub: I'd like a brief voice chat about fast db deploys; got some time? === vila_ is now known as vila [07:47] I want Python 2.7 :( [07:48] Why? [07:48] Set literals, among other things. [07:49] You can't import it from __future__? [07:49] No, they are a new backport in 2.7. [07:53] wallyworld: approved with notes [08:14] jtv: could you comment on and triage bug 729520 - i'm out of my knowledge zone [08:15] <_mup_> Bug #729520: Translations changed in Ubuntu should be marked as such, not as current < https://launchpad.net/bugs/729520 > [08:20] wgrant: https://bugs.launchpad.net/launchpad/+bug/690356 [08:20] <_mup_> Bug #690356: The "xubuntu" packageset is missing in the lp.packagesets collection (LP API) < https://launchpad.net/bugs/690356 > === henninge changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | firefighting: - | On call reviewer: henninge | https://code.launchpad.net/launchpad-project/+activereviews [08:35] lifeless: Sorry, was at dinner, qa'd it, noticed you'd already tagged it, then saw your ping. [08:35] Sort of the wrong order. [08:35] ;) [08:35] lifeless: back [08:36] stub: hey, cool [08:36] stub: now good ? [08:36] lifeless: irc or skype if you want to put up with the power tool noise [08:37] I heard you say hello [08:37] lifeless: no sound from you - checking audio here [08:37] kk [08:46] jtv: thanks for the review and tip about assertContentEqual (which i didn't know about). i'll make the necessary tweaks [08:51] hi wgrant [08:52] and lifeless [08:53] lifeless: henninge needs to know about that bug. [08:54] Morning jam. [08:54] jam: We may be LOSAless after the deployment :/ [08:59] * henninge pumps up the volume to hear pings [09:00] jtv: Hi! which bug? [09:00] good morning [09:00] henninge: hi! bug 729520 [09:00] <_mup_> Bug #729520: Translations changed in Ubuntu should be marked as such, not as current < https://launchpad.net/bugs/729520 > [09:00] Moin abel [09:00] and good morning adeuring :) [09:01] wgrant: well that sucks. I was hoping to hear better news. I'm a bit surprised that they trust general rollouts without a LOSA available. [09:01] Is it just that they make sure to have one *during* the deploy? And assume they will catch things then? [09:01] lifeless: hello [09:01] jam: There will be one during the deploy. [09:02] jam: And hopefully spm will be well again by then :) [09:02] wgrant: I know you have to have one *during*. My point is why there isn't one *right after*, in case things go wrong. They just trust that the only problems will be the deployment itself? [09:02] jml: hello [09:02] jml: skype? [09:03] lifeless: sure. just call me. [09:03] jml: says you re offline [09:04] lifeless: lies [09:04] actually [09:04] no [09:04] lifeless: it's having trouble signing in [09:05] henninge: read the bug? [09:05] jtv: yes, the upstream project has a template ... [09:05] so that behavior sound correct [09:05] jml: should I call your phone or mobile then? [09:05] henninge: Ahhh… I hadn't realized there was upstream translation! [09:05] lifeless: ok. [09:06] jtv: but it's a testcase I created two years ago. Disabled it now. [09:06] Oh! [09:08] jtv: and I just realized I that that won't help because the code does not check if a template is deactivated ... [09:08] Oops. [09:08] jtv: you actually pointed me to that but I forgot to implement it. [09:08] * henninge goes to move template out of the way completely. [09:08] henninge: are you sure though? Maybe you used one of those methods that ignore deactivated templates. [09:09] jtv: no, it's a storm query. pretty obvious [09:09] oic [09:09] translations/utilities/translationsharinginfo.py [09:09] henninge: I'm on a feature rotation now, but robert needed someone to comment on & triage that bug. [09:10] jtv: I will leave a comment. [09:10] Great, thanks! I'm very relieved that this is not a big design problem. [09:11] jtv: what was that obsolete series called again, that we moved template like that to? [09:11] obsolete-junk? [09:12] "too many matches" ... [09:12] jtv: but that's it [09:13] The pyromaniac in me whispers "there's no such thing as too many matches when it comes to obsolete junk"… [09:13] ;) [09:18] jml: https://launchpad.net/ubuntu/+source/apport === soren_ is now known as soren [09:42] lifeless: lp:principia === SpamapS_ is now known as SpamapS [09:45] lifeless: sound debugging [09:45] can you hear me? [09:45] if so, kick twice [09:49] /kick /kick === gmb` is now known as gmb === almaisan-away is now known as al-maisan [10:54] jam: Will you be able to look at bug #726985 soonish, or should someone else? It'll be in the top 10 exceptions on Wed. [10:54] <_mup_> Bug #726985: codebrowse OOPSes with GeneratorExit when connection closed early < https://launchpad.net/bugs/726985 > [10:56] wgrant: if that's a request, sure [10:57] wgrant: you create it by doing a HEAD on a 404 page, right? [10:57] do we know how they are getting OOPS in production? [10:57] jam: It seems to always be large files in production. [10:57] Hmm. Always binary URLs, actually. [10:57] Which shouldn't be rendering... [10:58] Oh, it's /download, so that's OK. [10:59] wgrant: so basically, people who are ^Cing binary downloads in the middle of streaming are causing this OOPS [10:59] jam: I suspect so. === al-maisan is now known as almaisan-away [10:59] no big deal, just trying to understand [10:59] easy to reproduce a couple of ways, was hoping for something concrete [10:59] 90% of loggerhead doesn't stream [10:59] it directly calls start_response().write() [11:00] rather than 'yield' the content [11:00] Ah, that makes more sense now. [11:50] hi henninge_, the unity-2d guys are implementing i18n and using LP for translations. Unity 2D is written in Qt but using a conversion of the Qt format to gettext for translations, so they can be done in LP. A question has come up though, and it is whether qt-format-plurals are supported in LP. I think they should be, as they are supported in gettext itself, but I just want to confirm. They look like this: [11:50] http://paste.ubuntu.com/576943/ === henninge_ is now known as henninge [11:58] Project db-devel build #424: FAILURE in 5 hr 16 min: https://hudson.wedontsleep.org/job/db-devel/424/ [11:59] dpm: I take it that that is how it is exported to gettext. [11:59] henninge, yeah [11:59] dpm: because it looks just like gettext [12:00] exactly, the only "difference" is that normally you don't get the %n in translations coming from most gettext packages [12:01] I know we support this in #kde-format IIRC, but I want to double check we support it for qt-format-plural as well, so that I can give the Unity guys a proper answer [12:01] dpm: the %n has nothing to do with plurals. [12:02] that's c-format [12:03] dpm: so to be correct gettext, the flags schould contain the "c-format" flag. [12:04] Morning, all. [12:04] henninge, hm, no, I don't think that's c-format, hence the question. c-format strings contain specifiers like %d or %s, but not %n, I think [12:04] that's why they use a separate format specifier in gettext [12:04] dpm: argh, got me! [12:04] :-) [12:04] yes, you are right [12:05] dpm: But that does not matter very much for the plurals display in launchpad. [12:05] s/very much/at all/ [12:06] henninge, yes, that's right, so I guess I should rephrase the basic question as whether qt-format is supported (nevermind about qt-plural-format) [12:07] dpm: we use the standard gettext library to check the format of such strings. I think the only problem could be that bad translation strings would not be detected. [12:08] "bad" meaning a mismatch in the identifiers. [12:08] henninge, ok, gotcha, thanks [12:08] .. if the gettext library does not know qt-format. [12:09] it does, it does, it does: http://www.gnu.org/software/gettext/manual/gettext.html#qt_002dplural_002dformat [12:09] err, copy paste fail, too many "it does" there === Ursinha-afk is now known as Ursinha [13:04] * jml -> lunch === benji changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | firefighting: - | On call reviewer: henninge, benji | https://code.launchpad.net/launchpad-project/+activereviews [13:12] Hi henninge, benji: Can I get a review for https://code.launchpad.net/~gmb/launchpad/make-sub-link-nothing-aware-bug-721410/+merge/52409 please? [13:13] gmb: otp atm, lunch after that, stand-up after that. I can look at in 90 min. [13:13] gmb: I'll take it unless henninge is overcome with the need to do so. [13:13] looks like I'm the lucky winner [13:15] benji: Cool, thanks. === henninge is now known as henninge-lunch [13:40] gmb: review done [13:41] benji: Thanks [13:41] np [13:41] benji: Aha, clever irony in review comments; I like it. [13:42] :) === almaisan-away is now known as al-maisan === al-maisan is now known as almaisan-away === almaisan-away is now known as al-maisan === al-maisan is now known as almaisan-away [14:29] jcsackett: ping [14:29] hello sinzui. [14:30] Will you be watching #launchpad this morning? [14:35] sinzui: i will; did my setting of channel info not take? [14:35] i see that it did not. [14:35] jcsackett: maybe topics are knackered for me again [14:36] sinzui: no, it looks like i didn't properly save the change to info. [14:44] henninge-lunch, wanna chat for a couple minutes now? === henninge-lunch is now known as henninge [14:45] deryck: sure [14:55] deryck: https://launchpad.dev/netapplet/+configure-translations [14:57] leonardr: do you have time to review https://code.launchpad.net/~sinzui/lazr.restful/json-not-xhtml-0/+merge/52141 [14:57] sinzui, sure [14:59] heh, thanks benji :) [15:00] didn't get around to asking for the review, but you got to it anyway, fantastic [15:01] sinzui: and maybe you'll have some insights into https://code.launchpad.net/~leonardr/launchpad/bug-271029/+merge/52423? otherwise i'll give it to ocr [15:02] I'm like the genetically engineered kid's immune system in that episode of Star Trek: TNG, I don't wait for the microbes to come to me, I go out and get them. ;) [15:02] heh [15:06] sinzui, i don't understand the change you made to test_webservice.py. did you just disable the test? [15:06] i think you should change it so it tests the actual behavior [15:06] unless this is something we plan to bring back soon [15:11] apart from that, it looks right [15:11] leonardr: I did disable it. if you recall I suggested to change the name to start with disabled instead of test. I think I mis understood you I thought you said to remove test_ only [15:12] sinzui: no, i meant to change the behavior of the test. unless we're going to go back to the old behavior someday, the test should be changed or removed [15:12] I will change the behaviour [15:14] sinzui: did you want to have a call today? [15:14] jml: I have nothing to talk about today [15:14] sinzui: good good :) [15:14] :) [15:17] sinzui, do you want to take a look at my branch or shall i give it to henninge/benji? [15:17] leonardr: I can look at your branch now [15:18] great, i think you will have good opinions on the topic [15:18] argh, my push is still happening? what's the deal? [15:18] well, i'll tell you when it finishes. it seems almost done [15:22] leonardr: I updated the test based on the subsequent test in the module: https://code.launchpad.net/~sinzui/lazr.restful/json-not-xhtml-0/+merge/52141 [15:22] ok [15:22] i seem to be pushing the entire launchpad tree for some reason [15:23] sinzui: r=me [15:23] thank you [15:31] leonardr: ping [15:31] dobey, hi [15:32] leonardr: hey, am having some trouble with launchpadlib 1.9.7 [15:32] 2011-03-07 10:30:07 ERROR An error occurred trying to merge lp:ubuntuone-storage-protocol: 'NoneType' object has no attribute 'landing_candidates' [15:32] leonardr: ^^ tarmac keeps failing with that now. but it works fine with 1.6.2 [15:33] dobey: can you find the launchpadlib code in tarmac and paste it to me? [15:34] so the aprt that's failing is doing "for entry in lp_branch.landing_candidates" [15:37] dobey: how is lp_branch set? [15:37] leonardr: lp_branch = self.launchpad.branches.getByUrl(url=branch_url) [15:37] also, my generic advice: run 'import httplib2; httplib2.debuglevel=1' at the beginning of the code and paste me the http requests made [15:37] and where does branch_url come from? [15:38] if the versions are mismatched, that'll probably fail [15:38] the config. is "lp:foo" [15:38] ok, no version there [15:39] show me the http requests being made. then add a "version='devel'" argument to the launchpad constructor and see if it works. then try the same with version="beta" [15:39] sinzui: https://code.launchpad.net/~leonardr/launchpad/bug-271029/+merge/52423 is ready to review [15:45] sinzui: i took out the part i really wanted your opinion on, so i think i can give it to henninge or benji [15:45] let me know if you'd like that [15:46] leonardr: oh hrmm [15:46] leonardr: it seems that launchpadlib 1.9.7 is trying to connect to staging by default [15:46] Host: api.staging.launchpad.net [15:46] dobey: i believe that's true of older versions as well [15:47] but, one thing i mentioned in the upgrade email is that all clients need to start explicitly specifying their host [15:47] to avoid exactly this problem [15:47] we WERE doing that already === henninge changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | firefighting: - | On call reviewer: benji | https://code.launchpad.net/launchpad-project/+activereviews [15:48] leonardr: we're using LPNET_SERVICE_ROOT which is https://api.launchpad.net/ [15:49] hm, so you are passing in production and it's being ignored [15:49] henninge, benji: I'd approaciate a review of https://code.launchpad.net/~gary/launchpad/bug723999-2a/+merge/52427 when one of you has some time available. Fair warning: I'm afraid I may be prolific in my review requests today. I certainly intend to be, at least. [15:50] how is the Launchpad object being created? [15:50] dobey -^ [15:50] oh, well, nm on henninge :-P :-) [15:50] is it using login_with? get_token_and_login? [15:50] Launchpad(credentials, SERVICE_ROOT, self.config.CACHE_HOME) [15:50] gary_poster: I'll take it. [15:50] * henninge looks up prolific [15:50] gary_poster: sorry [15:51] np henninge! :-) [15:51] leonardr: it uses get_token_and_login() only if there are are no existing credentials [15:51] leonardr: looks like perhaps the API was broken for Launchpad() instantiation [15:51] thank you benji. to state the obvious, I know you are busy, so if you don't get to all the branches I throw your way today, of course I will understand. [15:51] sure [15:52] ugh [15:56] leonardr: lp thinks that you more than just removed the all the changes [15:56] dammit! [15:58] leonardr: so it's because new non-kwargs were added to the init, and tarmac was relying on position for 2 things that were kwargs. :-/ [15:58] leonardr: lifeless has asked me to ensure that the stuff I export is only available on the devel version. Is there a way to prevent webservice_entries from being exported in older versions? [15:58] leonardr: And for exported attributes, does this mean I need to declare that they are not exported in every other version? [16:18] benji, a large but hopefully easy branch (it just moves tests from one file to another): https://code.launchpad.net/~gary/launchpad/bug723999-2b/+merge/52429 [16:18] gary_poster: k [16:22] dobey: yes, i'm pretty sure i talked to the tarmac developer about this [16:23] tarmac should not be storing its own credentials anymore [16:23] rockstar: ^^ ? [16:24] leonardr: the credentials storing isn't the problem afaict. it's the API breakage. :-/ [16:24] dobey: the api breakage happens to apps that try to store their own credentials and instantiate Launchpad objects from them [16:25] if i had known about this, i wouldn't have changed the constructor arguments, but now that it's broken i'd rather fix the apps, since they need to change anyway [16:25] leonardr, dobey and I are "the tarmac developer." :) [16:26] leonardr, we stored our own credentials because launchpadlib was storing them in a place that kees said was a bad place... [16:26] rockstar: ah, tarmac isn't in ubuntu. that's why i didn't contact you [16:26] leonardr, yeah, I missed the boat in Natty. [16:27] rockstar: ok, the new system is kees-approved, so you can use it without worry [16:27] leonardr, ack. [16:27] dobey, I still have leonardr's email with the changes we need to make. [16:27] what does the new system do? [16:27] abentley: no, there's no way to prevent an entry from being exported. i need to add that [16:28] leonardr: I see. [16:28] for exported attributes, you need to set exported=False by default, and pass in a version setting, something like [('devel', dict(exported=True)] [16:29] i also need to add syntactic sugar to make that easier [16:29] basically, the original design was that almost everything would be available in earlier versions unless it caused a huge problem [16:29] and the new design is that nothing is available in earlier versions unless it was originally present there [16:29] leonardr: Hmm. From the docs, I thought that exported=False set the first version, not a default. [16:29] abentley: it's also a default, because later versions inherit from the first version [16:30] so exported=False in beta means exported=False in 1.0, and it would mean exported=False in devel except for the override [16:30] leonardr, aha! [16:30] dobey: the new system stores credentials in the gnome keyring/kde wallet [16:31] leonardr: what if there is no keyring? [16:31] dobey: then it's stored encrypted on disk [16:31] ok [16:32] dobey: there is something of an unchallenged assumption that IF you are in a gui environment you have some kind of keyring available [16:32] since decrypting the encrypted file requires that you type in a passphrase into the current terminal [16:32] leonardr: tarmac is not meant to be run generally in a gui environment. it is a service run by cron. [16:33] dobey: in that case, you want to use the 'service run by cron' mechanism [16:33] that's in the email as well [16:33] leonardr: so any user interaction is not acceptable for it [16:33] there will be none [16:33] ok, i don't have the email [16:33] you will pass in the location of an unencrypted credentials file, and launchpadlib will read/write it [16:33] so you can probably use the same file you use today [16:34] i'll forward oyu the email [16:34] and we will still need to support both methods in tarmac [16:34] i think [16:35] dobey: what do you mean by both methods? when there are existing credentials and when there aren't? [16:35] leonardr: i mean "the current way tarmac works" [16:35] leonardr: as we often run it on lucid also [16:36] dobey: if you switch to passing in the unencrypted credentials file it should work on both lucid and natty [16:44] sinzui: diff is pasted to https://code.launchpad.net/~leonardr/launchpad/bug-271029/+merge/52423 [16:45] dobey: if credentials_file doesn't work for you, let me know [16:45] gary_poster: both of your branches are reviewed [16:46] awesome, thanks benji. [16:46] more coming ;-) [16:46] leonardr: ok [16:48] Yippie, build fixed! [16:48] Project db-devel build #425: FIXED in 4 hr 50 min: https://hudson.wedontsleep.org/job/db-devel/425/ [16:48] thanks leonardr [16:58] leonardr: r=me, take a look at bug 579602 before you land. I think you fixed it [16:58] <_mup_> Bug #579602: Trying to getBranches of a source package using the API oopses with ForbiddenAttribute < https://launchpad.net/bugs/579602 > [17:11] sinzui: we're still doing ui reviews, right? [17:11] bigjools: voluntarily. [17:11] ok, thanks. [17:12] who's a valid reviewer for that nowadays? :) [17:17] bigjools: um, I think it is still me and henninge. I have been passing UI reviews to huwshimi [17:17] bigjools: you can always get two engineers to agree that the UI is good [17:18] ah I will get rvba to push his review to huwshimi [17:24] sinzui: i think i stopped the oops, but the bug isn't that there's an oops--i think that code should work [17:26] leonardr: okay [17:31] Project devel build #512: FAILURE in 5 hr 4 min: https://hudson.wedontsleep.org/job/devel/512/ [17:31] Project windmill build #21: FAILURE in 1 hr 4 min: https://hudson.wedontsleep.org/job/windmill/21/ [17:31] Project db-devel build #426: FAILURE in 43 min: https://hudson.wedontsleep.org/job/db-devel/426/ === deryck is now known as deryck[lunch] [18:01] benji, https://code.launchpad.net/~gary/launchpad/bug723999-2c/+merge/52448 is ready for you (except for the diff, which will presumably arrive anon), but I'm going to go get some lunch. [18:01] k [18:05] bigjools: are you (or can you point me to someone) to talk to in regards to https://answers.launchpad.net/launchpad/+question/148005 ? [18:09] rockstar: https://code.launchpad.net/~dobey/tarmac/login-with/+merge/52451 [18:28] i need some help from someone who knows launchpad bugs. preparing a pastebin... [18:29] http://pastebin.ubuntu.com/577101/ [18:29] i changed createTask so that it calls valid_upstreamtask to validate, and that's breaking some test setup [18:29] is the test setup technically invalid, or did i make a bad change? [18:29] sinzui, maybe you know, i think you helped me with this in the first place [18:36] * sinzui looks [18:40] sinzui: i changed the code so that the invalid bugtask was created first, and got the same error [18:40] it seems okay to create another bugtask for a product if the earlier one was marked invalid? [18:41] leonardr: I suspect you added a validate method, but our ORM needs an exception to set things up. So we need to exit a method early or return True for validate [18:41] This happened to me recently. What field was I changing? [18:42] ah description fields cannot contain only white-space [18:42] sinzui: i added a _call_ to a validate method within createTask [18:42] i'm not sure what you mean by "exit a method early..." [18:47] leonardr: when working on the StrippableText field that lots of things descend from, I broken the initialisation of a lot of objects because the ORM create empty objects, then sets the data. The field should only validate or normalise data when when values are set (not inited). I used a check for current state and the new value to be certain I should proceed. I know there are fields that set a marker in init to show nothi [18:47] ng is set. [18:48] sinzui: i'm way out of my depth here, but it seems that this validation _should_ be run upon creation [18:48] it seems like the test is doing something by manipulating the orm that should not be possible [18:48] if the rules are to be applied consistently [18:48] leonardr: if you mean creation means all the data is loaded, then yes [18:49] storm/sqlobject creates an empty object, then puts data in the fields, and they fire in sequence...before all the data is there to validate an invariant state [18:50] leonardr: can you pastbin your change? [18:50] pastebun [18:50] I give up [18:50] sinzui: sure [18:51] sinzui: Pastbin was a rejected name for The History Channel :-) [18:51] here's te whole thing: http://pastebin.ubuntu.com/577120/ [18:51] the relevant code is on line 166 [18:51] i think the problem is simpler than you're saying [18:52] i started calling a certain method from the create method [18:52] They rejects The Nazi Channel, but decided to run Nazi only programming anyway [18:52] this method says "you can't have two bugtasks for the same bug for the same product, no exceptions" [18:52] so the test that creates two bugtasks for the same bug for the same product fails, even though one of the bugtasks is invalid [18:52] The International History channel's real name is Alien Encounters Channel [18:54] leonardr: well, I would expect a failure in that case. The DB constraint does not look at status, it only looks at bug, distro, dseries, sourcepackagename, product, and pseries. Maybe that test is totally bugus [18:54] excellent, I worked totally bogus into a sentence. [18:55] sinzui: here's just the test that fails: http://pastebin.ubuntu.com/577123/ [18:55] The example i see is distro and then a distro + source package [18:55] you think that deserves to fail? === deryck[lunch] is now known as deryck [18:56] here's the original, not modified by me: [18:56] http://pastebin.ubuntu.com/577124/ [18:57] leonardr: these bug tasks are different [18:58] sinzui: am i calling valid_upstreamtask with the wrong argument? [18:58] target = product or productseries or distribution or distroseries [18:58] should i be going in the other direction? [18:58] target = distroseries or distribution or productseries or product [18:58] leonardr: but I can imagine that if validate is called after the distro is set, but before the spn is set, you will get the error [18:59] sinzui: i don't see what this has to do with validate at all [18:59] the exception is raised by a method that i call explicitly [18:59] i think we are talking past each other [18:59] I have not seen the lines where you changed to cause the error yet [19:00] where do you call valid_upstreamtask, and what is the context lines before and after it [19:00] if not milestone: [19:00] milestone = None [19:00] # Raise a WidgetError if this product bugtask already exists. [19:00] target = distroseries or distribution or productseries or product [19:00] valid_upstreamtask(bug, target) [19:00] if not bug.private and bug.security_related: [19:00] the BugTask object is not created until much further down in the method [19:01] here's the entire method with plus signs by the code i added [19:01] http://pastebin.ubuntu.com/577131/ [19:01] jml: I forgot two things; paralel test lep & high frequency db deploys that I wanted to speak with you about [19:02] what no, spn? that definitely will cause this error. The second example in the test is not getting the sourcepackagename=ubuntu_evolution.sourcepackagename that was passed [19:03] what does spn stand for? [19:03] source package name [19:04] A bug in a distro can affect dozens of packages, so will be represented by dozens of bug tasks [19:04] all ubuntu, may be all the same distro series, but each has a unique source package name [19:04] sinzui: the test has changed back and forth quite a bit since i started talking to you. let me paste the original version and ask you to walk me through it [19:05] http://pastebin.ubuntu.com/577132/ [19:05] so, you are saying that the call to createTask(sourcepackagename=ubuntu_evolution.sourcepackagename) [19:05] at some point the source package name is lost [19:06] leonardr: I still see sourcepackagename=ubuntu_evolution.sourcepackagename in all examples of the test, but the fragment of code does [19:06] target = distroseries or distribution or productseries or product [19:06] target = distroseries or distribution or productseries or product [19:06] so you're saying that sourcepackagename is also an acceptable target [19:07] clearly target is a composite maybe we need it to be tuples [19:07] sinzui: it's not clear to me at all. are you saying that the 'target' might be some combination of, eg. sourcepackagename and distroseries? [19:08] (ubuntu, ), (ubuntu, natty), (ubuntu, natty, evolution), (ubuntu, evolution) (evolution-project) are all valid combinations for bugtasks, but I see target is just one items by order of precedence [19:09] ^ leonardr that is what the database sees for the unique constraint [19:10] sinzui: valid_upstreamtask takes a 'product' and invokes searchTasks() on the product [19:10] i'll paste the code [19:11] http://pastebin.ubuntu.com/577133/ [19:11] it sounds like this code is too specific to be called from createTask [19:11] I suspect I know what is a mis before even looking [19:11] * sinzui looks [19:12] yes, we are checking one of many conditions [19:13] leonardr: I think the issue many years ago was that the four types were assign targets to have enough information to know everything, but that is not true for an SPN. It is just a name, we do not know what distro it is, and we do not know if the distro publishes it [19:14] leonardr: we can start making sens of this by fixing the signature: valid_upstreamtask(bug, product) => valid_upstreamtask(bug, bug_target) [19:15] ok, i understood that [19:16] yuck. we cannot search an SPN's tasks [19:17] sinzui: do you think it would be possible now to use the website to create multiple bugtasks for a single spn? [19:17] or would that finally be caught at the database level? [19:17] leonardr: I think empty() means return early. If this is a distro or distro series, we need to see if any of the bug tasks have the same sourcepackagename as the spn passed [19:19] leonardr: we will get a DB ConstraintViolationError after the call without a stack trace. We do need to verify the spn is unique [19:19] * sinzui looks for SPN bug target [19:22] leonardr: the signature is a real issue. I *think* we can get past the issue by getting a DSP or SP for the D or DS respectively. Include that in the target = sp or distroseries or distro line [19:24] So while I *do* think we need to fix the signature to say bug_target, the real fix is to get the correct target in the callsite [19:24] * sinzui hacks [19:28] leonardr: I think this is what createBugTask needs to do: http://pastebin.ubuntu.com/577145/ [19:29] sinzui: ok, i think i have something similar, i'll check [19:29] I wonder if we have an adapter [19:31] yeah, i have something equivalent [19:31] i'll paste what i have [19:33] sinzui: http://pastebin.ubuntu.com/577149/ [19:35] leonardr: +1 [19:35] that makes _that_ test work, let me see about the others [19:47] looking good... [19:55] ok, now down to 2 test failures... [20:01] benji, getStructuralSubscriptionsForPerson was not suppsed to be in this branch. Sorry for the confusion. It goes in the next (and hopefully last) branch [20:01] matsubara_: ping [20:01] I'm going to remove ans push [20:02] Ursinha: ping (the Bug:xyz patch didn't seem to be live on qatagger last night) [20:02] gary_poster: ok; just about done reviewing that branch [20:02] cool thanks benji [20:08] sinzui, i wrote this code, but i don't remember what it means anymore. can you sanity check it for me? [20:08] http://pastebin.ubuntu.com/577158/ [20:08] gary_poster: review done, including a solution to your lint mystery [20:08] it's not raising an exception where it should [20:08] sweet, thanks benji! [20:08] but i don't know if the 'conjoined_bugtask' actually is a conjoined bugtask, because i don't know what a conjoined bugtask is [20:10] leonardr: conjoined_bugtask is a temporary state where a task's series (distro or product) happens to be the development series [20:10] its a series specific task that also has a project scope task [20:10] so there are two related tasks and its shown as one in the UI [20:11] its a significant chunk of complexity :( [20:11] leonardr: This is very esoteric knowledge. For ubuntu, a task is conjoined only for 6 months [20:12] leonardr: since you use product.development_focus, I expect this test to work if there is also a bug for the product [20:12] it doesn't looks like there is [20:12] conjoined_master is None [20:12] abentley, thanks for sending that packaging permissions email. [20:12] leonardr: I think this subtle change will work: target=bugproduct.development_focus [20:13] target=bug.product.development_focus [20:13] deryck: np [20:13] I think the factory created a product for the bug, we want to reuse it [20:13] ahg [20:16] leonardr: I think you can make the the reviewer of your branch. I think I can now skip the cover letter and just read the code [20:18] ok, we just have some failures in patches-view.txt... [20:21] deryck: had you seen http://www.pivotaltracker.com/features [20:21] lifeless, no, I haven't seen that. looking now. === lifeless changed the topic of #launchpad-dev to: Performance Tuesday! | https://dev.launchpad.net/ | firefighting: - | On call reviewer: benji | https://code.launchpad.net/launchpad-project/+activereviews === mwhudson_ is now known as mwhudson [20:29] lifeless, ah, interesting. it's not what I thought on first glance. It's basically a scrum board, right? [20:29] looks like [20:29] bug cast as a bugtracker replacement (which they effectively are) [20:30] I -love- the infinite resolution on ordering [20:30] * lifeless wants this for bug priority. [20:30] drag n drop, done. [20:30] yeah, that's nice. [20:30] abentley was suggesting something like this for lp way back [20:30] but their model is a set of cards. not bugs. [20:30] deryck: right, it is a different take on the whole problem [20:31] my last job briefly used pivotal. it was a nice tool. [20:31] lifeless, right. [20:31] yeah, it looks like a nice tool. [20:31] sinzui: ok, help me out one more time [20:31] jcsackett, did you use it as a bug tracker? [20:31] patches-view contains this code: [20:31] >>> make_bugtask( [20:31] ... bug=bug_a, target='hoary', target_is_distroseries_name=True) [20:31] deryck: eh, sort of. more of an issue tracker, i suppose? [20:31] that looks up the 'hoary' distro series and calls factory.makeBugTask [20:32] if you're doing things in the agile card mode, it's less about bugs and more about "user stories." [20:32] jcsackett, yeah, it looks like project tracking, more than bug tracking to me. [20:32] but factory.makeBugTask doesn't like being passed a distro series [20:32] if IDistroSeries.providedBy(target): [20:32] # We can't have a series task without a distribution task. [20:32] self.makeBugTask(bug, target.distribution) [20:32] deryck: yes. [20:32] so instead of creating a bugtask for 'hoary', we create one for 'ubuntu', and we trigger the validation error [20:32] like what we use Kanban for. [20:32] thats the conjoined master bit [20:32] deryck: similarly; though we're sort of using bugs as project tracking as well. [20:33] jcsackett, oh we definitely are. [20:33] lifeless: i think it's supposed to add the conjoined master and then call addTask *again* to add the slave [20:33] the problem is that adding a conjoined master when there's already a bugtask for 'ubuntu' now raises an exception [20:34] what did it do before (and what bug are you working on , to give me context) [20:34] lifeless: the context is my fix to bug 106338: https://code.launchpad.net/~leonardr/launchpad/bug-106338 [20:34] <_mup_> Bug #106338: Editing a bug targeted to a release crashes if you directly edit the untargeted task < https://launchpad.net/bugs/106338 > [20:35] i added to createTask a call to valid_upstreamtask(), so that validation code previously called only in the view would be called everywhere [20:35] leonardr: I think the issue here is the factory is wrong. It could be smart enough to do the right thing. It onyl has the features that engineers needs at the time [20:35] sinzui: ok, that's what i was thinking too [20:36] so we should see if the master already exists? [20:36] Lots of factory methods were creating objects with impossible series. I fixed them [20:36] leonardr: yes, the factory should check and make a decision. [20:36] I concur [20:37] ok, help me out. can i adapt the code from valid_upstreamtask to see if there's already a bug targeted to a given target, or is there a simpler way? [20:39] i'll write some cheap code and you can tell me how to fix it [20:40] leonardr: 'try: ... except:' [20:41] (though you'll want an actual type in the except clause) [20:42] I do not this the try except will work because the exception will be a DB IntegrityError contstaint violation. We need to look before we leap with the ORM [20:42] my cheap code goes through the existing tasks [20:43] sinzui: oh :) [20:43] sinzui: ok [20:44] leonardr: there is a getBugTask(target) method on bug. [20:44] let's try it... [20:45] leonardr: can i bug you for a sec regarding 404s on lplib? [20:45] jcsackett, sure [20:47] benji: do you have time to review a small change to address a project review nuance: https://code.launchpad.net/~sinzui/launchpad/hide-license-info/+merge/52467 [20:47] sinzui: sure [20:48] leonardr: so i am looking at bug 701246 [20:48] <_mup_> Bug #701246: missing bug dereference generates OOPS < https://launchpad.net/bugs/701246 > [20:48] it looks as though the problem is just that a NotFound that gets raised in lp doesn't go back to lplib. [20:49] i have tried https://pastebin.canonical.com/44375/ as a fix. [20:49] while that works, leonardr, i'm unconvinced its the best (or correct) solution. [20:50] leonardr: that change is in _handle_next_obj, to save you a trip into the code tree. [20:51] jcsackett: ok, give me am inute to finish what i'm doing [20:51] leonardr: sure. [20:58] jcsackett: +1 AIUI [20:59] lifeless: cool. my major concern is i thought we should a) avoid expose() and b) i'm frightened of the publisher. :-P [20:59] sinzui, lifeless: going to paste my code and look at jcsackett's code. for some reason, valid_upstreamtask is raising an exception for 'hoary' even though bug.getBugTask(hoary) is returning None [20:59] sinzui: review done (https://code.launchpad.net/~sinzui/launchpad/hide-license-info/+merge/52467) [21:01] thanks benji [21:01] np [21:02] lifeless, sinzui: http://pastebin.ubuntu.com/577173/ looks good to me, don't know why it sometimes fails as i mentioned above [21:03] jcsackett: at the very least, you need to do expose(NotFound(self.context, name), 404) [21:03] otherwise you will start giving out 400 errors [21:04] leonardr: ok. [21:04] i think it would make more sense to publish NotFound as 404 _in general_ [21:04] i sort of assumed it was, to be honest. :-P [21:04] leonardr: I think the code is creating confusion between master and slave. the distro is the slave, the series is the master. [21:05] jcsackett: maybe it's the fact that the exception is raised during traversal [21:05] you say that the code you have works? what behavior do you see? [21:06] We really need to rethink the value for conjoined relationships. They are ephemeral, limited to projects that develop with leading series, and the code is very expensive to work with [21:06] leonardr: with make run_all going, if i connect to my dev instance via lplib, and run through the code shown in the bug, i get a 404 http error, and no oops is generated. [21:06] jcsackett: we do have special views registered for NotFound that should cause them to yield 404 errors, but i bet that code doesn't apply to exceptions raised during traversal [21:06] that's weird [21:07] if you put a weird error code like expose(..., 409), does that get passed through? [21:07] leonardr: the if ISourcePackage.providedBy block talks about series but we can have bugs in SPs without a series [21:08] maybe the whole paste represents an attempt to solve the case where the target implements ISeries [21:09] leonardr: let me check. [21:09] sinzui: i was trying to solve the case where it tries to create a prerequisite target *of some kind* [21:09] there were three such cases [21:10] are you saying these cases are different, that in some cases the target is the master and in some cases the target is the slave? [21:10] i can change the variable names so i'm not talking about 'master_target'. i don't think i changed the actual meaning of the code [21:12] sinzui: see http://pastebin.ubuntu.com/577178/. the code is the same, except i check for a bug before creating one [21:18] leonardr: okay. I agree with what you are doing. Lp does require a PrimaryContext level bug before creating a series bug. [21:19] sinzui: i am in a situation where bug.getBugTask(bug_target) returns None, but valid_upstreamtask raises an exception [21:19] because bug_target.searchTasks(BugTaskSearchParams(user, bug=bug)) finds something [21:20] so i think bug.getBugTask(bug_target) does not tell the whole story [21:20] leonardr: by "sometimes fails" do you mean not reliably repeatable? maybe we need something like IStore(prerequisite).flush() [21:21] leonardr: getBugTask is trivial [21:21] leonardr: but note that it uses cached data. [21:22] leonardr: you may need to try: del get_propery_cache(bug).bugtasks; except AttributeError: pass [21:23] sinzui: i mean it fails when i don't think it should [21:24] Yippie, build fixed! [21:24] Project windmill build #22: FIXED in 1 hr 12 min: https://hudson.wedontsleep.org/job/windmill/22/ [21:24] leonardr: at the point where bug tasks are added [21:25] lifeless:trying that now [21:25] leonardr: bottom of Bug.addTask would be the place to add it [21:26] leonardr: a more complex version would be to add the new one to the tasks IFF the tasks attribute is already populated [21:27] leonardr: actually, expose is telling me it only accepts on argument, which prevents doing expose(...,409). something trivial i've missed? [21:27] s/on argument/one argument/ [21:27] jcsackett: ah, it's because i haven't landed my branch that fixes this, because of these test failures [21:27] i got ahead of myself [21:28] but, if expose() is working at all, you should be getting 400 errors, not 404 [21:28] leonardr: normal browsers will still see a 404, right ? [21:29] lifeless: browsers on the website will see a 404. if you hit the web service with a browser it will go through the lazr.restful publisher and you'll see what a non-browser client would see [21:30] leonardr: ok, and we map 404 to 400 for some reason here? [21:30] lifeless: no, i'm saying that jcsackett's change shouldn't be doing what he's seeing [21:30] ah cool [21:30] if expose() was working at all, it would be giving him a 400 error, not a 404 [21:31] leonardr: would it be reasonable for NotFound to map to 404 in the webservice by default? [21:31] still getting the failures in patches-view. again, the problem is that attempting to create a bugtask for Hoary gives an error "there's already a bugtask for Ubuntu" [21:31] lifeless: yes, and that is what happens normally. i think the problem we're seeing is that the exception is happening in traversal, and lazr.restful doesn't catch those [21:32] ah [21:32] yes, that makes sense [21:34] lifeless: the end of createTask already contains 'del get_property_cache(bug).bugtasks' [21:35] leonardr: ok, well thats not it then :) [21:35] leonardr: so, basically, what i'm seeing isn't possible? [21:35] leonardr: mumble? [21:36] jcsackett: i don't understand how you're seeing it. i wouldn't say it's impossible, especialyl if you can turn it on and off easily [21:37] leonardr: so, either way a 404 is returned; it's just that with expose, no OOPS is created. [21:38] jcsackett: oh, i see how that could happen [21:40] benji, one last one, then the marathon is done. Maybe you can fit it in, maybe not. :-) https://code.launchpad.net/~gary/launchpad/bug723999-2d/+merge/52478 [21:40] gary_poster: good timing, I was just about to resort to real work. ;p [21:40] :-) [21:40] leonardr: and basically killing the oops is the thing. given that context, this seem better? [21:41] jcsackett: my gut feeling is that your bug will simply go away once my branch lands [21:41] leonardr: really? [21:41] yeah [21:41] that will be twice that you make my work irrelevant, but i'm totally happy with that. :-) [21:42] i'm going to move on to something else and revisit this post your branch landing. [21:42] ok, it'll probably be tomorrow [21:42] leonardr: cool. can you link me the branch (mostly for my curiosity)? [21:43] jcsackett: https://code.launchpad.net/~leonardr/launchpad/bug-106338 [21:43] thanks [21:45] From sabdfl's latest blog post: "Nothing hugs quite like dholbach, though, and he's no hairy ape." I'm sorry, but I just had to repeat that. [21:45] :-) [21:46] We now return you to your regularly scheduled, uh, programming :-). [21:46] kfogel: hey, how goes it [21:46] thanks for saying hi kfogel [21:46] hey lifeless -- okay. Busy, but good. You? [21:46] gary_poster: miss y'all! [21:46] you too :-) [21:47] kfogel: insanely busy, very well - lp is going great guns, and lynne is 14 weeks now ;) [21:48] lifeless: congrats!!! [21:48] lifeless: and re that other thing, launchpad, I've been watching the blog and been seeing the progress with pleasure. [21:49] kfogel: thanks [21:52] wow [21:52] I think we're spending 12 seconds /rendering/ 150 bugtask rows. [21:52] https://bugs.qastaging.launchpad.net/++profile++show/ubuntu/+source/afflib/+bug/230350 [21:52] <_mup_> Bug #230350: Missing Debian Maintainer field sinzui: ok, i'm in pdb right at the point where the error is about to happen [21:53] i'm about to call self.makeBugTask(bug, a) [21:53] a is the Distribution 'ubuntu', and the target from which i derived a is the DistroSeries 'hoary' [21:53] gary_poster: chameleon templates; can they mix n patch with the tal engine ones? [21:53] bug.getBugTask(a) is None [21:54] but, if i call makeBugTask, i'll get an error that there's already a task for 'ubuntu' [21:54] lifeless, once we switch to chameleon, everything uses the chameleon engine, including current TAL stuff. [21:54] gary_poster: sure; I'm looking at bug 724033 [21:54] <_mup_> Bug #724033: BugTask:+index timeouts - distributions and milestones being late evaluation loaded - repeatedly - on bug 230350 < https://launchpad.net/bugs/724033 > [21:54] and it is supposed to help with rendering nasties like the one you are mentioning [21:55] gary_poster: I've gotten the sql component down to 2 seconds [21:55] 12334: suck [21:56] gary_poster: I'm wondering if I could migrate just the bug task row & edit forms - which are the bits repeated - to chameleon, assuming further investigation doesn't show it to be something simple like the view initialization being slow [21:56] OIC [21:56] lifeless: hey - whatever happened to those merge queue things rockstar was working on? [21:56] mtaylor: deferred [21:56] lifeless: k. so it's not just that I missed them somewhere [21:57] mtaylor: not at all; we had too much work in progress. May do them when we overhaul our landing process [21:57] lifeless, you could. The only way I can think of doing it right now is having the view render the chamelon bits as a string, inserted into the TAL as structure [21:57] does that make sense? [21:57] yes [21:57] cool [21:57] thats how the rows are done already, more or less [21:57] oh, ok, cool [21:58]
[21:58] that would be a great test to see of chameleon actually buys us what we expect then, particularly if it is apples to apples [21:58] sinzui: i'm starting to think there's a problem with vaild_upstreamtask [21:58] yeah [21:58] check this out [21:58] (Pdb) [bug.title for bug in bug_target.searchTasks(params)] [21:58] [u'Bug #16 in evolution (Ubuntu): "bug_a title"'] [21:58] <_mup_> Bug #16: "Swedish" and "Swedish (Sweden)" should be the same language < https://launchpad.net/bugs/16 > [21:58] and then inside it [21:59] [21:59] ew [21:59] that may be a problem inherently [21:59] so it ends up calling __call__() on the view objects its manually created. [21:59] though chameleon may make that better too, dunno [21:59] gary_poster: whats the problem you perceive there? [22:00] well, it's a hunch, but I'd be interested to see if doing structure calls and inserting the output of another view within a tight loop is just bad. [22:00] your hunch is that inserting structure is slow ? [22:00] lifeless: well, fwiw, I just wrote a hacky launchpadlib script to make a page showing me which of our brances are in which of our fake-queue-branches ... hopefully it's not causing too much activity :) [22:01] I would expect this, from worst to best: [22:01] mtaylor: heh [22:01] mtaylor: patch LP! [22:01] insert structure of another view, which itself uses a template [22:01] use a macro [22:01] lifeless: I do not believe you would accept a patch that hardcodes lp:drizzle/build in to it [22:01] have code done locally [22:01] mtaylor: seriously, 50% of our page hits are API now. (and not 'API to make a web page be nice'. Pure launchpadlib style API) [22:02] lifeless: code.launchpad.net/+daily-builds - 67 queries/external actions issued in 2.36 seconds \o/ [22:03] so, lifeless, "structure" itself is fine. My hunch o' nastiness is that the inner loop, calling a view for each loop, is bad. [22:03] gary_poster: I'm going to generate some hundreds of rows locally and do some elimination tests to narrow this down. Thanks for the tips - helps me understand this area. [22:03] np [22:03] lifeless: oh, well in this case, I doubt the launchpadlib hits are gonna kill you (I grab a list of approved brancehs) ... but the "do a checkout of each branch and run run bzr missing a few times to see if it's contained within another branch" might be annoying [22:03] I'll look forward to reading the results lifeless! [22:03] sinzui: we don't have a bugtask for ubuntu, so bug.getTask(ubuntu) returns nothing. but we do have a bugtask for evolution in ubuntu, so the searchTasks thing fails [22:03] gary_poster: now I have to write em up :) [22:03] lifeless: lol :-P [22:04] leonardr: what searchTasks thing are you referring to ? [22:04] lifeless: the one run in valid_upstreamtask [22:04] user = getUtility(ILaunchBag).user [22:04] params = BugTaskSearchParams(user, bug=bug) [22:04] if not bug_target.searchTasks(params).is_empty(): [22:05] thats buggy [22:05] leonardr: Ubuntu and evolution in ubuntu are not the same, one being a distro and the other being a package. I do not think any query should confuse the two [22:05] it will find tasks on related series. [22:05] ok, now we're getting somewhere [22:05] I think the validator is broken [22:05] -or- [22:05] its not the right thing to use to fix the oops [22:06] if you have a product with a series A and a series B [22:06] this validator will raise an error if the product, or series A, or series B have a bugtask. [22:06] but you are working on distros [22:07] and distros have another layer in there - the source package [22:07] you can have a distro task or a distroseries task, or a distro sourcepackage task, or a distroseries sourcepackage task [22:07] leonardr: what is calling valid_upstreamtask ? [22:08] lifeless: my code causes it to be called from createTask() [22:08] formerly it was only called from view code. looking up the view code now [22:09] leonardr: you need to call validate_distrotask when dealing with distro contexts [22:09] or validate_new_distrotask etc [22:09] I don't know offhand which you'll need for createTask [22:09] wtf: can we have one method that differs to the hidden methods? [22:10] I need to pop out to the shops [22:10] There must be duplicate code in three validation methods [22:10] sinzui: tonnes from the look of it [22:11] I'm sure you guys will get to the bottom of it soon. BBIAB [22:11] wallyworld: nice === benji changed the topic of #launchpad-dev to: Performance Tuesday! | https://dev.launchpad.net/ | firefighting: - | On call reviewer: - | https://code.launchpad.net/launchpad-project/+activereviews [22:11] Morning all. [22:12] am I dumb - there doesn't seem to be an api member on a merge_proposal to get the web url to see that prop [22:12] ? [22:12] morning, wgrant. [22:13] oh grah [22:13] IOError: [Errno 2] No such file or directory: '/home/pqm/pqm-workdir/home/trunk/launchpad/production-configs/lpnetSLAVE-lazr.conf' [22:13] mtaylor: there should be one [22:13] lp-production-config landings are bust [22:13] testConfig (canonical.config.tests.test_config.../production-configs/lpnet-template/launchpad-lazr.conf) [22:13] * lifeless goes really [22:13] lifeless: the business queries - the ones to get the data - there's only 4 or so of those. there's an awful many of these: SELECT ValidPersonCache.id FROM ValidPersonCache WHERE ValidPersonCache.id = xxx [22:13] mtaylor: it should be web_link. what version of the web service are you using? [22:13] lifeless: How did it land in the first place? :/ [22:14] leonardr: LPNET_SERVICE_ROOT? [22:14] leonardr: (not sure how to answer your question ...) [22:14] mtaylor: Your cached WADL is probably out of date. [22:14] hrm. how do I update my locally cached WADL? [22:14] wgrant: that's possible, but it should have been updated by now. it's only cached for a week [22:14] I just blow away the whole launchpadlib cache, but there is probably a better way. [22:15] mtaylor: show me how you call Launchpad.login_with() [22:15] Hmm. We were seeing it happening three or four days ago. [22:15] launchpad = Launchpad.login_with('Branch Merge Status', LPNET_SERVICE_ROOT, cachedir) [22:15] mtaylor: add version="devel" and see if that works [22:16] * wallyworld has to go and drop tax stuff off at the accountant [22:18] leonardr: that just sort of has it hanging there now [22:19] mtaylor: that's odd. put this code before the login_with call and send me the output [22:19] import httplib2 [22:19] httplib2.debuglevel = 1 [22:20] leonardr: well, of course, it didn't hang that time [22:21] leonardr: oh - actually, I suck - one more try [22:21] sinzui: argh, changing the validation code is creating _more_ test failures and taking me further into realms of which i know nothing [22:21] to start with, can you sanity-check this? [22:21] http://pastebin.ubuntu.com/577211/ [22:21] leonardr: it's sitting there doing this: [22:21] http://paste.drizzle.org/show/427/ [22:22] and now it works [22:23] it hung for a long time and then worked, or you tried again and it worked? [22:25] leonardr: That block looks good to me [22:26] leonardr: tried again - it hung for a while and then worked [22:26] mtaylor: and is web_link accessible? [22:26] sinzui: that's giving me a new test failure (which might be legit): [22:27] LaunchpadValidationError: u'Package a52dec not published in Ubuntu' [22:27] except later on there's a reference to ubuntu/+source/a52dec [22:28] leonardr: yup. all is now happy and sunny [22:28] leonardr: thanks! [22:29] ok, great. basically, that's a new feature that's not in version 1.0 of the web service [22:30] leonardr: It's in the 1.0 WADL. [22:30] hmmm [22:30] mtaylor: did you end up wiping your launchpadlib directory? [22:30] leonardr: I did not - just doing the version='devel' made it happier [22:31] well, devel would have a _different_ wadl file, that you hadn't retrieved before, so that could have the same effect [22:32] lifeless: ping.. trying to wrap my head around adding a new distro to launchpad that is not for built packages... [22:32] huwshimi: will you be mumbling today? [22:32] sinzui: Yes, just getting my other laptop, it doesn't seem to want to connect in Natty [22:33] sinzui: two minutes [22:34] leonardr: I got confused for a moment. That error really could be legitimate. When I started fixing packaging link data 18 months ago, I discovered that 80% of you tests were working with invalid data...no surprising that the real data created by the feature was rubbish [22:34] * sinzui looks for test helper to create a published spr [22:37] sinzui: i'm pushing my changes [22:38] lp:~leonardr/launchpad/bug-106338 [22:38] leonardr: I am in a meeting. I am also looking for a trick that makes a valid package [22:38] ok [22:38] sinzui, i may come back to this tomorrow, because i don't understand this stuff even when my brain is fresh [22:39] leonardr: I think that is sensible. This is really messed up and timeoff will help us forget what does not work [22:39] ok [22:48] leonardr: the failing tests probably need something like this: self.factory.makeSourcePackagePublishingHistory( [22:48] sourcepackagename=self.sourcepackagename, distroseries=self.hoary) [23:05] sinzui: All those style fixes have almost let you catch up :( [23:07] wgrant: There were some bugs I fixed by accident too. [23:07] but you are the winner [23:07] wgrant: mthaddon probably manual landed [23:07] SpamapS: hi [23:07] lifeless: Yeah, probably :( [23:07] lifeless: I understand you had a chat w/ jml about a distro for ensemble formulae [23:07] SpamapS: creating a distro is a privileged task; please wait for the ensemble list discussion and LEP before doing it [23:08] lifeless: right, I'm not going to do it.. I am trying to understand the challenges. [23:08] SpamapS: ah, do you mean challenges in using or creating? :) [23:08] lifeless: well I don't understand the suggestion that there's no bug tracking if you don't have a built package. How do non-built distros work given that restriction? [23:09] SpamapS: they don't [23:09] SpamapS: try and file a bug on openssh in baltic. [23:09] *baltix* [23:09] Oh. [23:09] I dare you [23:09] whats the use of distros then? ;) [23:09] * SpamapS is tempted now [23:09] SpamapS: distros are all about building and shipping packages [23:10] Yeah , be that the case in reality.. in my head, they're about tracking collections of software. :-P [23:11] SpamapS: so we don't permit bugs filed on package names we know about unless the package is in the distro [23:11] SpamapS: this stops folk filing bugs on e.g. cassandra before its actually in Ubuntu [23:12] that makes perfect sense. :) [23:12] and this matters because all our metadata driving policy - like packagesets etc - depends on source package / binary packages existing. [23:12] So the real issue is there's no way, other than building, to create a package. [23:12] *I* don't know how deep the rabbit hole goes [23:13] The way I saw it working was a mapping of a set of directories into source package names... [23:14] SpamapS: you can map source packages into source package names [23:14] But I'm starting to wonder if, for the beginning of the project, we shouldn't just use a flat bzr and let people use tags to distinguish the formula name. [23:14] SpamapS: that would be a -lot- simpler. [23:15] SpamapS: jml and I had trouble inferring /requirements/ vs /things that using a distro would let you do/ [23:15] Yeah I think people got excited about reusing the distro code (myself included) [23:15] In some ways it makes a lot of sense [23:15] in other ways we really have two quite different things wedged into one in lp's distro bug support [23:16] If the project takes off... we hope to have similar numbers of formulae as we have packages in Ubuntu so it would be very hard to track bugs on such a large body of work. [23:16] one things is 'lightweight components in a bug tracker' and the other is 'policy driven by uploads of stuff' [23:16] SpamapS: really? 20K forumulas? [23:16] a formula for anything that opens a network port [23:16] SpamapS: thats more like 1K [23:16] so, maybe 2000 [23:17] we can start with one structure and migrate [23:17] like, it would be great to have lightweight components for e.g. bzr [23:17] something more than tags and less than separate projects [23:17] Yeah.. I think thats probably going to be the thing I recommend in the list discussion. [23:18] Tight coupling, once again, proves to make things less usable... [23:18] indeed [23:18] I'm a big fan of proving a core facility and letting folk do something cool with it [23:18] now, on the vcs side [23:19] jml said we need branch per (formula, release) tuple [23:19] which the (packagename, series) namespace in distro branches supplies [23:20] SpamapS: oh, on bugs, you /can/ use product series as a component like thing. same place in the UI [23:20] but the concept of nominations vs tasks would make it a little ugly [23:21] lifeless: the series will be the series of formulae tho.. I'd like to keep that nice and clean. [23:21] indeed [23:21] so back to vcs [23:22] do you need that tuple now, or really just (formula, 'sid') - e.g. you only need trunks for the formulas? [23:22] lifeless: I think having one bzr branch for all 2000 formulas would be a little painful. But you just mentioned in a recent discussion that bzr can branch the sub-dirs just fine, right? [23:22] SpamapS: you can work on just a subdir yes. [23:22] all the history comes, but honestly, 2K small projects is tiny bzr scale wise [23:23] so if its /principia/sid/formulas/databases/mysql .. I can bzr branch lp:principia/sid/formulas/databases/mysql and interact with it, yes? [23:23] Oh but I still get the whole history for /principia/sid .. :( [23:24] A minor concession.. but one that our target market will hate.. because they're all git/ruby fanbois. ;) [23:24] SpamapS: yes, but I think you're overthinking the size here. [23:24] when you do this in git you get all the history too [23:24] Right its just faster. ;) [23:24] * wgrant frowns at Lenovo. [23:24] which I *hate* as an argument for any vcs.. [23:24] but some people think it matters. ;) [23:24] SpamapS: mmm, not as such per various benchmarks we've done. [23:25] SpamapS: bzr network fetch is pretty good these days [23:25] 2a fetch is really slow even locally... [23:26] lifeless: Yeah, I'm going to again say that its a very small issue.. the main thing is to start getting those merge proposals cranking.. not achieve intergalactic domination overnight. :) [23:35] SpamapS: anyhow, i have not particular preference for what we do [23:36] I'm not trying to guide towards or away from distros [23:36] but - they are what they are. [23:37] wgrant: https://bugs.launchpad.net/launchpad/+bug/730987 [23:37] <_mup_> Bug #730987: cannot merge to lp-production-configs < https://launchpad.net/bugs/730987 > [23:39] lifeless: Will look soon. Currently trying to figure out whether my T400's battery is being malicious or is actually dead. [23:39] It is 100% charged and still at around 60% design capacity, but this morning refuses to deliver any power. [23:39] wgrant: freeze it? [23:39] The battery monitor tool says it has failed due to normal wear. [23:39] I call BS. [23:41] Maybe I'll leave it all off and unplugged for a few hours and see what happens. [23:42] I have never had a Li-ion battery do this before, so I tend to think it is being malicious. [23:45] Yippie, build fixed! [23:45] Project devel build #513: FIXED in 5 hr 17 min: https://hudson.wedontsleep.org/job/devel/513/ [23:50] wallyworld: you need to gall PersonSet's getPrecachedPersonsFromIDs() method and listify the result, or something like that [23:58] wgrant: thanks! [23:59] lifeless: The obvious fix is to add a list of excluded configs to the test... but maybe a marker file in the config dir would be better.