[00:04] wgrant: Even worse block of SQL is strange. Running it by hand returns 3 columns, but only two turn up in list(results) [00:13] StevenK: What does the Python look like? [00:15] wgrant: Ugh, the diff is horrible [00:16] wgrant: I can pastebin the diff, but it's nigh on unreadable. Or I can pastebin the garbo's __call__ [00:17] The latter would be nice [00:17] wgrant: http://pastebin.ubuntu.com/1424454/ [00:18] StevenK: It looks like that SQL is all one big string [00:18] Which is not going to work very well [00:19] wgrant: I need to split it up? Postgres deals ... [00:19] StevenK: But Storm has no idea that there's going to be an extra column. [00:19] It needs to be two separate items in the findspec [00:19] wgrant: So (PackageUpload.id, SQL(...), SQL(...)) ? [00:19] Yes [00:20] Hmm, that's a little bit of a trap [00:20] But it makes sense [00:26] wgrant: I currently have seperate tests for searchable_names and searchable_versions, shall I pull those together too? [00:26] Might as well === slank is now known as slank_away [00:38] * wgrant plays buildbot roulette again [00:38] I wonder if you'll lose as hard today :-) [00:38] Hopefully not [00:38] These are more isolated changes [00:59] 1 failure so far... [04:06] wgrant: When you're finishing sharpening knives for buildbot, testrespository and/or subunit, https://code.launchpad.net/~stevenk/launchpad/populate-searchables-for-pu/+merge/138906 is ready for a second close-up. [04:09] Just fixing 18 doctests [04:09] will be a few minutes [04:19] wgrant: Where a few is ten or more? :-) [04:19] shh [04:36] Or more like 30 ... [04:41] The first 16 were easy :) [04:41] The last two are some odd double-escaping... [04:41] Haha [04:44] Ah [04:48] Hmm [04:48] The URL linkification regexp is the problem here [04:48] It's run over the HTML, not the text [04:48] But it pretends it's running over text === Ursinha is now known as Ursinha-afk [04:51] Hmmmmmm [04:52] It has historically works because & and ; are unreserved characters [04:52] But ' is now escaped as ', and # is not unreserved [04:52] I think the set() magic used by add{Source,Build,Custom} doesn't happen in the garbo job [04:52] But we don't care about the specific parsing of the structure of the URL [04:52] So I'm just going to pretend that # is unreserved too [04:52] StevenK: What do you mean? [04:52] wgrant: Consider ' 1780947 | libfile-finder-perl libfile-finder-perl | {0.53-1} [04:53] Ah [04:53] Ah [04:53] The source and binary have the same name, of course [04:53] Right [04:53] And our magic query doesn't do that [04:55] Might as well throw in a 'SELECT DISTINCT name FROM unnest([... the array expression ...]) ORDER BY name' or similar, I guess [04:55] In which bit? [04:56] Oh, around the array_to_string() [04:56] No, wait [04:56] Inside the array_to_string [04:56] unnest() is rather special [04:57] It converts an array into a set of rows [04:57] So you can perform operations on it as if it was a table [04:57] We already have array_to_string( (...) || (...) || (...) || (...)) [04:58] Right, but before you convert it to a string you want to make it unique and ordered. [04:59] ... I think I have the brackets right [05:00] array_to_string(SELECT DISTINCT name FROM unnest( [05:00] (SELECT array_agg( [05:01] ProgrammingError: syntax error at or near "SELECT" [05:01] LINE 2: array_to_string(SELECT DISTINCT name FROM unnest... [05:02] At that point you might as well use string_agg directly, I guess. SELECT string_agg(DISTINCT name ORDER BY name) FROM unnest(...) [05:05] Oh right [05:05] Atom is stupid [05:05] Feed content is *meant* to be double-escaped... [05:05] reference = u'binarypackage-102763 unique-from-factory-py-line3339-102754' [05:05] actual = u'unique-from-factory-py-line3339-102754 binarypackage-102763' [05:05] Bleh [05:05] I guess we do not care about the order at all, just as long as they're both there [05:06] Mmm [05:06] Ideally it would be ordered [05:06] And it's easy [05:06] That's from add{Source,Build,Custom} [05:06] Ah [05:07] Still easy [05:07] sorted() [05:07] done [05:07] :) [05:07] >>> ' '.join(set(['b']) | set(['a'])) [05:07] 'a b' [05:07] So I think it is sorted already [05:07] Just the test assumes SPR first [05:08] Oh, so the reference/actual are swapped? [05:10] So it would seem, because: [05:10] names = '%s %s' % ( [05:10] - upload.builds[0].build.source_package_release.name, bpr.name) [05:10] + bpr.name, upload.builds[0].build.source_package_release.name) [05:17] Blah [05:17] ./2012-12-06/OOPS-f4b0427a8f57ec8a0619d40b49fc93c8 exists on neem, but the string 'OOPS' does not [05:26] Oh, it does, just that less doesn't admit to it, which is handy [05:27] ProgrammingError: syntax error at or near "' '" [05:27] LINE 50: )), ' '), [05:27] * StevenK whimpers [06:01] Hmmmm [06:02] I *think* r15555 fixed bug 835645 [06:02] <_mup_> Bug #835645: DistroSeries:+queue timeout paginating < https://launchpad.net/bugs/835645 > [06:53] StevenK: Unlikely, why? [06:59] wgrant: Because r15555 changed get_all() to use a DRS [07:01] Hmm === frankban changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On-call reviewer: frankban | Firefighting: - | Critical bugs: ~160 [13:43] gmb: did you get your kanban issue fixed? === frankban_ is now known as frankban === Laney is now known as robert_ancell === robert_ancell is now known as Laney === rick_h_ changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On-call reviewer: frankban | Firefighting: - | Critical bugs: ~160 === rick_h_ changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On-call reviewer: frankban, rick_h | Firefighting: - | Critical bugs: ~160 === slank_away is now known as slank [14:58] rick_h_: mp for you, when you have a moment: https://code.launchpad.net/~jcsackett/launchpad/no-releases-for-projectmilestone/+merge/139221 [14:59] jcsackett: will do [15:07] jcsackett: r=me, but man I hate when something doesn't have what the interface says it has and it implements the interface [15:12] rick_h_: does it make you feel better that product_release *isn't* on the interface? [15:12] :-P === matsubara is now known as matsubara-lunch === Ursinha-afk is now known as Ursinha === matsubara-lunch is now known as matsubara === deryck is now known as deryck[lunch] [17:31] sinzui: thoughts on https://bugs.launchpad.net/launchpad/+bug/1088959 [17:31] <_mup_> Bug #1088959: launchpad.net crashes webkitgtk browsers. < https://launchpad.net/bugs/1088959 > [17:33] I will look into it. I think it is bogus. Midori and Epiphany are very reliable and I have not experienced any issues. [17:33] nods [17:34] sinzui: how's you today? very quiet [17:37] I have a bug just about fixed, but I got distracted a 403 when looking at code imports, bug 1089023 [17:37] <_mup_> Bug #1089023: Proprietary branches break code import listing <403> < https://launchpad.net/bugs/1089023 > [17:37] ah nice one to fix [17:43] rick_h_, do you have time to review https://code.launchpad.net/~sinzui/launchpad/allow-vcs-imports-to-rename-a-branch/+merge/139270 [17:44] sure thing sinzui [17:52] sinzui: r=me thanks [17:54] thank you rick_h_ === shadeslayer is now known as buildslayer [18:02] hm one of our scripts caused LP to return a 500... no bueno [18:02] timrc: burn that script, it's faulty clearly :P [18:02] rick_h_, clearly :) [18:03] rick_h_, how do I look up an oops again? ID OOPS-b69df532ee375ff926e1605527d0b7d6 [18:04] https://oops.canonical.com/ [18:04] so https://oops.canonical.com/?oopsid=OOPS-b69df532ee375ff926e1605527d0b7d6 [18:04] timrc: hmm, that change was reverted. [18:04] timrc: so that should be corrected now, but looks like you hit it while it was broken early this morning/overnight [18:05] that was fixed hours ago. [18:05] timrc: so maybe you can keep the script around a little longer since it was our fault [18:05] czajkowski, OK, the problems were reported to me while on vacation on the 10th [18:06] you guys should wait to introduce bugs when I'm not on vacation, jeez [18:06] shoot, but how will I meet my 'break timrc's stuff' quota for the year? [18:07] timrc: most odd but tis working now, it stopped last UK time yesterday and was fixed early UK time today === frankban changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On-call reviewer: rick_h | Firefighting: - | Critical bugs: ~160 [18:14] czajkowski, do you have an LP bug # handy by any chance? [18:14] timrc: we didnt log a bug this morning we just reverted the patch [18:14] what are you trying to do timrc ? [18:15] * czajkowski is also attempting to run out the door as past EOD but just so I can point you in the right direction [18:15] czajkowski, I'm trying to document what went wrong in our bug for the users affected by the regression [18:16] timrc: hmm there may be some confusion then, I assumed rick_h_ was referring to your oops which was like this mornings, where people could not create projects [18:16] what is your current issue [18:17] czajkowski, no, I think we're talking about the same thing... a user logged a bug saying as much and I wanted to respond with details of the problem... but if there was no bug filed against LP, that's fine [18:17] timrc: so it was a deploy that had a bug and was reverted. [18:17] there wasn't a bug file and the deploy is getting re-tested and worked on before being attempted again. [18:17] rick_h_, thanks === slank is now known as slank_away === deryck[lunch] is now known as deryck === slank_away is now known as slank === matsubara is now known as matsubara-afk [22:29] wgrant, StevenK, can you one you look at the pastebin in the last comment: https://bugs.launchpad.net/launchpad/+bug/1077351 [22:29] <_mup_> Bug #1077351: SourcePackageRecipeBuild:+index LocationError build < https://launchpad.net/bugs/1077351 > [22:58] wgrant: http://pastebin.ubuntu.com/1426332/ [22:59] wgrant, sinzui: http://www.youtube.com/watch?v=BgAlQuqzl8o [23:09] StevenK: http://pastebin.ubuntu.com/1426362/ [23:09] I didn't fix the indentation, but the code is right === slank is now known as slank_away [23:54] wgrant: TypeError: Expected unicode, found : '{' [23:55] wgrant: I guess I need to cast back to text[], I'm just not sure where [23:55] wgrant: SELECT array_agg(..)::text[] FROM (... at a guess? [23:56] and i thought i abused postgres as a hobby