/srv/irclogs.ubuntu.com/2012/12/11/#launchpad-dev.txt

StevenKwgrant: Even worse block of SQL is strange. Running it by hand returns 3 columns, but only two turn up in list(results)00:04
wgrantStevenK: What does the Python look like?00:13
StevenKwgrant: Ugh, the diff is horrible00:15
StevenKwgrant: I can pastebin the diff, but it's nigh on unreadable. Or I can pastebin the garbo's __call__00:16
wgrantThe latter would be nice00:17
StevenKwgrant: http://pastebin.ubuntu.com/1424454/00:17
wgrantStevenK: It looks like that SQL is all one big string00:18
wgrantWhich is not going to work very well00:18
StevenKwgrant: I need to split it up? Postgres deals ...00:19
wgrantStevenK: But Storm has no idea that there's going to be an extra column.00:19
wgrantIt needs to be two separate items in the findspec00:19
StevenKwgrant: So (PackageUpload.id, SQL(...), SQL(...)) ?00:19
wgrantYes00:19
StevenKHmm, that's a little bit of a trap00:20
StevenKBut it makes sense00:20
StevenKwgrant: I currently have seperate tests for searchable_names and searchable_versions, shall I pull those together too?00:26
wgrantMight as well00:26
=== slank is now known as slank_away
* wgrant plays buildbot roulette again00:38
StevenKI wonder if you'll lose as hard today :-)00:38
wgrantHopefully not00:38
wgrantThese are more isolated changes00:38
wgrant1 failure so far...00:59
StevenKwgrant: 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:06
wgrantJust fixing 18 doctests04:09
wgrantwill be a few minutes04:09
StevenKwgrant: Where a few is ten or more? :-)04:19
wgrantshh04:19
StevenKOr more like 30 ...04:36
wgrantThe first 16 were easy :)04:41
wgrantThe last two are some odd double-escaping...04:41
StevenKHaha04:41
wgrantAh04:44
wgrantHmm04:48
wgrantThe URL linkification regexp is the problem here04:48
wgrantIt's run over the HTML, not the text04:48
wgrantBut it pretends it's running over text04:48
=== Ursinha is now known as Ursinha-afk
StevenKHmmmmmm04:51
wgrantIt has historically works because & and ; are unreserved characters04:52
wgrantBut ' is now escaped as ', and # is not unreserved04:52
StevenKI think the set() magic used by add{Source,Build,Custom} doesn't happen in the garbo job04:52
wgrantBut we don't care about the specific parsing of the structure of the URL04:52
wgrantSo I'm just going to pretend that # is unreserved too04:52
wgrantStevenK: What do you mean?04:52
StevenKwgrant: Consider ' 1780947 | libfile-finder-perl libfile-finder-perl               | {0.53-1}04:52
wgrantAh04:53
wgrantAh04:53
wgrantThe source and binary have the same name, of course04:53
StevenKRight04:53
StevenKAnd our magic query doesn't do that04:53
wgrantMight as well throw in a 'SELECT DISTINCT name FROM unnest([... the array expression ...]) ORDER BY name' or similar, I guess04:55
StevenKIn which bit?04:55
StevenKOh, around the array_to_string()04:56
StevenKNo, wait04:56
wgrantInside the array_to_string04:56
wgrantunnest() is rather special04:56
wgrantIt converts an array into a set of rows04:57
wgrantSo you can perform operations on it as if it was a table04:57
StevenKWe already have array_to_string( (...) || (...) || (...) || (...))04:57
wgrantRight, but before you convert it to a string you want to make it unique and ordered.04:58
StevenK... I think I have the brackets right04:59
StevenK            array_to_string(SELECT DISTINCT name FROM unnest(05:00
StevenK            (SELECT array_agg(05:00
StevenKProgrammingError: syntax error at or near "SELECT"05:01
StevenKLINE 2:             array_to_string(SELECT DISTINCT name FROM unnest...05:01
wgrantAt that point you might as well use string_agg directly, I guess. SELECT string_agg(DISTINCT name ORDER BY name) FROM unnest(...)05:02
wgrantOh right05:05
wgrantAtom is stupid05:05
wgrantFeed content is *meant* to be double-escaped...05:05
StevenKreference = u'binarypackage-102763 unique-from-factory-py-line3339-102754'05:05
StevenKactual    = u'unique-from-factory-py-line3339-102754 binarypackage-102763'05:05
StevenKBleh05:05
StevenKI guess we do not care about the order at all, just as long as they're both there05:05
wgrantMmm05:06
wgrantIdeally it would be ordered05:06
wgrantAnd it's easy05:06
StevenKThat's from add{Source,Build,Custom}05:06
wgrantAh05:06
wgrantStill easy05:07
wgrantsorted()05:07
wgrantdone05:07
wgrant:)05:07
StevenK>>> ' '.join(set(['b']) | set(['a']))05:07
StevenK'a b'05:07
StevenKSo I think it is sorted already05:07
StevenKJust the test assumes SPR first05:07
wgrantOh, so the reference/actual are swapped?05:08
StevenKSo it would seem, because:05:10
StevenK         names = '%s %s' % (05:10
StevenK-            upload.builds[0].build.source_package_release.name, bpr.name)05:10
StevenK+            bpr.name, upload.builds[0].build.source_package_release.name)05:10
StevenKBlah05:17
StevenK./2012-12-06/OOPS-f4b0427a8f57ec8a0619d40b49fc93c8 exists on neem, but the string 'OOPS' does not05:17
StevenKOh, it does, just that less doesn't admit to it, which is handy05:26
StevenKProgrammingError: syntax error at or near "' '"05:27
StevenKLINE 50:         )), ' '),05:27
* StevenK whimpers05:27
StevenKHmmmm06:01
StevenKI *think* r15555 fixed bug 83564506:02
_mup_Bug #835645: DistroSeries:+queue timeout paginating <lp-soyuz> <queue-page> <timeout> <Launchpad itself:Triaged> < https://launchpad.net/bugs/835645 >06:02
wgrantStevenK: Unlikely, why?06:53
StevenKwgrant: Because r15555 changed get_all() to use a DRS06:59
wgrantHmm07:01
=== frankban changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On-call reviewer: frankban | Firefighting: - | Critical bugs: ~160
bacgmb: did you get your kanban issue fixed?13:43
=== 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
jcsackettrick_h_: mp for you, when you have a moment: https://code.launchpad.net/~jcsackett/launchpad/no-releases-for-projectmilestone/+merge/13922114:58
rick_h_jcsackett: will do14:59
rick_h_jcsackett: r=me, but man I hate when something doesn't have what the interface says it has and it implements the interface15:07
jcsackettrick_h_: does it make you feel better that product_release *isn't* on the interface?15:12
jcsackett:-P15:12
=== 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]
czajkowskisinzui: thoughts on https://bugs.launchpad.net/launchpad/+bug/108895917:31
_mup_Bug #1088959: launchpad.net crashes webkitgtk browsers. <Launchpad itself:New> < https://launchpad.net/bugs/1088959 >17:31
sinzuiI will look into it. I think it is bogus. Midori and Epiphany are very reliable and I have not experienced any issues.17:33
czajkowskinods17:33
czajkowskisinzui: how's you today? very quiet17:34
sinzuiI have a bug just about fixed, but I got distracted a 403 when looking at code imports, bug 108902317:37
_mup_Bug #1089023: Proprietary branches break code import listing <403> <branches> <regression> <sharing> <Launchpad itself:Triaged> < https://launchpad.net/bugs/1089023 >17:37
czajkowskiah nice one to fix17:37
sinzuirick_h_, do you have time to review https://code.launchpad.net/~sinzui/launchpad/allow-vcs-imports-to-rename-a-branch/+merge/13927017:43
rick_h_sure thing sinzui17:44
rick_h_sinzui: r=me thanks17:52
sinzuithank you rick_h_17:54
=== shadeslayer is now known as buildslayer
timrchm one of our scripts caused LP to return a 500... no bueno18:02
rick_h_timrc: burn that script, it's faulty clearly :P18:02
timrcrick_h_, clearly :)18:02
timrcrick_h_, how do I look up an oops again? ID OOPS-b69df532ee375ff926e1605527d0b7d618:03
rick_h_https://oops.canonical.com/18:04
rick_h_so https://oops.canonical.com/?oopsid=OOPS-b69df532ee375ff926e1605527d0b7d618:04
rick_h_timrc: hmm, that change was reverted.18:04
rick_h_timrc: so that should be corrected now, but looks like you hit it while it was broken early this morning/overnight18:04
czajkowskithat was fixed hours ago.18:05
rick_h_timrc: so maybe you can keep the script around a little longer since it was our fault18:05
timrcczajkowski, OK, the problems were reported to me while on vacation on the 10th18:05
timrcyou guys should wait to introduce bugs when I'm not on vacation, jeez18:06
rick_h_shoot, but how will I meet my 'break timrc's stuff' quota for the year?18:06
czajkowskitimrc: most odd but tis working now, it stopped last UK time yesterday and was fixed early UK time today18:07
=== frankban changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On-call reviewer: rick_h | Firefighting: - | Critical bugs: ~160
timrcczajkowski, do you have an LP bug # handy by any chance?18:14
czajkowskitimrc: we didnt log a bug this morning we just reverted the patch18:14
czajkowskiwhat are you trying to do timrc ?18:14
* czajkowski is also attempting to run out the door as past EOD but just so I can point you in the right direction18:15
timrcczajkowski, I'm trying to document what went wrong in our bug for the users affected by the regression18:15
czajkowskitimrc: 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 projects18:16
czajkowskiwhat is your current issue18:16
timrcczajkowski, 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 fine18:17
rick_h_timrc: so it was a deploy that had a bug and was reverted.18:17
rick_h_there wasn't a bug file and the deploy is getting re-tested and worked on before being attempted again.18:17
timrcrick_h_, thanks18:17
=== 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
sinzuiwgrant, StevenK, can you one you look at the pastebin in the last comment: https://bugs.launchpad.net/launchpad/+bug/107735122:29
_mup_Bug #1077351: SourcePackageRecipeBuild:+index LocationError build <oops> <recipe> <soyuz-build> <Launchpad itself:In Progress by sinzui> < https://launchpad.net/bugs/1077351 >22:29
StevenKwgrant: http://pastebin.ubuntu.com/1426332/22:58
StevenKwgrant, sinzui: http://www.youtube.com/watch?v=BgAlQuqzl8o22:59
wgrantStevenK: http://pastebin.ubuntu.com/1426362/23:09
wgrantI didn't fix the indentation, but the code is right23:09
=== slank is now known as slank_away
StevenKwgrant: TypeError: Expected unicode, found <type 'str'>: '{'23:54
StevenKwgrant: I guess I need to cast back to text[], I'm just not sure where23:55
StevenKwgrant: SELECT array_agg(..)::text[] FROM (... at a guess?23:55
mwhudsonand i thought i abused postgres as a hobby23:56

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!