/srv/irclogs.ubuntu.com/2012/06/29/#launchpad-dev.txt

StevenKwgrant: https://code.launchpad.net/~stevenk/launchpad/rbsj-generalise/+merge/11268402:31
StevenKwgrant: Can haz review?04:01
wgrantStevenK: Looks good04:10
wgrantOh04:12
wgrantIt's docutils04:12
wgrantThat's why WADL generation is so slow.04:12
wgrantIt passes all the docs through docutils04:12
* wgrant headdesks04:12
StevenKHaha04:12
StevenKTrying to speed up make?04:12
wgrantYeah04:25
wgrantRemoving docutils speeds it up by about 80%04:25
wgrantBut I don't think we can just stop docutilsing :(04:26
StevenKwgrant: http://pastebin.ubuntu.com/1065497/05:36
wgrantStevenK: Good start, although it doesn't look liek it actually unsubs yet05:40
StevenKIt does not, no.05:44
StevenKI need help with that bit, since RASJ.run() seems to use BTF for everything.05:45
wgrantcjwatson_: I don't quite understand the reason for the divergent paths in lib/lp/soyuz/scripts/packagecopier.py. Shouldn't it just be defaulting series to the one on the SPPH, with no other differences?05:45
wgrantStevenK: Right. Initially you could just loop through the branches and call Branch._checkBranchVisibleByUser. Once we redefine branch security in terms of the new access schema, we can migrate to something better.05:47
wgrantUsing the slow awful APIs isn't so bad for branches, since there are very few private ones.05:47
StevenKwgrant: for branch in self.branches: for sub in branch.subscribers: branch._checkBranchVisibleByUser(sub) does not seem full of win and puppies.05:51
StevenKsub.person, but details05:51
wgrantHmm05:53
wgrantSo05:53
wgrantWe need this for revocation from +sharing05:53
wgrantIt is perhaps best to do this straight against the new access schema, since we'll hopefully have that populated early next week.05:54
wgrantStevenK: So you'll want to prepare this branch, using something almost identical to the BugTaskFlat query, but keep it on ice until all the garbo stuff is done next week05:55
StevenKwgrant: All I'm saying that is going to be slow and horrible. If it's going to be replaced after branch.access_grants is populated, then I withdraw my objection, since it should be shortlived.05:55
wgrantStevenK: But the job isn't actually useful until we're using branch.access_grants, so it can just use that frokm the start05:55
StevenKRight05:56
StevenKSo I should land the branch.aag garbo job? :-)05:56
wgrantStevenK: Not until the unsubscribe fix is deployed everywhere05:57
StevenKwgrant: Which I wanted to deploy this morning and you told me to wait :-P05:58
wgrantStevenK: buildbot will be done in half an hour, you can deploy then :)05:59
wgrantIf you had explained your reasoning for wanting to deploy urgently this morning, we could have.05:59
StevenKwgrant: I had forgotten the branch.unsubscribe fix was blocking the garbo job. :-(06:00
StevenKRight, buildbot done06:19
=== almaisan-away is now known as al-maisan
=== matsubara-afk is now known as matsubara
StevenKwgrant: Do we want to wait for Europeans to QA or polish off the QA?07:32
jelmerStevenK: jam and mgz seem to be quite keen on doing their own, to see what it's like07:37
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
adeuringgood morning07:46
StevenKjelmer: Feel free. I'd like to deploy at least up to r1552007:47
=== jml` is now known as jml
gmbjam: http://oo00.eu/07:51
jamStevenK: so we qa'd are own, but the 15518 is currently blocked because the MP's I've tried to lookat are unable to load their diffs from the librarian07:56
=== mthaddon` is now known as mthaddon
StevenKjam: bzr di -r ? :-)08:11
jamStevenK: the issue is you can't load a page like: https://code.qastaging.launchpad.net/~gz/bzr/2.4_robust_logging_714449/+merge/8403508:12
jambecause it thinks there was a diff generated for the MP08:12
jamwhich should be sitting in the librarian08:12
jambut the librarian id is for production08:12
jamand doesn't exist on qastaging08:13
jamso we're trying to force a new build08:13
jam(by pushing to an old branch, and then running the scanner jobs)08:13
StevenKjam: Right, so are you guys happy to beg gmb how to put up a deployment request?08:16
jamStevenK: that would be good for us, yes08:16
StevenKjam: I'm happy enough to do it as well -- but if gmb has it covered, that works for me.08:17
jamjam: I'd like to expose our team to it, though we may need a bit more guidance if there are bits that gmb is unclear on08:18
gmbStevenK, You assume I've ever done one; I haven't. Usually an Aussie has done the work before I come online :)08:18
StevenKHaha08:18
StevenKI'm happy to have a G+ hangout or something to walk all of you through it08:18
gmbStevenK, That sounds like a good idea.08:19
StevenKgmb: You're there in person, organise it and tell me where to be. :-)08:20
=== cjwatson_ is now known as cjwatson
cjwatsonwgrant: It seemed kind of strange to go through series.getSourcePackage(spn).latest_published_component when I could just use source.component.  And there are different numbers of checks needed in each case, too.  I tried consolidating the two branches but it wasn't clear that it actually made things any more readable.08:35
cjwatsonwgrant: Is your concern purely style, or do you think I made a semantic mistake?08:35
jamStevenK: we've managed to QA up to 15520, so I think we're ready to chat about deployment. I think gmb is setting up the hangout now.08:51
StevenKjam: Okay, sounds excellent.08:55
StevenKgmb: Please use my personal G+ account08:55
gmbStevenK, We'll ping you a link in a sec... techofail happening atm.08:56
gmbStevenK, https://plus.google.com/hangouts/_/1db0fa7779d1a1038578f306df3aa20ebf61a0be?authuser=0&hl=en-GB#08:58
StevenKhttp://pastebin.ubuntu.com/1065642/09:02
StevenKhttps://wiki.canonical.com/InformationInfrastructure/OSA/LaunchpadProductionStatus09:04
StevenKhttps://devpad.canonical.com/~wgrant/production-revnos09:05
=== adeuring changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: adeuring | Firefighting: - | Critical bugs: 4.0*10^2
jamstub: It looks like the last dump of production => staging was back in April (04-20?). Is there a specific process if we want to get newer data?09:35
stubjam: Yes, it was disabled and never reenabled after the disk space issue was worked around.09:35
stubjam: I left it disabled, as I was going to try the new rebuild process on the weekend.09:36
stubjam: I could do it now, but unfortunately the new rebuild needs to happen in place due to disk space limits, so staging will be offline for several hours while it works.09:36
jamstub: so it is likely to be re-enabled Soon (tm) ? (I don't need it urgently at all, I was just trying to understand the status)09:36
stubjam: Yes, I will run the script myself tomorrow and schedule it for weekly rebuilds on the weekend.09:37
jamsounds good09:37
jamstub: if we do fall back to the production librarian, can you help me debug things a bit?10:47
jamIf I try to go to an old merge proposal, such as: https://code.qastaging.launchpad.net/~gz/bzr/2.4_robust_logging_714449/+merge/8446510:47
jamI get this oops: https://oops.canonical.com/oops/?oopsid=OOPS-106e5fe837de46e8a46356f148ecd88810:47
jamwhich looks like a librarian lookup failure10:47
stubjam: That is indeed a librarian lookup failure. So we need to work out why that isn't in the Librarian. I'll check the production db10:50
stub(faster than tracking down the traceback from the librarian)10:50
jamnote, that wasn't the only merge proposal I tried, it happened on at least one other one.10:51
jamstub: I can see the entry in 'libraryfilealias' in staging at least.10:52
stubjam: It is there on production too10:52
=== matsubara is now known as matsubara-lunch
stubjam: You need to check qastaging's config to confirm that indeed requests are being passed back to the production librarian, and get the oops from the librarian for that request (grepping for that integer id should work)10:54
stubThis Librarian is oopsing now rather than spewing to a log file.10:54
stubc/This/I think that the/10:56
jamstub: would that be in launchpad-lazr.conf under 'librarian_server' ?10:56
jambecause all I see is "launch: True"10:56
stubupstream_url or something10:56
jamah, there is another page to look at (qastaging-lazr.conf)10:57
jamstub: upstream_host: launchpadlibrarian.net10:57
stubSo it is supposed to work10:57
stubIt might be restricted resources have a problem, qastaging librarian having troubles with the session database or something, but I would expect more fallout if that was the case.10:58
jamstub: is there an obvious way to turn a lfa.id into a URL?10:59
jamI tried poking at the code, but I also get a 404 when I go to the url I expected.10:59
stubYou need the lfa and filename10:59
jamstub: which you get from 'SELECT id, filename FROM LibraryFileAlias where id = ....'11:00
stubdef get_libraryfilealias_download_path(aliasID, filename):11:01
stub    """Download path for a given `LibraryFileAlias` id and filename."""11:01
stub    return '/%d/%s' % (int(aliasID), url_path_quote(filename))11:01
jamyeah, that is the one I tried11:01
jamstub: I wonder if the value in qastaging differs from the one in production?11:01
stubIf it does, that would be a bug.11:01
stubI get a 404 too.11:03
stubSo maybe the file never arrived on disk?11:03
jamstub: well if you go to the production page, it looks correct: https://code.launchpad.net/~gz/bzr/2.4_robust_logging_714449/+merge/8446511:04
jambut maybe the page has  a different diff now in prod11:04
stubyer, mebbe11:04
stubIs this one example of many, or is it a rare case?11:05
jamstub: I tried 2-3 mp's and all of them failed in a similar way11:05
jamstub: if I go to: https://code.qastaging.launchpad.net/bzr/+activereviews11:07
jamall of the links off of there seem to fail with lookup error11:07
jamstub: having tried 6 of them11:08
jamstub: and all of them fail for https://code.qastaging.launchpad.net/launchpad/+activereviews as well11:08
jam(one succeeds, but because it doesn't have a diff to show.)11:09
jamI'm off to lunch for now.11:09
jambut it is definitely systematically broken11:09
stubjam: I'm thinking that the file exists on production, but you don't have access to it there so are getting a 404.11:12
stubjam: I'm not sure if in this case your permissions on production or your permissions on qastaging are in effect.11:14
stubjam: If a MP has been superseded, then perhaps the old one is no longer visible to anyone? So a superseded diff on production will always return 404?11:15
=== al-maisan is now known as almaisan-away
=== matsubara-lunch is now known as matsubara
jamhttps://oops.canonical.com/oops/?oopsid=OOPS-00746fbd7a0bd9d6b5273c834209165512:24
jamjelmer: ^^12:24
=== mrevell_ is now known as mrevell
jelmergmb: lp:~jelmer/launchpad/skip-the-skips12:54
jelmergmb: lp:~jelmer/launchpad/skip-the-skips12:57
=== bac changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: adeuring,bac | Firefighting: - | Critical bugs: 4.0*10^2
jcsackettjelmer: saw your updates on the bzr update branch. r=me, and thanks for the answers.13:16
jelmerjcsackett: thanks!13:26
czajkowskijcsackett: sorry I didnt put you down for holidays, I go by whats on the admin in case folks are doing a swap day13:29
deryckadeuring, https://plus.google.com/hangouts/_/355d337a416990bcc886b192858066f0198beb37?authuser=0&hl=en13:35
=== almaisan-away is now known as al-maisan
jcsackettczajkowski: i forget there are holidays. :-P13:54
czajkowskiwell indeeed but some people use them for swap days13:54
jcsackettso no worries at all. :-)13:54
jcsackettczajkowski: yeah--what your doing makes sense. those of us who forget to list the holiday can always reply to the staffing email with corrections.13:55
jcsackett...or our bosses can. :-P13:55
czajkowskijcsackett: indeed13:55
jcsackettsorry if my forgetfulness causes you any problems.13:56
czajkowskijcsackett: no none at all14:03
czajkowskijust dont want you thinking I'm slacking or forgetting you either14:04
jelmermgz: pqm_email = Canonical PQM <launchpad@pqm.canonical.com>14:07
mgzwgrant: I am a tool, my apologies14:18
jcsackettczajkowski: the thought never crossed my mind. :-)14:20
wgrantcjwatson: I believe it's a semantic mistake. You're using the source component, when the permission check should be on the target.14:22
wgrantShouldn't it?14:22
wgrantjam: Restricted librarian files aren't proxied back from production, so you can't really view old MPs on staging14:23
cjwatsonwgrant: If that's so, then the current code is buggy too, because it gets the most recently published component for the series regardless of which archive it's in14:25
cjwatson*for the source package in the distroseries14:26
wgrantcjwatson: Yes, but a lot of code is crap, so it's not inconceivable.14:27
cjwatsonWell, yes, but it makes it hard to tell whether I'm making things any worse.14:27
wgrantIt would never really be noticed, since non-distro archives only publish in main.14:27
wgrantmgz: What did you do?14:27
cjwatsonSo what's the right fix?  Explicitly look up the latest published component in the target archive, but what if it isn't in the target archive at all yet?14:28
wgrantThere's rules for that already in archiveuploader.14:29
wgrantstrict_component exists for that reason14:29
wgrantIIRC it tries with the source component and strict_component=True14:29
wgrantIf there is no source component, it tries with strict_component=False14:30
wgrantTo allow any component uploader to upload a new package14:30
wgrantIIRC14:30
cjwatsonDear nascentupload, thanks for not explicitly tagging when you pass a keyword argument so that I can't grep for it.14:30
cjwatsonBut OK, that's similar to what half of check_copy_permissions is doing then.14:31
wgrantKeyword-only arguments cannot come soon enough :)14:31
wgrantI haven't actually read check_copy_permissions14:32
wgrantI possibly should14:32
wgrantAh, right.14:33
gmbjam, jelmer, vila, mgz, gary_poster: Behold: Python 2.7 parallel testing without an unknown worker (all the problem tests have been nuked for now; a proper fix is coming).14:34
wgrantSo the version before your branch is correct, apart from the fact that latest_published_component only considers distro archives, which won't be a problem in practice, but we should probably fix.14:34
gmbhttp://ec2-184-72-186-58.compute-1.amazonaws.com:8010/builders/lucid_lp/builds/214:34
vilagmb: \o/14:34
gary_postersweet, gmb!  congrats and thanks!14:34
gmbgary_poster, Welcome. Actually, much kudos must go to the Blue Squad and their genetic subunit parsing abilities.14:35
wgrant20 workers? Madness.14:35
gmbSparta.14:35
gary_posterheh14:35
gary_posteryay blue squad! :-)14:35
mgzwgrant: read bug 692357 then filed bug 1018905 when we were fixing it anyway14:38
_mup_Bug #692357: lib/canonical/lazr/doc/timeout.txt hangs on Python 2.7 <python-upgrade> <tech-debt> <Launchpad itself:Triaged> < https://launchpad.net/bugs/692357 >14:38
_mup_Bug #1018905: lp/services/doc/timeout.txt hangs in Python 2.7 <python-upgrade> <qa-untestable> <Launchpad itself:Fix Released by jameinel> < https://launchpad.net/bugs/1018905 >14:38
mgzand lo, even named the bug (nearly) identically14:38
wgrantmgz: Ah, yeah, I thought I'd filed that one.14:43
cjwatsonwgrant: OK, I'll see about fixing that today then.  Relatedly, do you think I might be able to try turning soyuz.derived_series.max_synchronous_syncs back down to something smallish and turning on soyuz.copypackageppa.enabled, both on dogfood, so that I can see how it behaves with current code?14:52
cjwatsonI think I know of two bugs right now: private->public copying isn't hooked up on the copy_asynchronous path, and I'm fairly sure that failed copy notification is about 95% implemented but doesn't entirely work.14:53
wgrantcjwatson: Sure, that's fine on DF14:53
wgrantcjwatson: It's never been tested to any significant extent, however.14:53
wgrantSo be prepared for spectacular fireworks.14:53
cjwatsonAny particular suggestions on exercising it?  I found the latter bug while experimenting with the test suite ...14:54
cjwatsonThe actual copies themselves should be much the same as Archive.copyPackage, it's the UI glue that's probably broken14:54
cjwatsonAFAICS14:54
wgrantYeah, probably.14:55
cjwatsonI have a branch that deletes synchronous copies and that passes tests.  So I want to know what I'm missing :-)14:55
cjwatsonI note also that at the moment +copy-packages will copy from private to public PPAs using delayed copies without (AFAICT) any particular explicit confirmation, at least if I'm reading the code correctly.  Is this by design?14:57
cjwatson(Because if it is then I can just add unembargo=True to fix the first bug I mentioned above.)14:57
jamcjwatson: I see you are stealing all the low-hanging LoC for yourself :)15:02
cjwatsonI reckoned that if nobody had noticed in four years it couldn't have been *that* low-hanging15:03
cjwatsonwgrant: Did my work on https://code.launchpad.net/~cjwatson/launchpad/custom-uefi/+merge/111626 to use publisher configuration instead of lazr config look sensible to you?15:05
sinzuirick_h_, deryck, jcsackett: I located the madness in choicesource tabbing. There was a handler setting the close button to have focus when the overlay had focus...the overlay is modal, it always has focus when visible15:25
sinzuirick_h_, deryck, jcsackett: I have a plan so clever you could stuff it down your pants can call it a weasel. I wrote a handler to watch what was happening, then adapted it to make tabs cycle through the actions...you cannot tab out of the overlay. I can push this down to pretty overlay so that you cannot accidentally tab out of any overlay.15:27
derycksinzui, why not just remove the bit that calls focus to the close button?15:29
sinzuiI did15:29
sinzuideryck, once to tab or shift tab out of a modal overlay, the focus is lost.15:30
sinzuichromium changed the focus to the location bar15:30
derycksinzui, ok, rick_h_ and I are on a call together now.  we can chat more in a second about it.15:30
derycksinzui, ah, that's what I would expect.15:30
=== salgado is now known as salgado-lunch
mgzany ideas why I'm missing /var/tmp/mailman after doing normal launchpad install steps, have some failing test due to that which aren't 2.7 related15:38
jamHave a good weekend, everyone!15:47
czajkowskijam: toodles15:48
gmbjam, jelmer, mgz, vila: The build failed... with only one failed test. http://ec2-184-72-186-58.compute-1.amazonaws.com:8010/builders/lucid_lp/builds/2/steps/shell_9/logs/summary16:07
gmbBut16:08
gmbThere were only ~2300 tests.16:08
gmbWhich means we're missing ~15,000 tests.16:08
gmbSomewhere...16:08
sinzuimgz, are these timeouts on doctests?16:09
sinzuimgz we disabled the MailmanLayer because a few doctests are fundamentally flawed. They always timeout.16:10
=== adeuring changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: bac | Firefighting: - | Critical bugs: 4.0*10^2
=== al-maisan is now known as almaisan-away
=== salgado-lunch is now known as salgado
=== deryck is now known as deryck[lunch]
=== daker is now known as daker_
=== daker_ is now known as daker__
cjwatsonwgrant: https://code.launchpad.net/~cjwatson/launchpad/fix-check-copy-permissions/+merge/112832 - does this look better?18:47
=== deryck[lunch] is now known as deryck
=== matsubara is now known as matsubara-afk
=== deryck_ is now known as deryck
jelmergmb: that bug was the one that vincent fixed earlier21:35
jelmergmb: s/that bug/that failure/21:35
czajkowskievening21:58

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