[00:02] bah, gdb not installed [00:03] rofl [00:03] wgrant: probably, but i suspect that it will be very boring, just twisted sitting in an select loop with no active sockets [00:04] a clean shutdown *should* tell us about un-gc'd deferreds [00:04] also [00:04] triggering a gc from gdb should do that [00:05] mwhudson: There should be lots of them, though... [00:05] yeah [00:05] lsof output too then [00:06] Aha. [00:06] Got it. [00:06] mbarnett: Can you check if there's a running PPA builder reset trigger? [00:06] I'm not sure what it's called. [00:07] vm_resume_command is the config key. [00:07] lifeless: flacoste suggested i should also land the flags ui into lp devel [00:07] since at the moment it seems to now be only in db-devel [00:07] but its precondition db changes should now be in devel [00:07] poolie: yes, definitely [00:08] wgrant: i don't see one off hand [00:08] Hm, now it won't respond to SIGTERM. [00:08] * wgrant is trying a few things locally. [00:10] mbarnett: There really should be one running. [00:10] wgrant: a hung one ? [00:10] lifeless: Ideally. [00:10] It looks like it's an ssh process. [00:11] ./ftpmaster/launchpad-lazr.conf:vm_resume_command: ssh -i /home/lp_buildd/.ssh/ppa-reset-builder ppa@%(vm_host)s [00:11] It will hang if that does, but recovers if it dies, AFAICT. [00:12] here is everything running as the lp_buildd user: http://pastebin.ubuntu.com/479127/ [00:13] Mmm. Zombies. [00:14] So, it will hang until the resume trigger exits after a communication failure, bypassing even the normal timeout. But I don't see why it would continue to hang if there's no process running. [00:15] hah, i think lamont came along and kicked the hung process. [00:16] Ah, yes, everything's running again. [00:16] yeah, now we are going [00:16] So that was probably it. [00:17] lamont> or a child ssh process killed. /me did that, seems happier now [00:17] Phew. [00:18] lifeless: ping [00:18] okay, i see the ssh process he killed [00:18] good to know that will get things moving agian [00:19] lifeless: I've got the bzr failure down to two test files [00:19] COOL [00:19] bah [00:19] lifeless: is it worthwhile trying to eliminate individual tests? [00:19] Cool [00:19] thumper: it may well be [00:19] lifeless: ok [00:23] well, all builders are now actually doing stuff, so that is good [00:27] mbarnett: Bug #618955 [00:27] Bug #618955? [00:27] :( [00:29] thanks for filing that. I have subscribed us losas [00:31] lifeless: gc.collect likely to screw things up? [00:31] thumper: I wouldn't expect it too [00:32] lp.translations.scripts.tests.test_message_sharing_migration.TestSharingMigrationPerformance [00:32] lifeless: that test makes the other one fail [00:32] lifeless: I'm just seeing if it is either test in that test case, or a specific one [00:32] progress! [00:34] lifeless: either of the two tests in that testcase cause the failure [00:51] lifeless: calling TestSharingMigrationPerformance._listLoadedObjects triggers the error [00:51] which uses gc.get_objects [00:52] I'm guessing that is it [00:52] zomg [00:52] yes, a gc held reference to a lazy object is equivant to a bound alias [00:52] don't-do-that [00:52] :) [00:53] advice needed on how to fix this test [00:54] hmm [00:54] easiest not to call that damn thing at all [00:55] its a high cost function [00:55] perhaps installing a Storm Tracer [00:56] its also a poor surrogate for what I think they want to test [00:56] I don't really understand their test [00:56] so [00:56] I think what they want to say is [00:57] 'if there are 15 pomsgids in memory before you call this function, there are only those 15 in memory afterwards' [00:57] and the implication is that no pomsgids were loaded in the interim [00:57] this only works if there is a non-weak cache installed (we have one) in the storm layer, and nothing resets it or otherwise invalidates it. [00:58] try this [00:58] do a gc.collect() at the top of _listLoadedObjects [00:58] this doesn't invalidate the test because: [00:58] - gc collect can happen anytime [00:58] this should fix the problem because: [00:59] - we don't have any references to the scope replacer [00:59] trying [00:59] but also please file a tech debt bug - this is a very roundabout way to say that something didn't happen - its a surrogate for something we can measure directly with only a little more effort [00:59] nope [00:59] still fails [00:59] darn [01:00] oh [01:00] by bad [01:00] we have code for storm tracers [01:00] so that isn't working because [01:00] if it will only take a little more to fix, I could do that now [01:00] there is a module in bzrlib that hasn't triggered its lazy load. [01:01] and we go past it twice, or something [01:01] though I am a little surprised it didn't work. Does it blow up in that function, or in your test code? [01:02] we have StormStatementRecorder [01:02] lifeless: it blows up in the following test [01:02] I would cjec that there are no Selects that return a [01:02] *check* [01:02] that seems much more targeted, to me. [01:02] hmm... [01:02] the statement recorder can't check that [01:03] it records the raw sql [01:03] SELECT.*POSMSGSETID\..*FROM -> boom [01:05] I'm recording the statements now, with a pdb set [01:05] to look [01:05] well [01:05] we don't expect to see that, because the test 'passes' :) [01:07] Ursinha: timeout bugs get high + triaged :) [01:07] zero-oops-policy [01:07] just fyi [01:07] you don't see POSMSGSETID.* in the SQL [01:07] good [01:07] it gets expanded to all columns [01:07] storm expands the * [01:07] right [01:07] and it qualifies them [01:07] posmsgsetid.foo [01:07] ah, I see what you mean now [01:08] is what you'd see when pomsgsetid's are looked up [01:08] lifeless, cool, should I triage them as such when filing them? [01:08] Ursinha: where there is as clear a policy as the zero-oops-one, I absolutely think so [01:08] cool [01:08] Ursinha: where its going to be team-determined, then no - or at least, I don't in those cases except [01:09] lifeless, what's the difference [01:09] where I am putting my TA hat on and asking as a favour-to-the-TA to do something [01:09] Ursinha: well a non-oops non-timeout bug doesn't have a predetermined importance [01:09] is any in python 2.5? [01:09] lifeless, ah, I was only talking about timeout bugs :) [01:10] Ursinha: :) [01:10] Ursinha: I was giving a general answer :) [01:10] sorry for de confusion [01:10] lifeless, no problem, thanks for the information :) [01:29] lifeless: can you check out this? http://pastebin.ubuntu.com/479160/ [01:29] lifeless: do you think it is testing enough of the same thing? [01:29] +1 [01:30] I certainly do [01:30] should be faster too [01:30] lifeless: I'll break it into a separate branch [01:32] lifeless: and no bad interaction [01:33] lifeless: about performance tuesday, is the looking up of branch subscriptions because of the checking for launchpad.View ? [01:33] lifeless: if so, have you seen how the branchlistings avoid this particular death by sql? [01:35] * thumper files a bug on rosetta [01:36] mwhudson: I don't know [01:36] mwhudson: I'm trying to get a test that is precisely the same [01:36] ok [01:37] mwhudson: for now, I have one that shows 'one more query as you add a private bug' [01:37] let me paste [01:38] so, I can fix one cause of too many queries [01:38] but I know I'll be missing the particular one :( [01:38] http://pastebin.com/wPNqcuzn is my test [01:39] mwhudson: AIUI you retrieve too much and then do a custom security check [01:39] lifeless: 'you'? [01:39] 'branhc listings' [01:39] that's the launchpad default usually, it's not what branch listings do [01:40] https://lp-oops.canonical.com/oops.py/?oopsid=OOPS-1689EB3170 [01:40] is the oops I'm trying to duplicate [01:40] branch listings do a query to find the branches the user can see and then pre-populate the permission cache [01:40] 3286439196420launchpad-main-slaveSELECT BugSubscription.bug, BugSubscription.date_created ... [01:40] blah [01:40] so the security adapter doesn't do any queries [01:40] 328 6439 19 6420 launchpad-main-slaveSELECT BugSubscription.bug, BugSubscription.date_created, BugSubscription.id, [01:40] is what I'm trying to make my test trigger [01:40] but I'm having trouble making it do it [01:41] possibly due to caching :) [01:41] lifeless: also, another trick [01:41] lifeless: do you know about LP_DEBUG_SQL_EXTRA ? [01:41] do [01:41] what doth that do? [01:41] make run LP_DEBUG_SQL=1 [01:41] gives a metric shit-load of output [01:41] prints all queries as the output [01:41] extra gives a stacktrace too [01:41] LP_DEBUG_SQL_EXTRA gives tracebacks as well as the sql [01:42] ok [01:42] very very handy [01:42] as thumper says,. it's mounds of output [01:42] in optimisation work [01:42] but can be handy to figure out where that query is coming from [01:42] I had 70k lines of output for the branch index page [01:42] I should capture that for these performance tests [01:42] toss it into kcachegrind [01:43] lifeless: https://code.edge.launchpad.net/~thumper/launchpad/fix-TestSharingMigrationPerformance/+merge/32828 [01:43] lifeless: if you make the mark on that, I'll land the fix [01:43] lifeless: and that was pretty much the only thing blocking bzr 2.2 landing === Ursinha is now known as Ursinha-afk === Ursinha-afk is now known as Ursinha [01:49] mwhudson: so the problem with reproducing the query is that I don't know how to do it *at all*, not just in-a-test, other than 'visit this page that oopses' :) [01:50] lifeless: challenging [01:53] even sprinking store.invalidate()'s doesn't trigger it [01:53] ah well, so I'll fix the problem I *have* demonstrated. [01:56] it would be nice to be able to say [01:56] 'now make run should give me this test environment' [01:56] or something [01:57] barry had some terrible hacks for that iirc [01:58] sync_to_demo() [01:58] ? [02:23] do windmill tests hate everyone, or just me ? [02:26] lifeless: It's everyone, and life itself [02:31] does this mean anything to anyone ? [02:31] ====================================================================== [02:31] ERROR: lp.registry.windmill.tests.test_person_picker.TesPersonPickerWidget.test_person_picker_widget [02:31] ---------------------------------------------------------------------- [02:31] _StringException: Text attachment: garbage [02:31] ------------ [02:31] [] [02:31] ------------ [02:33] I see that most times I run that. [02:33] So I just sort of ignore it. [02:33] While giving it a look of extreme disapproval. [02:33] blocking landing is asad [02:34] Oh, it did that in EC2? [02:34] yes [02:34] :/ [02:34] yes [02:37] >< [02:37] my registry /participants fix works here [02:37] but there is an extra query on prod [02:37] sorry [02:37] ec2 [02:38] lifeless: for reasons i have (shamefully) never really dug into, i find that when i have a genuine failure in ec2, i get a windmill failure too [02:38] when i fix the genuine failure, the branch lands ok [02:39] maybe this is just luck or maybe something else [02:39] sigh [02:39] a new SELECT Person.account, Person.creation_comment, Person.creation_rationale, Person.datecreated, Person.defaultmembershipperiod, Person.defaultrenewalperiod, Person.displayname, Person.hide_email_addresses, Person.homepage_content, Person.icon, Person.logo, Person.mailing_list_auto_subscribe_policy, Person.merged, Person.mugshot, Person.name, Person.personal_standing, Person.personal_standing_reason, Person.registrant, Person [02:39] mwhudson: interesting [02:40] I've sent cachedproperty off on its own with the registry branch fix [02:40] while I try to figure out wtf I see an extra query even with devel merged in [02:40] maybe something landed in the last few hours [02:57] oh wow [02:57] we trigger a DB lookup on every person lookup via this code path [02:57] shudder [03:08] yay storm bugs [03:08] object cache coherency, can you imagine it? [03:12] it sounds fairly unlikely :-) [03:15] har har har [03:15] thats twice in 1 month [03:15] https://bugs.edge.launchpad.net/storm/+bug/619017 [03:15] I'm not trusting the layer much now, as a result [03:16] I'd rather storm didn't have an object cache. [03:16] it would make it much simpler [03:16] and more focused [03:19] mwhudson: or perhaps you were being sardonic ? [03:20] lifeless: a touch, yes [03:21] ha! [03:34] poolie: ping [03:35] mwhudson: know the simplest solution to this? http://pastebin.ubuntu.com/479196/ [03:36] thumper: :( [03:36] mwhudson: could trim the input on _show_lline [03:36] mwhudson: but we'd still have the | [03:37] thumper: let me try to remember what the test is actually testing [03:37] mwhudson: most of the TestLoggingUIFactory tests fail [03:37] with similar errors [03:37] I'm guessing the base class was updated in 2.2 [03:38] thumper: yeah, looks like progress reporting changes in bzr [03:38] thumper: possibly needs a code fix, as that's going to make the code import logs look rather lame i suspect [03:38] :-| [03:40] I wonder if the _render_bar was renamed [03:40] i'm just updating my bzr branch [03:40] (i think it's fairly ancient) [03:41] * thumper runs away again [03:44] thumper: got a branch i can run tests in? [03:45] I wonder if overriding _avail_width to always return None in LoggingTextProgressView will help [03:45] poolie: [03:45] ^ [03:49] alternatively def _render_line(self): return self._render_bar() will probably do it [03:55] mwhudson: so [03:55] File "/home/robertc/launchpad/lp-branches/working/lib/canonical/launchpad/webapp/authorization.py", line 207, in checkPermission [03:55] principal.account) [03:56] is that the code path you're talking about w.r.t. checking permissions doing db access ? [03:56] probably [03:56] oh [03:56] is the next call down in canonical.launchpad.security? [03:57] lifeless: ^ [03:58] checkAccountAuthenticated [03:58] yes [03:58] then yes [03:58] so the *menu* is generating this [03:58] :/ [03:58] enabled_with_permission ? [03:58] what's the context object being checked? [03:59] dunno [03:59] but probably milestone/product [03:59] mm [04:00] lifeless: can you pastebin the whole traceback? [04:00] sure [04:01] http://pastebin.com/EkXrtUK6 [04:03] mwhudson: yeah, I do [04:04] lifeless: wee, it's checking if the user can review the page [04:04] er [04:04] lifeless: wee, it's checking if the user can review the product [04:04] mwhudson: lp:~thumper/launchpad/new-bzr [04:04] ReviewByRegistryExpertsOrAdmins [04:04] mwhudson: how did you figure that out ? [04:04] although I'm about to run out yet again [04:05] lifeless: # [04:05] File "/home/robertc/launchpad/lp-branches/working/lib/canonical/launchpad/security.py", line 232, in checkAuthenticated [04:05] # [04:05] return user.in_admin or user.in_registry_experts [04:05] -> look at line 232 of security.py [04:05] hi tech haxorring! [04:05] oh [04:05] I figured that would be generic. serves me right [04:05] it's crummy, but it's a once per page check [04:06] mwhudson: found it [04:06] thumper: oh? [04:06] mwhudson: we set _render_bar to return '' [04:06] mwhudson: the base _render_line method does bar_string = self._render_bar() first [04:06] then [04:07] if (task_part or trans) and not bar_string: [04:07] bar_string = '| ' [04:07] further down [04:07] mwhudson: then why do I see two of them ? :) [04:07] aah [04:07] :( [04:07] lifeless: both sides of the or execute a query i guess [04:07] * lifeless facepalms [04:07] lifeless: i guess i should have said "fixed number of queries per page" [04:07] lifeless: ORMs r grate [04:08] thumper: i guess overriding _render_line() is one fix [04:09] mwhudson: yeah [04:10] I'll look at it again when I get back [04:11] mwhudson: want to have a rotation in 6 months or so, to work on a separated mapper approach ? :) [04:12] lifeless: heh [04:13] lifeless: we should rewrite launchpad in haskell and use meta-programming to compute the set of needed queries before we actually start executing code for the page!! [04:13] mwhudson: funny you should say that [04:14] we do need something along those lines (the needed queries, not haskell) [04:14] lifeless: given the pypy background, perhaps not so much [04:14] mwhudson: :) [04:16] it some sense, it would be fairly easy to do the page rendering twice, once to collect the queries and then again for real [04:16] you could even do the first bit ahead of time [04:16] the fun part is conditionals, of course [04:17] fsvo fun? [04:18] you _could_ abstractly interpret the code repeatedly, taking a different path and giving a different answer for each branch [04:18] pypy does exactly this [04:19] see [04:19] while this sounds extremely promising [04:19] I'm actually ok with just putting a cap on the queries [04:19] :) [04:19] and failing tests if the cap is exceeded [04:30] hi thumper, mwhudson [04:32] mwhudson: all ok now? [04:33] how can I tell if an Interface is exported via APIS ? [04:34] if it has export* decorators on it [04:35] ok [04:35] so BugTaskSearchParams isn't exported [04:35] \o/ I can mess with it [04:43] poolie: i think so, although it's really thumper who's worrying about this [05:00] can anyone explain what a 'non conjoined task' is ? [05:05] lifeless: A task that isn't conjoined. Do you know what a conjoined task is? [05:09] no [05:09] lifeless: When you're done with wgrant, do you have time to mumble? [05:09] sure [05:09] I think I've *finally* found where this private check is kicking in [05:10] StevenK: but skype please [05:10] it works [05:10] lifeless: If you have a task for a project and its development series, the project task is hidden, and becomes a conjoined slave to the development series task. [05:10] (that's then you see "Status tracked in SomeSeries") [05:10] ok [05:10] StevenK: rbtcollins [05:10] Setting the status on the series task sets it on the project task too. [05:10] * StevenK grumbles how lifeless hates freedom, and hides [05:11] StevenK: do you have skype? [05:12] lifeless: Yes [05:12] and do you want to talk [05:12] lifeless: Yes -- and I cope with mumble's lag every stand-up, so ... :-) [05:12] lifeless: So I'm only teasing [05:22] arch_tag in [%s] [05:22] where the %s is [05:22] sqlvalues(tags) [05:22] or something [05:22] you need , [05:23] 's [05:23] so I guess ",".join(sqlvalues(*arch_tags)) [05:23] include = "architecturetag IN (%s)" % sqlvalues( [05:23] ','.join(self.arches)) [05:23] only [05:23] include = "AND whatyou haveabove [05:24] sqlvalues(list(self.arches))? [05:25] wgrant: I guess [05:25] wgrant: but why the list ? [05:25] wgrant: But I can't just blat that into a string with %s? [05:25] lifeless: so i am thinking of just using a textarea for editing the rules [05:25] its a tuple already [05:25] at least to start with [05:25] poolie: +1 [05:25] since it's a very nerd-oriented thing [05:26] lifeless: Ah, not already a resultset? [05:26] s/already/just/ [05:26] wgrant: Damn it, it's my code. :-) It's a tuple [05:26] poolie: hi [05:26] Just sqlvalues(self.arches) should work, then. [05:26] wgrant: does that return a iterable of strings ? [05:26] hi thumper [05:26] poolie: I was discussing the issue we have with our code import bzr logger [05:26] poolie: and that things changed [05:26] poolie: http://pastebin.ubuntu.com/479196/ [05:27] poolie: is an example of the failure [05:27] poolie: just working out what to change in our logger [05:27] huh [05:27] was thinking overriding _render_line [05:27] i would guess this is actually a uifactory problem [05:27] and that these tests want to test TestTextUI [05:27] but they don't explicitly set it, they just assume it's the default [05:27] which it may not be in your context [05:28] >>> 'foo IN %s' % sqlvalues([1, 2, 3]) [05:28] 'foo IN (1, 2, 3)' [05:28] lifeless, StevenK: ^^ [05:28] poolie: I'm actually guessing part of the issue is line 392 of bzrlib.ui.text.py [05:29] poolie: as our logger has _render_bar defined to return '' [05:29] poolie: FYI, this is the lp.codehosting.codeimport.uifactory.LoggingTextProgressView [05:30] oh this is your test, not mine [05:30] poolie: yes [05:30] LINE 5: FROM DistroArchSeries WHERE distroseries = 3 '' [05:32] thumper: i guess what's broken it is that _render_line now does the whitespace filling, not repaint [05:32] or something like that [05:32] actually, I'm thinking line 391 should be: if (task_part and trans) and not bar_string: [05:32] rather than if (task_part or trans) and not bar_string: [05:33] you only need the bar if there are both task_part and trans to separate them [05:33] perhaps? [05:33] oh, and the whitespace filling [05:33] thumper: you seem to have two problems, one being the whitespace padding and the other is the bar [05:33] yep [05:33] poolie: I'm thinking it is easier just to override _render_line [05:34] i agree about the 'and' in that line [05:34] ok [05:34] I could just change the _avail_width to return None [05:35] but we'd still have the bar issue [05:35] but if you want complete control you should probably just override _render_line [05:35] to me that is most consistent with the intention [05:35] * thumper nods [05:35] ack [05:38] storm/database.py +236 [05:38] lifeless: whatcha doin? [05:40] talking about doing INSERT INTO in storm [05:44] compile(expr, State() [05:45] ) [05:45] -> sql [05:45] expr - Select(table, And(x, y)) [05:46] storm.expr.compile_insert [06:00] StevenK: so I'm debugging https://lp-oops.canonical.com/oops.py/?oopsid=OOPS-1689EB3170 [06:01] StevenK: do you have lpadmin account access in the dogfood environment ? [06:01] (I need to be put in a group there, to trigger this) [06:01] if you don't, don't worry, I'll get mthaddon later on staging. [06:02] lifeless: Oh, you need a duck on dogfood? [06:03] I need to be in the landscape team [06:03] I am on prod, now [06:03] how that is arranged may need a duck [06:03] Um, dogfood is really not a good place to test timeouts. [06:03] wgrant: I don't want to test the timeout [06:04] lifeless: And yes, I can ... force you into landscape [06:04] wgrant: I want to get a definitive backtrace of the cause of the query [06:04] StevenK: hold off for a bit [06:04] like I said just before our call, I think I'm onto the cause. [06:07] bug.py 1561 looks like a clear culprit [06:09] though I still need to figure out WTF I can't trigger this in a test [06:09] possibly a non-proxied bug object ? surely not. [06:09] I'm using userBrowser [06:12] lifeless: you should try 'ssh launchpad-vm ./bin/test --subunit|tribunal-subunit -' [06:15] poolie: :) [06:16] ok, so userBrowser goes through publication [06:16] wtf [06:16] wtf [06:16] wtf [06:16] Why wouldn't it? [06:17] its good that it does [06:17] wtf am I not seeing this security code popping up I mean [06:22] \o/ cachedproperty branch passed ec2 [06:26] can someone point me to a good example of non-doctest pagetesting? [06:28] I pasted an ok example in last weeks perf tuesday thread [06:30] ah test_archive_packages [06:30] ok [06:30] they seem to generally live in browser/tests/* [06:31] yep i found some more [06:31] obvious really [06:31] the ones that do exist seems pretty clean [06:43] man, I hate debugging by printf [06:45] has anyone ever tried running pgsql on a tmpfs, or with libeatmydata? [06:46] yes [06:46] not a huge difference [06:46] it helps if you have lots of ram and a slow hd [06:52] where was the build pydoctor stuff? [06:52] poolie: http://people.canonical.com/~mwh/canonicalapi/ [06:53] but there's a good chance apidoc.launchpad.dev is more useful these days [07:07] StevenK: Shouldn't your packageset thing be copying memberships too? [07:07] At the moment it's just copying empty sets. [07:08] Empty sets? [07:09] wgrant: I'm about to head out for an hour or so, can you dump what you think I'm missing and how the tests could be extended in a PM? [07:09] StevenK: I suspect that the new package sets will have nothing in them. [07:09] That can be tested trivially [07:10] It can be. [07:10] It needs to copy packageset<->packageset and packageset<->package relationships. [07:11] \o/ reproduced the query in the test [07:17] that makes me so much happier [07:17] I thought I was going nuts [07:17] yay, a pagetest passes [07:19] \o/ [07:21] ok, might take a berak [07:21] tests for merge of the existing flags code into devel are still running [07:22] time for a break for me too, that was a marathon head beating session to find out that userBrowser 'works' with the wrong password [07:25] oh, nice [07:26] btw if i want to have /+features [07:26] is it reasonable to say that's a view of ILaunchpadRoot? [07:26] that doesn't seem quite right but it does seem stadnard [08:01] yes === almaisan-away is now known as al-maisan [08:17] wgrant: Still here? [08:20] StevenK: Indeed. [08:24] wgrant: Just looking at the branch now [08:29] wgrant: btw, registry branch has landed [08:29] wgrant: your worst gears may come true next time edge updates [08:31] Worst gears? [08:31] First, second, third, fourth or fifth? [08:32] Damn it, wgrant is right [08:32] aboot? [08:32] Alpha? [08:33] Yay. [08:33] StevenK: about [08:33] a = [] [08:33] b = [u'pmount'] [08:33] wgrant: ^ [08:44] what causes a security proxy to be wrapped around something [08:44] securedutility... ah layers [08:45] ...nope [08:46] databasefunctionallayer should have sec proxies around utilities, no? [08:47] It should, yes. [08:47] is there an idiom for checking that? [08:48] and it does [08:48] hmm [08:51] good morning [08:58] wgrant: So, which table includes the package names for packagesets? [09:07] guess how many queries this takes: [09:07] (in the assert call) [09:07] target = self.makeBugTarget() [09:07] person = self.login() [09:07] self.factory.makeBug(product=target, private=True, owner=person) [09:07] self.factory.makeBug(product=target, private=True, owner=person) [09:07] login_person(person) [09:08] tasks =target.searchTasks(BugTaskSearchParams(person, omit_dupes=True, [09:08] orderby=['status', '-importance', 'id'])) [09:08] self.assertStatementCount(0, lambda:[task.getConjoinedMaster for task [09:08] in tasks]) [09:09] no takers? [09:09] lifeless: 100? [09:09] 5 [09:11] each security check is 2 queries [09:12] sanity check: if we'v edone a search limited by a users view, saving that user in the results as someone we know can see them is sane? [09:16] Yo [09:23] hey wgrant [09:24] bigjools: btw, b-m had a hiccup midday, wgrant has the details [09:24] lifeless: I read the bug [09:25] lifeless: thankfully it's nothing to do with the recent changes [09:31] phew [09:43] ok, down to 2 queries [09:43] lets see if I can go for 1 [09:57] \o/ [09:57] milestone pages should be happier soon :) [10:01] woot [10:02] it may also help a bunch of other private bug related perf issues [10:02] due to cachedproperty. [10:07] whats the preferred way to spell 'adapt this' [10:07] e.g. [10:07] if I have a person_or_personroles [10:07] is it [10:07] person = IPerson(person_or_personroles) ? [10:08] yes [10:11] hmm, I think I'll add 'id' to IPersonRoles [10:13] jml: like you, I can't write code without tests [10:13] jml: but its ok, its a good place to be [10:13] now I have a weird situation [10:14] the second page load with more bugs takes less queries :) [10:14] StevenK: Sorry, was travelling. [10:14] StevenK: PackageSetInclusion and PackageSetSource, IIRC. [10:14] There's also PackageSetGroup, but I don't know if that's used for anything. [10:14] bigjools: It isn't? [10:14] bigjools: It looks like it's meant to be asynchronous... [10:15] And given that the whole Deferred management thing changed last week... [10:16] wgrant: nothing changed in what is Deferred [10:16] it just interleaves them more [10:30] \o/ [10:30] bzr 2.2 upgrade in the pipe [10:31] \o/ [10:31] lp.registry.browser.tests.test_milestone.TestMilestoneIndex.test_more_private_bugs_query_count_is_constant [10:31] Ran 1 tests with 0 failures and 0 errors in 2.864 seconds. [10:32] ignoring the pathetic sped [10:32] -it works- muahahhaaha [10:32] lifeless, \o/ [10:33] win 68 [10:33] so [10:33] I'm going to push [10:33] propose for merge [10:33] and foff to relax [10:33] @930pm [10:39] oh yay, apt-get update ruined ca-cert [10:46] * bigjools switches conversation to -dev [10:46] wgrant: I plan on converting the rest of the sync stuff to async at some point anyway [10:46] Yeah, it needs it. [10:46] good plan :) [10:47] Although the next significant step is to remove the p-u invocations. [10:47] * bigjools chuckles at jml [10:47] That should just about get it to an acceptable speed. [10:47] wgrant: jelmer has a branch that does that, it's on dogfood :) [10:47] Does it dump it into a directory with a daemon watching it? [10:47] cronjob for now, but yeah [10:47] Ah. [10:48] How does that interact with the build state? It sits FULLYBUILT without binaries for up to a minute? [10:48] something like that yeah, but it's still quicker than what we have right now [10:49] Probably. [10:56] definitely :) [10:57] wgrant: any comments on https://bugs.edge.launchpad.net/soyuz/+bug/619088 [11:01] bigjools: NMAF does it. I don't know why a-f wouldn't. [11:01] it's a-f .... all bets are off [11:01] True. [11:02] Even Debian's trying to kill it now. [11:11] ok, have a good performance tuesday [11:11] bigjools: I'll pull the performance tuesday topic-element off tomorrow morning - I'd like it to be up there for a full 24 if thats ok:) [11:12] lifeless: yeah, did I remove it last week? [11:13] bigjools: yeah :) [11:13] lifeless: oops. sorry :) [11:13] bigjools: de nada [11:15] is there an official way to make the right pqm command to land a branch i've already tested locally [11:15] i guess lp-land? [11:15] poolie: I do it by hand [11:15] old skool :) [11:15] echo blah|gpg|mail? [11:15] you need the pqm plugin for bzr [11:16] then I do "bzr pqm-submit -m ...." [11:16] lp-land should work. [11:16] you can use your approach if you can remember the pqm commands I guess [11:17] bigjools: you don't need to, lp-land gets them from the MP. [11:17] even betterer, I've not used it [11:17] OAuth needs a "yeah, yeah" button [11:17] heh [11:18] I have come up with the perfect solution for this ravenous hunger: Food! [11:18] you can have a lamb, leek and mint stew [11:18] if you can get over here in time [11:19] urk [11:19] File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/resource.py", line 308, in __getattr__ [11:19] % (self.__class__.__name__, attr)) [11:19] AttributeError: 'Entry' object has no attribute 'source_branch' [11:19] i know this indicates some internal error but i can't remember what [11:21] it may mean Entry isn't an IMergeProposal [11:21] i've seen that happen when you call into lplib again after previously getting an exception [11:21] poolie: red dead redemption is kinda fun [11:21] yes it is [11:21] i guess a cache is corrupt [11:25] umm [11:26] poolie, actually, it's because you are giving it a branch URL not a mp URL [11:26] I think [11:26] thumper: btw [11:26] thumper: CodeImportSchedulerApplication:CodeImportSchedulerAPI - https://devpad.canonical.com/~stub/ppr/lpnet/latest-daily-timeout-candidates.html - click on sort-by-total-queries [11:26] thumper: thats doing a _lot_ of db work [11:27] only three per hit on avg, but boy - a huge number of hits. Or something like that [11:27] wgrant: Distribution:+archivemirrors [11:28] wgrant: if you're going to look at perf - that looks to be a classic death-by-sql [11:28] 94 hits [11:28] 69715 queries [11:29] hm i got a "failed to verify gpg signature" [11:29] i might not actually be allowed to submit? [11:29] hah, thats possible [11:29] losa should be able to fix that fr you [11:29] ok [11:29] lifeless: Is that a typo? [11:30] wgrant: is what a typo? [11:30] lifeless: 69715 [11:30] no [11:30] queries. [11:30] That is insane. [11:30] yes [11:30] 700 per hit [11:30] and you wonder why its timing out :) [11:30] lifeless: i'll ask tomorrow; could you send https://code.edge.launchpad.net/~mbp/launchpad/flags-webapp/+merge/32833 for me now to reduce latency? [11:30] Oh. [11:30] wgrant: its still about 100 times too many queries [11:30] i may put up the edit ui tomorrow, depending [11:31] lifeless: I wonder how much we can cut the base query count. [11:31] poolie: please specify a commit message [11:32] poolie: sounds great on the edit ui [11:32] done [11:32] wgrant: I think you could get it to 8 [11:32] wgrant: 4 for oauth & other auth cruft, 3 for cookies and session [11:32] 1 for the content. [11:32] lifeless/wgrant: Not timing out here; you two should move to LDN. [11:32] jpds: whttps://devpad.canonical.com/~stub/ppr/lpnet/latest-daily-timeout-candidates.html [11:33] 1% of hits are timing out [11:33] 40% are over 10 seconds long [11:33] Yeah; the freshness stuff needs fixing. [11:35] jpds: its doing *an average* of 700 queries per page load :) [11:35] jpds: thats very much 'needs fixing' :) [11:43] poolie: ok I think i've told it the magic nuts n bolts to make it do stuff [11:50] gnight [11:50] tag, somebody is it; make things better [12:01] Morning, all. [12:01] deryck, good morning [12:05] Do people look at the old patch-???.sql files for examples, or can I just trash them when they are no longer needed? Its about 85 files. [12:07] I use them as examples sometimes, but only because I'm lazy. [12:07] For everything else, there's VCS history. [12:14] Just wondering if people want them left around for laziness, or trashed for performance. [12:14] wgrant: I can't see anything in packagesetinclusion, but I'm about to did through .addSource() code [12:16] StevenK: I'm pretty sure it's used for packageset inheritance. [12:16] I was afraid of that [12:16] I'm already having to write one horrible SQL transform, what's two more :-( [12:17] StevenK: What about packagesetgroup? [12:17] wgrant: Although, the code for .addSource() only touches packagesetsources, so perhaps packagesetinclusion is done by trigger? [12:18] wgrant: I don't touch it at all, currently [12:18] StevenK: packagesetinclusion is for packageset inheritance. It doesn't touch sources. [12:19] Sigh. [12:19] stub, I vote trashing for performance [12:19] And packagesetgroup seems to be to group them across series? Not entirely sure. [12:19] wgrant: I'm not either [12:33] danilos, henninge: about setCurrentTranslation, submitSuggestion & approveā€¦ ISTM we'll be calling setCurrentTranslation only from tests and from the new approval method. (Doing it this way even for imports would probably simplify the conflict checks as well). If that is right, that would mean we could handle things like karma in submitSuggestion and approveSuggestion, completely outside of setCurrentTranslation. [12:34] Oh, and from other scripts perhaps where we most likely don't _want_ karma involved. === mrevell is now known as mrevell-lunch === matsubara-afk is now known as matsubara [13:50] hmm. [13:50] why doesn't Mismatch just take some descriptions and details? [13:57] jml, to reduce coupling between Matcher and Mismatch? [13:58] they are pretty tightly coupled anyway [13:58] well, off the top of my head, lets say you had two matchers [13:59] they each create an instance of the same mismatch class [13:59] if you pass in the error message or change the detail handling, then both matchers are affected [14:00] under the current design only changes to the mismatch constructor API will cause callers to change [14:02] oh, sorry, I wasn't being clear. [14:02] I'm not proposing removing describe() or get_details(), just changing the base Mismatch to take optional parameters for description and details so every single Matcher doesn't need to make its own Mismatch subclass. [14:03] (alternatively, make a SimpleMismatch that does that) [14:03] ah, I was thinking of a similar idea, but using a factory function that returns some Mismatch template class instance [14:03] same diff [14:04] so yes, something like that would be nice for convenience [14:09] jml, looking through testtools.matchers - it might be convenient, but there would be a real temptation to eliminate all the mismatch classes, or for developers to not create new ones. It would be very easy (too easy?) to just pull the mismatch-specific code (often one line) up into the matcher. === fjlacoste is now known as flacoste === mrevell-lunch is now known as mrevell [14:10] mars, you mean less code that does the same thing and preserves the current API? [14:11] well, it does the same thing, but in a different form (no more well-named Mismatch subclasses) [14:12] not saying that's a bad thing, just pointing out one consequence of the convenience [14:12] mars, is that such a loss? [14:12] right [14:14] well, the patch is up [14:17] sinzui, I've just filed https://bugs.edge.launchpad.net/malone/+bug/619218 against malone, but I'm wondering if it should be a registry task instead. [14:17] What do you think? [14:17] I think it is bugs since not all projects use bugs [14:18] gmb: is this a feature we are considering? [14:19] sinzui, No, just something that I've seen mentioned twice in as many days. [14:19] I'll leave it on bugs. [14:19] Thanks. [15:27] EdwinGrubbs, gmb: I landed a fix to count only open bugs on a dsp for https://edge.launchpad.net/ubuntu/maverick/+needs-packaging Do I need to wait for a daily proc to run that updated bug heat on dsps (max_bug_heat bug_heat_count)? [15:31] sinzui: I believe that it runs whenever a bugtask is added or removed on a sourcepackage, so they won't all get updated at once. [15:32] Thanks EdwinGrubbs [16:00] matsubara: ping [16:01] hi EdwinGrubbs [16:03] matsubara: to make it easier to debug errors where mailman sends an email to launchpad for moderation via xmlrpc, I want to add the full text of the email to the oops. I've looked at how oops-tools parses it, and I want to discuss the various possible solutions. [16:05] /join #ubuntu+1 [16:05] [16:06] EdwinGrubbs, sure, here or mumble? (IRC is easier for me as I'm in the middle of something) [16:07] matsubara: we can do it on irc. Before I start listing off the possibilities, do you have any thoughts on how you would like this to be solved? [16:09] sinzui: hey. does registry do gpg stuff usually (https://bugs.launchpad.net/bugs/618347) or is this a foundations thing? foundations hasn't done much of any gpg stuff on my watch. [16:11] gary_poster, That is registry. I believe it is the last piece of code that uses logintoken [16:11] lifeless, ping? [16:11] ok thank you sinzui [16:12] matsubara: ok, I'll start then. Option 1) Just add a delimiter at the end of the traceback to add a single section. [16:13] matsubara: Option 2) Use the python multifile module to add mulltiple delimited sections after the traceback. [16:13] EdwinGrubbs, sorry, I'm looking for an oops as an example. I think one idea is to make like the codehosting oopses and add the email as part of the request variables [16:13] kinda hackish though [16:13] EdwinGrubbs, option 1 is interesting [16:15] matsubara: but aren't the request variables limited to one line normally. Even if the oops-tools can parse a single req var that is multiple lines, it would probably look really bad when browsing oops files on devpad. [16:15] I just talked to the ISD guys and they want to have a way to parse oopses like this: https://admin.isd.canonical.com/oops/?oopsid=1607carambola1 and render the extra data info as html. perhaps extra_data should be a section after the traceback [16:15] james_w, are your html matchers available for use in Launchpad (sorry, I've asked you before) [16:16] jml: I don't think so [16:16] james_w, where could I find them? [16:17] lp:soupmatchers [16:17] matsubara: Option 3) expand on the email formatting idea. Add a header to indicate a new oops format, and turn it into a multipart/mixed mime email. This has the added benefit of providing name/value pairs for each part and unlimited number of sections. [16:17] james_w, thanks. [16:18] EdwinGrubbs, option 3 sounds interesting [16:19] matsubara: my one concern about rendering html in an oops is that the html might contain javascript attacks. [16:20] EdwinGrubbs, yep, I'm aware of that. one of the things I'd like to discuss with the ISD guys before they implement that option [16:23] matsubara: so, should I wait until we can get more info from ISD, or can one of the solutions be started on. Technically, the oops-tool can just format extra data as text now and be updated to not escape the html later when the security concerns are addressed. The mime solution would be the handiest for that, since we would be able to add a content type to each section. [16:25] EdwinGrubbs, I think we can start and then adapt the work to address ISD's needs in the future. [16:25] EdwinGrubbs, once you get the changes needed on the LP side could you ping me so I can update oops-tools to understand this new format? [16:29] matsubara: well, I was planning on updating oops-tools at the same time for testing purposes. Do you want me to go with Option 3? === salgado is now known as salgado-lunch [16:31] matsubara: the main drawback to option 3 is that oops-tools has to be updated before launchpad starts producing oopses in that format. [16:31] just appending to the end of the traceback is sorta backwards compatible. [16:33] EdwinGrubbs, right. I'd rather go with option 3 given that we will need this work in the future anyway [16:37] ok [17:07] what time does lifeless usually get active on IRC? [17:07] i have a question for anyone who might know [17:07] i have a test that's suddenly started failing on ec2 [17:08] and the failures would be explained if the AppServerLayer used to make Launchpad available at "launchpad.dev", but recently it was changed to be available at "launchpad.dev:8085" [17:08] did anything like that happen, or has the test launchpad always been available at launchpad.dev:8085? [17:08] i know for some test layers it's been at :8085, but maybe it was formerly inconsistent and the inconsistency was fixed recently? === Ursinha is now known as Ursinha-lunch [17:19] another possibility is that the tests used to be run with a sitename of 'testrunner' and now they're run as 'development' === jcsackett is now known as jcsackett|afk [17:23] jcsackett|afk, early NZ time. [17:24] leonardr, sorry, I don't know of any recent changes along those lines. [17:24] leonardr, I'd be very surprised if the latter possibility were true. === matsubara is now known as matsubara-lunch [17:28] well, damn [17:30] leonardr, does the test fail locally? [17:31] jml: no [17:31] jml, more specifics about the test [17:31] leonardr, even if you merge in the latest devel? it's possible that something broken landed recently. [17:32] jml, i think i know why it doesn't fail locally, let me explain [17:32] leonardr, please do. [17:32] when you run 'make' in launchpad, it generates some wadl for your instance === salgado-lunch is now known as salgado [17:32] the wadl defines the root url of the wadl as being http://api.launchpad.dev/ [17:33] s/of the wadl/of the web service/ [17:33] in local usage (and i'll test this to make sure), when you run a test, launchpad starts up as launchpad.dev, and the launchpadlib test makes requests to http://api.launchpad.dev/, and gets wadl that tells it to make more requests to http://api.launchpad.dev/... [17:34] on EC2, when you run a test, launchpad starts up as launchpad.dev:8085 [17:34] the launchpadlib test makes a request to https://api.launchpad.dev:8085/ [17:34] and gets wadl that tells it to make requests to https://api.launchpad.dev/ [17:34] but there's no such host, and the test fails [17:35] I see. [17:35] I'd be disappointed if ec2 tests were running with a different configuration to the local test runner. === benji is now known as benji-lunch [18:01] gary, jml: i have 100% confirmed that ec2 environment differs _somehow_ from up-to-date local environment [18:02] such that the WADL served by ec2 sends you to api.launchpad.dev, but the WADL served by a local instance keeps you on api.launchpad.dev:8085 [18:02] leonardr, I guess moving from fear to unpleasant certainty is an incremental improvement. [18:04] i'm also fairly certain that the cached WADL is not contributing to the problem, because the problem persists even when i move the cached wadl out of the way on ec2 [18:04] leonardr, do you know if this difference exists on up-to-date stable? [18:04] jml: no, i don't [18:06] ideally i would be able to watch the wadl being generated on ec2, but i can't, because the problem only shows up during the launchpadlib tests. and a breakpoint in launchpad, triggered by the launchpadlib tests, will just hang, since launchpad is running in the background [18:08] yeah. interprocess bugs suck. [18:08] testing another hypothesis... [18:15] ok, even disabling the wadl cache altogether on ec2 doesn't get rid of the problem. so there is one specific request that goes to api.launchpad.dev:8085, and launchpad thinks "ok, what is my hostname? aha! it's api.launchpad.dev!" and generates the wadl accordingly === matsubara-lunch is now known as matsubara [18:30] mars, you might be interested in reviewing: https://code.edge.launchpad.net/~jml/launchpad/different-ec2-mail/+merge/32905 [18:30] mars, it's the first deliverable chunk of work from the branch we started at the epic === Ursinha-lunch is now known as Ursinha [18:38] hi === benji-lunch is now known as benji [18:41] i have a problem with deleting my launchpad-account ...... can anybody answer?? [18:43] Green00000: what's the problem? [18:43] hi. [18:45] i loged in first. [18:45] then i deactivated the account. [18:47] wait. [18:49] okay. [18:49] once again. [18:49] . [18:49] . [18:49] . [18:49] i log in launchpad. [18:50] then the point "change details" [18:51] down on the site [18:51] "Deactivate your account" [18:52] Green00000, https://answers.edge.launchpad.net/launchpad/+faq/968 might be helpful. [18:52] the message "Your account has been deactivated." [18:53] but it's just possible to login. [18:54] okay. [18:54] read. [18:54] but [18:54] .... [18:55] why can i log in any more?????? [18:56] Green00000, you mean, you can still log in even after deactivating? [18:56] (btw -- thx to jml.) [18:56] yes. [18:56] Green00000, I don't know why that's the case. It probably has something to do with Launchpad using the Ubuntu One account service. [18:58] i loged out and delete all cookies. [18:59] but the log in with my emailadress and the password is still working. [19:23] gary, jml: it's official. i get exactly the same error when i run launchpadlib on an unaltered 'stable' on ec2 [19:23] huh [19:23] well, my ec2 instance is *almost* ready to go... [19:24] mars, ping === jcsackett|afk is now known as jcsackett [19:24] so the other question is, why is it possible for anyone to land anything? [19:24] hi jcsackett [19:25] mars: you're oncall reviewer today, correct? [19:25] yeah, that question occurred to me [19:25] jcsackett, why yes, I am :) [19:26] * mars does not like that question [19:26] mars: awesome! i've got two mps that sinzui may be getting to, but indicated he didn't mind getting beaten to the punch, and i just realized the mp notices went out long enough go they may have been lost. https://code.edge.launchpad.net/~jcsackett/+activereviews [19:26] (about the ec2 landings) [19:26] mars: don't hate me. :-) [19:26] jcsackett, my bad, crossed messages [19:26] mars: cool. [19:27] jcsackett, I started https://code.edge.launchpad.net/~jcsackett/launchpad/unsubscription/+merge/32680 a few minutes ago [19:27] you will hate my nitpicks [19:27] sinzui: cool. [19:27] so, mars: only one mp. :-) [19:27] jcsackett, sure, I can review those. Head on over to #launchpad-reviews and add what you have to the queue [19:27] sinzui: i never hate your nitpicks. :-) [19:27] jcsackett, depends if I or sinzui gets to them first [19:28] gary: i have a hypothesis why other people have been landing things. if you run the full test suite it hangs, and after about 6 hours the ec2 instance silently shuts down. if someone is using the --merge option (or whatever it is, i don't use it), maybe the ec2 script interprets this silence as success? [19:29] I hope not leonardr. mars, any evidence to the contrary? ^^^ [19:30] and we don't have the problem in production because production servers don't have the :8085 trickery [19:30] ergh - lost with that. leonardr, your branch fails on stable ec2? Or just plain old stable ec2? [19:30] mars: plain old stable ec2 [19:31] there are test failures and a hang when running the launchpadlib tests [19:31] that is weird [19:31] leonardr, how about when you run just the one test? [19:31] mars: same thing [19:31] ec2 test -o '-t introduction.txt' [19:31] oh, start up a new ec2 instance just to run the one test? [19:31] i can try that [19:32] leonardr, it is introduction.txt that it hangs on so far? [19:32] mars: yes, there are test failures in other launchpadlib tests, but introduction.txt causes the hang [19:33] leonardr, two tests then: first, just introduction.txt. Next, the suite that introduction.txt is contained in. [19:33] ok [19:34] leonardr, don't bother with the second if introduction.txt alone hangs [19:34] mars: i'll test with stable? [19:34] leonardr, you don't have to [19:34] stable and devel don't drift that far [19:35] ok, but i'll test with the basic code instead of the code with my changes in it [19:35] and there is only moderate risk of you stepping on someone else's accident while trying this [19:35] right [19:35] leonardr, run with --attached if you want to get a better idea when the test finishes [19:36] instead of busy-waiting on your INBOX for the failure mail [19:36] ok [19:36] i predict there won't be a failure mail--i never got one before [19:36] well, if you run just that one test, it should be pretty obvious when it is hung :) [19:37] ... kind of. (I hope output buffering doesn't bite us here) === al-maisan is now known as almaisan-away [19:41] leonardr: ok, I think I have duped. I ran ./bin/test -vvt launchpadlib and launchpadlib/docs/introduction.txt has been sitting for about a minute. [19:41] gary, did you get any other failures? [19:41] no leonardr [19:41] gary: control-c and paste me the traceback [19:42] i kind of suspect there are 2 problems [19:42] leonardr: http://pastebin.ubuntu.com/479533/ [19:43] that doesn't look very wadllib-y [19:43] gary: run bin/test -vvt hosted-files.txt and see if that works [19:43] k [19:44] rockstar, I've used lp-submit and the m-p was created but I was redirected to the wrong url (https://code.edge.launchpad.net/1.0/~salgado/launchpad/upload-policy-utility/+merge/32911). it has a leading '1.0' [19:44] is that a known bug? [19:46] salgado, probably not a known bug, but I see why it would do that. [19:46] leonardr: it passed [19:46] this is with your branches, btw, leonardr [19:46] gary: yes! that's the problem i originally had on thursday (and, like you, i didn't have the wadl problem) [19:46] rockstar, should I report it against bzr or is this a plugin? [19:47] and i think that is because of the new launchpadlib--the test launchpad thinks it's launching a web browser [19:47] so I should try to dig into that bug, leonardr? [19:47] but there could be any number of causes, and it could even be caused by an inaccurate wadl file [19:48] gary: yes, please. put a breakpoint in the TestableLaunchpad constructor. coming up with more specific advice now [19:48] ok [19:49] hey all, what is the correct way to run a subset of the lp test suite? Is it just 'bin/test -m lp.module' ? [19:49] jam, use -t [19:49] (my suggestion) [19:49] gary_poster: in what way? [19:49] (can you give an actual invocation) [19:50] how does one set the status on a bug_task via launchpadlib? task.setStatus() doesn't seem to exist, and task.status = status gives me a HTTP 401 :( [19:50] ./bin/test -t launcpadlib [19:50] jam, I suggest searching for -t TEST in the ./bin/test --help output [19:51] dobey: how did you set up your Launchpad object? [19:51] salgado, bzr-pipes has an implementation of it. [19:51] gary_poster: you guys really need to play with the bzr selftest suite... this is rather, uh, clunky. :) [19:51] salgado, it might be a bzr bug, but let abentley sort that out. [19:51] jam, k :-) [19:51] leonardr: launchpad.Launchpad(creds, EDGE_SERVICE_ROOT, cachedir) [19:52] so far, I'm sitting at a couple of minutes, and I don't think I've actually seen tests being run yet [19:52] dobey: how did you get the creds? if they don't have write permission, then attempting to change the dataset will give you 401 [19:52] time bzr selftest -s bt.test__chk ... ran 50 tests in 1.4s [19:53] gary: ok, the section 'authorizing the request token' in launchpadlib.txt deserves to fail. at the very least, it prints out stuff like 'come back here and press enter', which isn't there anymore [19:53] gary: but i bet it's hanging there instead of printing stuff out [19:53] also not sure why there are 3 200MB instances of python running [19:53] jam, three instances when running bin/test? [19:53] mars: yes [19:53] might be the servers from different layers [19:54] leonardr: is task.status = status the correct way to do it? [19:54] dobey: yes [19:54] task.status = status; task.lp_save() [19:54] that's what I was thinking, mars, but not sure this is particularly productive. old ground. [19:54] mars: one is the librarian it seems [19:54] rockstar, are you suggesting that I file it against bzr-pipes? that seems weird -- the help for that command says "From: plugin "launchpad"" [19:54] gary_poster, yep [19:54] mars: two of them are 'python bin/test' [19:55] leonardr: ok, thanks [19:55] jam, ah, that is because the zope testrunner fires up subprocesses of itself while testing [19:55] salgado, that means you should file the bug on bzr then. [19:56] mars: it also seems to be doing stuff like 'branch-distro.py' [19:56] salgado, there are two implementations, one in bzr and one in bzr-pipes [19:56] is this all setup stuff? [19:56] Does it run on every test suite run? [19:56] jam, what test command did you run? [19:56] mars: bin/test -t lp.codehosting [19:56] leonardr: going to launchpad-foundations [19:56] ok [19:57] I'd *like* to just run the 1 test I just wrote [19:57] but I'm still sorting out how to ever run the test suite [19:57] I'm also seeing it say: [19:57] https://lists.ubuntu.com/archives/bazaar/2010q3/069549.html [19:57] jam, what was the file name of the test you just wrote? [19:57] sorry bad paste [19:57] lib/lp/codehosting/tests/test_lpserve.py [19:58] I also see my invocation saying it is running the 'canonical.testing.layers.BaseLayer' tests [19:58] which seems like they should be skipped by '-t' [19:58] moin [19:58] rockstar, I think in my case it's the one in bzr because I don't seem to have bzr-pipes installed. thanks for the help [19:58] did I type something wrong? [19:58] hi lifeless [19:58] lifeless: thank you very much for making 'bzr selftest' what it is today :) [19:58] jam: my pleasure [19:59] salgado, no prob. [19:59] jam, 'bin/test -t test_lpserve' or just 'bin/test -t lpserve' [19:59] mars: any idea how I can stop it gracefully? [19:59] ^C [19:59] and wait [19:59] seems to need waiting for a *long* time [20:00] yep [20:01] it did eventually stop, though [20:01] I don't wait; I press ^C multiple times [20:01] but it's either that or wait [20:01] any ideas why 'lp.codehosting' is running canonical.* tests? [20:02] I guess 19s to run the one test file isn't too bad [20:02] though 19s real time to 'Ran 4 tests ... in 7.3s' is a bit high [20:03] (the problem with -t is I'm guessing it has to load all possible tests, and then filter them, which is why bzr switched to '-s' for prefix matching, and only loading tests that could possibly match the pattern) [20:03] anyway, thanks mars and gary_poster I at least have it running [20:04] jam, np. You are right about the -t thing, discovery takes a while. IIRC discovery parses every doctest it finds, too [20:04] not optimal [20:06] I looked into fixing that, found the code, but no solution jumped out at me. [20:06] mars: so bzr went the route of using a custom TestLoader and modules that expose 'load_tests' (which is also added to python 2.7 and unittest2) [20:07] so it loads the root, which knows about loading children, and all check against the pattern to see if any of these children should be evaluated [20:07] sinzui: jc sackett pinged me, do you know what about ? [20:08] I think it was about the review of his branch [20:09] jam, makes sense, some adaptation of that may work for our pagetests too. [20:09] However, I don't know if our testrunner makes a distinction between load versus find [20:10] I know that for our pagetest suites our code does not make that distinction [20:10] lifeless: i just wanted to make sure i had answered your questions re: plus-participation. [20:11] jcsackett: ok, let me look up the response now [20:11] jcsackett: I tried to tab complete your name here, before but failed - sorry! (Thats why I asked sinzui :P) [20:11] lifeless: it's all good. [20:19] ok [20:19] so, I've put forward a possible algorithm to do this in two queries [20:20] if you liked the previous UI === lifeless changed the topic of #launchpad-dev to: Launchpad Development Channel | Week 1 of 10.09 | PQM is OPEN | firefighting: - | https://dev.launchpad.net/ | Get the code: https://dev.launchpad.net/Getting | On-call review in irc://irc.freenode.net/#launchpad-reviews [20:22] lifeless, was that to me? [20:22] jcsackett: yes [20:22] jcsackett: just now, in the MP [20:22] poolie: webapp flags is in devel now [20:22] gmb: ^ [20:24] lifeless: i think i like that, but the graph part goes by a little quickly (or may in fact go over my head). [20:25] oh, I missed a step, darn [20:26] sinzui: i've pushed up the changes on my subscription mp. [20:26] thanks [20:26] lifeless: that makes me feel a bit better. [20:32] updating in a sec [20:36] updated [20:37] flacoste: thank you [20:48] bac, sinzui: so official_codehosting where EXISTS (SELECT 1 FROM Branch JOIN ProductSeries ON (Branch.id = ProductSeries.branch) JOIN Product ON (ProductSeries.id = Product.development_focus) WHERE BranchType = HOSTED AND ProductId = )? [20:48] i mean it becomes [20:48] or can we consider a MIRRORED or REMOTE branch has officially codehosting? [20:49] flacoste, HOSTED only [20:49] sinzui: ack [20:57] jcsackett: does it make more sense now ? [20:58] lifeless: i think so; graph theory isn't my forte, so i'm sort of mulling it over in a terminal to get a handle on it. [20:58] ok [20:58] please do ping me [20:58] if you want to chat about it [20:58] lifeless: will do. probably shortly. :-P [20:58] sinzui: that actually gives us about ~2000 more official_codehosting projects :-) [20:59] sinzui: make that 4000! [20:59] sinzui: about the same number than we have projects officially using Launchpad for Bugs [20:59] yes. as back suspected when he learned we were counting it. He was pretty sure that users could not set the value over the last year [21:00] s/as back/as bac/ [21:01] sinzui: looking at https://lpstats.canonical.com/graphs/ProductsFlaggedOfficial/, I'd say they can't flag it since May [21:02] I would have though March, but May is close enough [21:02] thumper will be happy [21:04] flacoste, lets add a constraint product.active = TRUE [21:04] sinzui: ok [21:04] sinzui: 2000 less projects [21:05] We had a lot of project try launchpad. [21:05] lifeless: you want me to PM you about this or just carry on the conversation for all to see? [21:06] jcsackett: more eyes, more thoughts [21:06] I saw a few hundred projects with empty branches in my review of all projects. There never was code for a lot of projects [21:06] lifeless, works for me. [21:07] okay, lifeless, if i understand you right, you suggest we pull all teams at once, then pull all the relationships for those teams, and out of the resulting query sets map out the relationships. [21:08] so if we pull user in a, b, and c, and then pull that a is in b and c, and then that b is in c, we can build out the link from that. [21:09] right [21:09] user in a,b,c is one query [21:09] a in b,c and b in c is one query [21:10] but - the second query would be direct memberships only so it would look like [21:10] user in a,b,c [21:10] user in c c in b b in a [21:10] flacoste, I think the ProductsFlaggedOfficial graph is suspicious. Blueprints is not used as much as it is claimed to be used [21:10] as the two resultsets [21:11] wouldn't a in b,c and b in c be two queries? or are you thinking (in pseudo sql) something like "select team_participant, team, where team_participant is in [list_of_teams]" [21:14] well it won't be the team participation exploded table [21:14] it will be the direct table [21:14] uhm, looking [21:14] and yes, 'in' is operator [21:15] we want all the rows that directly list any of (user, a, b, c) as the member of a team [21:15] memberships = store.find(TeamMembership, TeamMembership.person in (user, a, b, c)) [21:16] print list(memberships) [21:16] [(user, c), (c, b), (b, a)] [21:16] # thats fiction, but pretty darn close to reality [21:17] we can actually do all of this in one query [21:17] I've been describing two to show the algorith, [21:23] mwhudson: you were right about the windmill error being bogus [21:27] so, lifeless, basically once we have that final dict you suggest walking through it to find the paths from user to indirect teams? seems like that could get expensive computationally in these pathalogical cases. [21:28] walk in the other direction [21:28] you have all the terminal points [21:28] they all walk directly to the user [21:28] bam [21:28] the api you have - 'find path to ' is a wonky api [21:29] we can just iterate this graph and spit out all in a tabular form all the paths we want to render [21:29] then in the template just loop on the paths rendering them [21:29] lifeless: it's very strange that [21:30] mwhudson: eparse [21:30] lifeless: the windmill error thing is very strange [21:30] yes, yes indeed [21:37] jcsackett: if we start at the user, and for every team they are in (direct connections in that graph), we start a path - [user, teamx], and then for each path we repeat that expansion - [[user, teamx], teamy] and so on [21:37] jcsackett: that will be fast - we don't permit cycles AIUI in the db [21:38] there may be multiple paths, but thats ok. when we're done we just tabulate and discard any duplicate terminal nodes [21:38] so we'll have [21:38] lifeless: AIUI == ? [21:38] [user, teamx] [21:38] As I Understand It [21:38] ah. [21:38] [user, teamx] [21:38] [user, teamx, teamy] [21:38] etc [21:39] len(path) !=2 => indirect path [21:39] lifeless: okay, i think i've got it. [21:39] oh final tweak I think - prefer the shortest paths when trimming - [21:39] [user, teamy] should win over [user, teamx, teamy] in the discard stage [21:39] lifeless: yeah, i sort of assumed that when you mentioned discards. [21:40] lifeless: i do think i like that better; it's worth a shot at least before basically killing the UI. [21:40] cool [21:40] I think for nearly all of LP perf problems we can do something like this [21:41] its been the experience [for most] issues in bzr anyhow [21:41] and bzr has a harder problem in many ways : no persistent database with hot disk caches :) [21:43] that does seem like a much harder issue. :-) === salgado is now known as salgado-afk [22:11] losa ping [22:11] I want to know what our current ssl session lifetime is set to [22:12] and also the SSLSessionCache setting [22:15] lifeless: SSLSessionCache shmcb:/var/run/apache2/ssl_scache(512000) [22:15] SSLSessionCacheTimeout 300 [22:18] thanks [22:18] rt'd [22:18] welcome [22:18] flacoste: rt 40918 [22:29] lifeless: bumped up [22:30] so what makes in_admin etc work [22:30] my new branch made a change that looked fine and works some of the time but not always [22:31] should one adapt to IPersonRoles? [22:36] lifeless: do you realise that it takes 30 minutes for a trivial branch to land on devel using PQM? [22:36] AFAICS much of that time is cleaning the working directory [22:36] yes [22:36] why does it take so long? [22:36] would like to fix [22:37] thumper: its doing a heavyweight branch [22:37] because we have calls that look at the bzr history but need to run in the chroot [22:37] if we do a lightweight checkout of the http readonly branch url, they would work [22:37] and we could bzr switch to do the commit [22:38] 'evening lifeless, thumper [22:39] hi jelmer [22:42] gary_poster: hi, can i ask you a couple of questions about buildout? === matsubara is now known as matsubara-afk [22:44] Segmentation fault in cron mail worries me [22:44] on pear [22:45] pear.. that's one of the importds isn't it? [22:45] yes [22:46] * rstat1 pokes salgado [22:48] gary_poster: nm, afk [22:56] anyone know where you get "zope.preferences.interfaces.IPreferenceGroup" from ? [22:56] I just did 'apt-get update' and now I can't run the test suite anymore without tracking down stuff like this [22:57] jam: Run 'make' [22:57] It's an egg that was added a few weeks ago. [22:57] You might also need to update-sourcecode, if you're really out of date. [22:58] wgrant: to give a fuller description, I ran apt-get update, which broke bzr-builder because it imported something bzr-builddeb didn't like, when I updated bzr-builder it broke my source code. when I merged devel, it broke because it was missing interfaces [22:58] wgrant: is this par for the course? [22:58] thumper: https://lpstats.canonical.com/graphs/BuilddLagProductionSupportedArch/ [22:58] (of doing development on launchpad) [22:59] jam: sometimes [22:59] jam: bzr 2.2 just landed in devel [22:59] jam: so you need to do ./utilities/update-sourcecode [22:59] jam: and I'd like to fix this up, move to totally deb dependencies, that sort of thing; however this isn't [yet] a widely held view. [22:59] jam: I think its stockholm syndrome. [23:00] thumper: https://lpstats.canonical.com/graphs/BuilddLagPPASupportedArch/ [23:00] lifeless: I think you need 1 dependency structure [23:00] I'm not sure that it has to be debs, since I don't really want apt-get update to break my dev environment each time [23:00] jam: I'm not sure why it would break your dev environment [23:00] but yes [23:00] (I need the latest firefox patch, and oh, my test suite won't run anymore) [23:00] lifeless: see above. It seems that we use the system bzr-builddeb? but the source tree bzr-builder? [23:01] jam: well, given we use windmill, we do have dependencies on firefox [23:01] jam: its a little magic, we'll use one if its available or an egg if its not. [23:02] s [23:02] whoops [23:02] lifeless: If the answer is "don't update your system until your current patch has been landed" I guess that would be a different answer [23:02] I realize it is a significantly more complex project. [23:02] jam: I get the impression thats what folk do. IMBW [23:02] but stuff like this is really pretty bad [23:02] jam: its got many more dependencies, code base isn't that different in size [23:03] I rarely find that an update breaks it. [23:03] Except on a dev series. [23:03] And even then it's normally the autosync that kills things. [23:04] thumper: https://lpstats.canonical.com/graphs/CodeRecipeBaseTypeCounts/20090818/20100818/ [23:04] lifeless: as an outsider, it isn't like I can change things. But I do find it strange that it is the current status quo [23:04] as you say, stockholm syndrome :) [23:04] jam: right [23:05] jam: we're improving the dev process at the moment via the release-features-when-done project [23:05] *sigh* and after all the update-sourcecode, etc. it is still broken [23:05] jam: once that is bedded in, other bits of friction will be bubbling to the top [23:05] jam: ok, current issue ? [23:05] "DeprecationWarning: please use 'debian' instead of 'debian_bundle' [23:06] check in aptitude that you have updated the lp deps [23:06] from bzrlib.plugins.builder import RecipeParser imports something from bzr-builddeb and builddeb complains [23:06] apt held-back that update for me for some reason [23:21] poolie: are you successfully running concurrent vm tests ? [23:22] in multiple vms? yes [23:22] \o/ [23:22] you might like to write that up [23:22] iwbn to automatically CoW-fork them [23:22] so i can have as many as i like [23:22] as well as your please-use-flags mail :) [23:22] but i haven't got there yet [23:22] flags is in devel how [23:22] *now* [23:22] thumper: https://devpad.canonical.com/~stub/ppr/lpnet/latest-daily-timeout-candidates.html [23:22] mm i have a draft of that but wanted it to actually be landed first [23:22] thanks for that [23:23] anytime [23:25] I have a big hairy patch to ec2test/remote.py that I would love to have reviewed. [23:26] and I have an issue with openid if anyone is interested :) [23:28] rstat1: What's the problem? [23:28] rstat1: you probably need to describe the issue [23:28] https://answers.edge.launchpad.net/launchpad-foundations/+question/120150 << This explains it quite well. [23:29] https://code.edge.launchpad.net/~jml/launchpad/different-ec2-mail/+merge/32905 [23:30] bac, sinzui: https://code.edge.launchpad.net/~flacoste/tuolumne-lp-configs/fixup-officical_codehosting [23:30] the jist of the matter is: authenication on a lp.dev instance i have on a Lucid VM is impossible. I get an oops. "DiscoveryFailure: No usable openid services found for https://testopenid.dev [23:30] It sounds like an Apache config issue. [23:31] Thats's what I'm thinking...https://testopenid.dev redirects to lp.dev and https://testopenid.dev/+openid coughs up a 503 [23:32] BUT my config for apache comes straight from the lp repos...save for a modifcation to only use one ip address. [23:32] jml: I saw it [23:32] jml: I think its great but a pain to review :( [23:34] rstat1: What't the 503? Just a normal Apache one? [23:34] flacoste: that branch looks good. i am not allowed to review it, though. [23:34] What does the Apache error log say? [23:34] flacoste: and thanks for doing it! [23:34] Yea its a normal 503...I'll go dig up the log. [23:34] bac, a losa need to review and deploy it [23:35] flacoste: right. i didn't know if you pasted just a FYI or wanted a review. [23:39] My apache log doesn't appear to have anything useful in it...just a bunch of debug crap from OpenSSL === rstat1 is now known as rstat1-brb [23:43] lifeless, yeah, I'm sorry about that. [23:44] lifeless, I'm not sure I could stand the pain of breaking it up into multiple patches though. [23:52] man, some of these failures are nuts [23:56] Hm, sourcepackagerecipebuild views don't really have unit tests, just leaky sourcepackagerecipe view tests. [23:59] oh [23:59] * lifeless hates on prejoins