[00:18] mwhudson, thumper: Isn't that recipe deletion work going to explode horribly if a build has succeeded and produced a SourcePackageRelease? [00:19] wgrant: i think you should ask abentley that question [00:19] wgrant: explode horribly is a bit drastic, oops perhaps [00:19] wgrant, I don't have enough data. [00:19] but I don't think any thing will explode [00:21] Well, it's the sort of object that is impossible to delete, and nulling the FK is dangerous, so there is probably no good solution. [00:21] wgrant, do you have any suggestions about which things should be deleted and which things should be nulled? [00:23] abentley: Deleting the SPRB for an SPR removes all indication of who uploaded the package. Having an SPRB hanging around without a recipe sounds like a recipe for trouble. And having a recipe hanging around without its branches also doesn't sound very good. === matsubara is now known as matsubara-afk [01:36] monring poolie :P [01:38] hi there [03:03] grr [03:03] AssertionError: result must be a Zope result object, not . [03:03] this is probably using a new ec2 test with an old branch :( [03:04] in particular: new ec2-test-remote [03:04] haaaaaaaate [03:21] mwhudson, My ec2 instance is no longer active but I didn't get any e-mail nor did my merge proposal get marked as merged. [03:21] cody-somerville: :( [03:21] that happens sometimes [03:23] errr... is anyone working on fixing it? [03:25] i don't think it's well understood [03:25] cody-somerville: you could run it attached with -p and see what happens at the end [03:25] so no one is working on it? Not very LEAN :P [03:32] cody-somerville: well more that i don't have the status of every infrastructure issue launchpad development faces embedded in my brain [03:33] I figured the fact that this bug has a very measurable cost to every time it occurs, I figured folks would be motivated to fix it. [03:35] actually, i think one potential cause has been fixed [03:35] so if it's happening again, more investigation has been required [05:23] OOPS-1571H345 [05:23] Can someone please give me a traceback for that one? [05:23] oops 1571H345 [05:23] oops OOPS-1571H345 [05:23] bah [05:23] mup is sad. [05:24] Or maybe only ubottu does them. [05:24] timeout [05:25] 20000.0 1 launchpad-main-master SELECT PackageUpload.archive, PackageUpload.changesfile, PackageUpload.date_created, PackageUpload.distroseries, PackageUpload.id, PackageUpload.pocket, PackageUpload.signing_key, PackageUpload.status FROM PackageUpload WHERE packageupload.distroseries = 103 AND packageupload.archive IN (1, 534) AND packageupload.status IN (0) ORDER BY PackageUpload.id DESC LIMIT 7 OFFSET 0 [05:26] lifeless: Was that rendering the index, or performing the accept? [05:26] +queue [05:26] /srv/launchpad.net/production/launchpad-rev-9191/lib/lp/soyuz/browser/../templates/distroseries-queue.pt [05:26] Line 19, Column 4 [05:26] - Expression: [05:26] Right, but which action was called? (alternatively just pastebin the traceback) [05:27] Hmmm. That's odd. [05:27] wgrant: patience kemosabe ;P [05:27] I'd say db locking issue [05:28] Ah. [05:28] that queury which I pasted took 20000 seconds and was interrupted [05:28] but it looks like a normally very fast query [05:28] I thought that was during an accept, though, which should not actually be rendering that at all. [05:28] Unless it was after the redirect. [05:28] its on +queue [05:28] so after the redirect, I think [05:28] +queue performs actions too, though. [05:28] oh [05:29] no args [05:29] If you POST to +queue, it will do stuff then redirect you back to +queue. [05:29] it was a post [05:29] So WTF is it trying to render anything... gah. [05:29] lifeless: Thanks. === almaisan-away is now known as al-maisan [08:08] anyone know how to get 'me' with launchpadlib ? [08:09] bah, I see it. [08:19] good morning [09:06] Morning [09:13] What's the difference between @cachedproperty and @property ? [09:18] jpds: @cachedproperty is only called once, its return value is cached [09:18] bigjools: I should so be using that for the mirror listings. [09:19] jpds: it comes with many caveats, you should have a pre-imp with someone about it [09:22] henninge: for now, I want to set up a pottery-capable branch in a project on staging. [09:22] henninge: if we can have the config change cowboyed in there, we can verify that pushing changes will generate the jobs we want. [09:23] henninge: it should produce triples of Job, BranchJob, and BuildQueue. [09:23] jtv: how do we see jobs? sql? [09:23] henninge: yes [09:24] Then on dogfood, we manually recreate those triplets. [09:24] jtv: have we figured out the branch pulling part? [09:25] I mean, getting the branch unto dogfood? [09:25] henninge: "unto"? Very biblical. [09:26] ;-) [09:26] yes, I read my scriptures in English atm ... ;) [09:26] The good news there is that we can create jobs referring to branch URLs on staging. The bad news is, we probably still need to give the slaves permission for that bit of traffic. [09:26] (But the URLs themselves are already usable) [09:27] That Gideon guy again? Goes around the world from hotel to hotel, and _always_ forgets his bible. [09:28] In Dallas he also forgot a Book of Mormon - which I only noticed on the last night ... [09:29] Personally I wouldn't pay any attention to the reading recommendations of someone who's this consistently sloppy. [09:29] Also, you'd think he'd know the thing by heart now. Why bring a bible on every single trip? [09:30] Get a new book, for God's sake! [09:32] jtv: How do you propose to reference branches on staging? [09:33] wgrant: IIRC I just tried it once and found that it worked. Production would work as well here though. [09:34] jtv: daily reconnect. I'll have to move that to some other time of the day ... [09:34] jtv: dogfood's config references production codehosting (ie. the branch prefix is lp:, not lp://staging/ or similar). [09:35] So any recipes will have lp:-prefixed branches. [09:35] henninge_: "at" + "curl" to your modem should do the trick once. Or cron + curl to make it repeatable. [09:35] wgrant: this feature deliberately generates http branches [09:35] URLs, I mean. === henninge_ is now known as henninge [09:36] jtv: Oh, right, I was thinking of recipes, which use lp: URLs. [09:37] wgrant: that's something I always forget to ask about. We implemented a way to ask for a specific schema (http by default) for this, and maybe recipe builds should just do the same. [09:37] jtv: Why? lp: works just fine? [09:37] s/?$/./ [09:37] wgrant: you just pointed out where it didn't [09:37] jtv: Well, dogfood is broken, so I don't think it can be used as a counterexample. [09:37] Not production, I know, but still valuable. [09:39] wgrant: predictable http URLs eliminate the "use whatever the lp: schema maps to in this case" concern as well. [09:43] henninge: do you happen to know any specific (and preferably small) branches on LP that pottery will work for? I'm using gedit at the moment. [09:44] Haven't yet verified that the pottery compatibility check and template generation actually work on it though. [09:44] jtv: I never looked for branches on Launchpad [09:45] I used gimp, though (apt-get source) because it has multiple templates. [09:45] henninge: to copy that branch to staging, you can bzr push -d lp:gedit lp://staging/~jtv/my/branch --use-existing-dir [09:45] henninge: shall I start a wiki page for the staging/dogfood testing? [09:45] jtv: that would be great [09:46] henninge: and once we have it, maybe you can add a simple recipe for checking that a branch is suitable? [09:46] jtv: it's supposed to be any intltool branch. [09:48] henninge: oh, that's nice—I thought it was only the more recent intltool setups for now. In any case, it would be nice to know for sure. If the code decides not to generate for a particular branch, it doesn't say why. [09:49] jtv: you no more about different versions of intltool setup than I do, then. [09:50] henninge: unlikely. :) But there was mention of multiple possible setups in Belgrade, and how we were aiming for only the most modern setup initially. [09:51] jtv: the best way to find out is to try it out ... ;-) [09:52] henninge: that doesn't tell me what the different setups are, and trying them all out would probably not be the best way there. [09:53] I didn't manage to find a branch that Just Worked. [09:53] I had to hack GETTEXT_PACKAGE into configure.ac or something like that. [09:54] jtv: so, there is only one supported setup, then. [09:57] wgrant: speaking as a complete n00b on this subject, doesn't that default to autoconf's regular notions of what package it's setting up? [09:58] jtv: Not when pottery is grepping through it, AFAICT. [09:58] But I didn't look hard. [09:58] I just looked at the code and poked things until it worked. [09:58] wgrant: so that may well be a bug in pottery? [09:58] jtv: I try to remain blissfully ignorant of autofoo. [09:58] Well, sorely missing feature anyway :) [09:59] wgrant: funny how people think of drugs as things that make you stupid, when they actually are a way to obtain bliss without ignorance [09:59] Heh. [09:59] wgrant: a bit like saying "if you think the glass is half empty, you're a pessimist" when in reality it's just being forward-thinking. [10:07] henninge: first piece of page is up on the wiki. https://dev.launchpad.net/Translations/GenerateTemplatesOnTestServers [10:07] I've renamed the one for local machines from Build[...] to Generate[...] to avoid confusion. [10:08] (I love how changes "to avoid confusion" always create immediate confusion no matter how appropriate they may be) [10:14] wgrant: by the way... you mentioned how dogfood refers to production codehosting. I guess that also means we must be careful not to push test branches to dogfood! [10:15] jtv: Well, if you tried it would fail, since there isn't even a bazaar.dogfood.launchpad.net. [10:20] noodles775: Hi. I want to present package diffs on +queue. Do you have any UI ideas? [10:23] wgrant: I'd suggest creating something (with balsamiq?, but up to you), and then getting feedback from the people like StevenK/ScottK (but cc'ing the dev list)? [10:26] wgrant: It may not be relevant, but we started collecting use-cases etc., for the queue page during 3.0, but never got the time to do anything with it. https://dev.launchpad.net/SoyuzDistroSeriesQueuePage [10:27] But if you think it's worthwhile, you could add a use-case there too. [10:30] wgrant: but if it's a very straight-forward change, and you already have a good knowledge of the use-cases for the queue page, just a simple mockup will be perfect (balsamiq or screenshot). [10:34] noodles775: Yeah, it's a really simple change. The data is all there already, just not exposed anywhere. I plan to just add another row to the upload file table linking to the diff -- mainly wondering about the text. [10:41] View the [link]difference from the previous package[/link]? Or simpler, without the "View the"? What had you thought of so far? [10:41] noodles775: The other files just give a filename and its size. [11:04] Morning, all. [11:06] bigjools: hi [11:06] deryck: good morning [11:07] jml: helleau [11:07] bigjools: let's talk about timeouts. [11:08] jml: there's already a timeout test in test_manager.py and it doesn't use clock [11:08] but happy to talk more and learn! [11:08] bigjools: it's probably wrong :) [11:08] * jml brandishes the confidence of the ignorant [11:09] hehe [11:09] yeah [11:09] I have found a load of bugs in the manager tests though :/ [11:09] it's not wrong per se, but why wait five seconds when you can wait almost none [11:09] jml: I agree [11:10] we can use a clock for this, but I need to page in the code again [11:11] jml: notice how test_resumeHost_timeout uses addErrBack [11:11] so if the code doesn't fail as expected, the test still passes :) [11:12] :( [11:12] and the config doesn't get popped .... but, all easy to fix [11:12] :( [11:12] I wrote assertFailure for precisely this reason. [11:12] or maybe I didn't, maybe someone else did [11:15] jml: so we can use assertFailure instead of assertIsInstance( ... [11:15] yeah, d = self.slave.resumeSlave() [11:15] d = self.assertFailure(d, ProcessTerminated) [11:15] d.addBoth(lambda ignored: config.pop) [11:15] return d [11:16] actually, hmm [11:16] nope, addCleanup FTW :) [11:16] awesome [11:16] good. because the addBoth I described was buggy :) [11:16] lol [11:16] yes, it is :) [11:17] anyway it's not returning Failure any more [11:17] there's that three-tuple with the stdout/err/exit code [11:18] oh right. [11:18] that kind of makes sense though, doesn't it? [11:19] yes it's what we want [11:19] I'm nearly done with the tests now [11:19] and if we can improve the timeout one to use clock, that'd be awesomw [11:20] so I figured it out [11:20] reactor implements a clock interface [11:20] so does twisted.internet.task.Clock [11:21] make clock an optional parameter to whatever is doing the .callLater() calls [11:21] pass in a t.i.task.Clock from your tests [11:21] and then call clock.advance(seconds) to magically go forward in time [11:21] schweet [11:22] and then, when clock isn't passed in, default to using the reactor. [11:23] lp.services.twistedsupport.tests.test_task has some examples. [11:23] wouldn't it be simpler to pass in a reactor [11:23] cool, I'll slap that in when I get the rest of the tests passing :) [11:23] then you can modify that, and do controlled interactions of other sorts too [11:24] jml: ^ bigjools: ^ [11:24] a small decorator would let you pass in the installed reactor with a custom clock [11:25] lifeless: sounds OTT for this test, but I can lookl [11:25] thanks [11:25] http://jcalderone.livejournal.com/51888.html suggests passing in a reactor to things, FWIW [11:26] lifeless: that's what I'm describing. [11:26] jml: it didn't sound like it. [11:26] didn't to me either [11:26] jml: it sounds like you were suggesting passing in a IHasClock, which wouldn't implement callLayer etc [11:27] lifeless: uaoesnthuiaoesndaoe-ucaonseiudht [11:27] jml: EPARSE [11:27] lifeless: t.i.task.Clock implements callLater [11:27] lifeless: reactor implements callLater [11:27] oh wow [11:28] jml: perhaps you are describing it in a round-about way, or perhaps we mean something different. [11:29] if we agree that jcalderone's blog post sounds good, we can assume violent agreement and move on [11:30] * jml does so [11:37] * bigjools bitches about spawnProcess's stupid arguments [12:24] jml: clock.advance FTW! [12:25] bigjools: sweet [12:26] jml: interested in reviewing this if you have time. I don't mind if you want to punt. [12:26] err there should be a "?" in there somewhere ... [12:27] bigjools: if I do, it'll be later in the day === al-maisan is now known as almaisan-away === almaisan-away is now known as al-maisan [12:53] bac, i am recreating your error and i noticed that i am using the system httplib2 (0.4.0), not the 0.6.0 packaged with launchpad [12:54] i don't see how that could be causing the problem, but it's a problem i don't understand right at the point of the error [12:56] are you also using 0.4.0? === mrevell is now known as mrevellunch === salgado-afk is now known as salgado [13:54] bac, because of the 0.4.0 problem i can't see what's happening in httplib2. i'm going to put off work on this until i hear from you [13:58] leonardr: i'm not sure which version i was using. it should be in the traceback. let me find that paste... [13:58] i didn't see it [13:59] because your error didn't happen in httplib2 [13:59] i'll paste mine [13:59] i don't get as far as you [13:59] oh, you're right, httplib2 was not involved in the traceback [14:00] bac, http://pastebin.ubuntu.com/419239/ [14:01] leonardr: well, i see you're not using the LP version of lazr.restfulclient either [14:02] bac: i get the same error when i do. use-0.6.0 was an attempt at putting a httplib2>=0.6.0 requirement in lazr.restfulclient itself, in addition to the launchpad one [14:02] leonardr: oh [14:03] File "lib/lp/registry/tests/../doc/launchpadlib/lp-proj.txt", line 35, in lp-proj.txt [14:03] Failed example: [14:03] print httplib2.__file__ [14:03] Differences (ndiff with -expected +actual): [14:03] + /home/bac/launchpad/lp-sourcedeps/eggs/httplib2-0.6.0-py2.5.egg/httplib2/__init__.pyc [14:03] so i am picking up the correct one [14:03] aargh [14:05] bac: why would i be picking up the site-packages 0.4 version? [14:06] leonardr: i don't know. i recently fought some problems and it was caused b/c i had an old storm package in site-packages and it was getting it [14:06] sounds like a foundations issue to me. :) === mrevellunch is now known as mrevell [14:15] yeah, if only anyone who knew about this stuff was around [14:18] bac: ah, i've just got an egg file lying around in my site-packages [14:18] it's not even unzipped [14:18] $#%!$#5 [14:18] leonardr: you conjured up gary_poster quite nicely [14:19] * gary_poster will not look for trouble, but will be happy to help if needed [14:20] well, let's see what happens now [14:25] bac: i got a little further. now getting AttributeError: 'Parameter' object has no attribute 'options' [14:25] which could indicate a problem with the wadl [14:51] bac, do me a favor [14:52] put a breakpoint in lazr.restfulclient resource.py, right before send_as_is_params is defined [14:52] or rather, have it print out this value: [14:52] [x.name, x.options for x in params] [14:52] bac: dammit, nm [14:52] i'm using an old wadllib [14:53] i must have accidentally installed the launchpadlib ubuntu package or something [14:58] bac: ok, i can now duplicate your error [14:59] progress. [15:01] bac: if i had to guess i'd say that request is going into the xml-rpc request handler, not the web service request handler === jtv1 is now known as jtv [15:08] bac: ok, here's the problem [15:08] (Pdb) method [15:08] 'get' [15:08] (Pdb) self.getAcceptableMethods(environment) [15:08] ['GET', 'HEAD', 'POST', 'PATCH', 'PUT', 'DELETE', 'OPTIONS'] [15:08] (Pdb) method in self.getAcceptableMethods(environment) [15:08] False [15:14] so it's just case? [15:39] danilos: We are dealing with the current behaviour for pofile export to replace the plural information with that information from the language record, right? [15:45] bac: yes. i believe if the request goes all the way through httplib2, it gets uppercased [15:47] danilos: only, I cannot see where that is happening. [15:49] but since wsgi_intercept handles the request, that code doesn't run [15:51] bac, if i do a new release of lazr.restfulclient, will you integrate it into launchpad? [15:51] i think l.r is the place to fix this [15:51] leonardr: sure [15:52] henninge, right [15:52] henninge, let me take a look [15:58] henninge, gettext_po_parser.py look for getRawHeader() 'plural-forms' key handling [15:58] danilos: I have been there ... [15:59] getRawContent === bac` is now known as BradCrittenden === BradCrittenden is now known as bac [16:00] danilos: but that is what POHeader parsed originally [16:02] danilos: I think its here: [16:02] lib/lp/translations/model/pofile.py:1723: number_plural_forms = None [16:02] lib/lp/translations/model/pofile.py:1731: number_plural_forms = self._pofile.language.pluralforms [16:02] lib/lp/translations/model/pofile.py:1735: translation_header.number_plural_forms = number_plural_forms [16:02] henninge, sounds right :) [16:28] bigjools, hello [16:32] bac: i think this would be a better solution, since normally lazr.restfulclient + wsgi_intercept doesn't have the problem [16:32] http://pastebin.ubuntu.com/419325/ [16:32] put that in your launchpad branch === al-maisan is now known as almaisan-away === salgado is now known as salgado-lunch === beuno is now known as beuno-lunch === matsubara is now known as matsubara-lunch [17:57] Night all === salgado-lunch is now known as salgado === gary_poster is now known as gary-lunch [18:28] wgrant, is there anything that would prevent https://code.edge.launchpad.net/~wgrant/launchpad/emailauthentication.txt-2.6-fix/+merge/23449 from landing? I'd be happy to take it from there and do the changes suggested by Michael if you don't have time for it === beuno-lunch is now known as beuno === gary-lunch is now known as gary_poster [19:36] g'night all === fjlacoste is now known as flacoste === matsubara-lunch is now known as matsubara === almaisan-away is now known as al-maisan === al-maisan is now known as almaisan-away === Ursinha_ is now known as Ursinha [22:19] morning === salgado is now known as salgado-afk [22:45] salgado-afk: noodles wanted a bug reference for the Python bug. [22:46] salgado-afk: I don't think one exists, so I was digging deeper, but then uni caught up with me. === matsubara is now known as matsubara-afk