/srv/irclogs.ubuntu.com/2012/08/09/#launchpad-dev.txt

=== michaelh is now known as michaelh|away
StevenKwgrant: factory.makeAccessPolicyGrant() is giving me ClassInfoError: <type 'zope.security._proxy._Proxy'>.__storm_table__ missing00:42
wgrantStevenK: How're you calling it?00:45
StevenK        self.factory.makeAccessPolicyGrant(00:45
StevenK            policy=ap, grantee=subscriber, grantor=product.owner)00:45
wgrantStevenK: Can I see the whole test?00:46
StevenKwgrant: http://pastebin.ubuntu.com/1137210/00:48
wgrantStevenK: line 2200:50
wgrant[ap] =00:50
wgrantRather than ap =00:50
wgrantfind returns a resultset.00:50
StevenKAh!00:50
=== michaelh|away is now known as michaelh
cjwatsonwgrant: https://code.launchpad.net/~cjwatson/launchpad/publishinghistory-show-copier/+merge/118223 is worth looking at again now, I think.01:08
cjwatsonIt's a bit longer in terms of LoC, but I have more credit now anyway :)01:09
lifelessmm01:10
lifelessyou know the goal is overall reduction not stasis01:10
cjwatsonI know, but I'm well over 4000 down, I'm making considerably more net progress than most Launchpad developers ;-)01:10
cjwatson(At least on this metric)01:12
lifeless\o/01:13
lifelessthats excellent01:14
lifelesswe're what, 1% of the way there01:14
cjwatsonAbout -0.4%.01:14
cjwatsonhttp://people.canonical.com/~cjwatson/tmp/loc-cum.png01:14
wgrantcjwatson: Looking at your MP01:31
cjwatsonBlast.  Anyone want to hazard a guess as to why r15769 hasn't produced an improved oops notification on https://qastaging.launchpad.net/~cjwatson/+archive/ppa/+packages01:35
cjwatson?01:35
wgrantIt may be wise to confirm that gandwana's up to date01:37
wgrantI believe that it sometimes lags an update behind asuka01:37
wgrantBut I've never been able to confirm it01:37
wgrantcjwatson: ^^01:38
cjwatsonI was going to look at https://devpad.canonical.com/~wgrant/production-revnos but it's showing a Python traceback.01:38
wgrantcjwatson: That also doesn't show staging stuff01:38
wgrantSince they're deployed by an entirely separate system, for not very good reasons01:38
wgrantIn fact, by two entirely separate systems.01:39
cjwatsonYeah, I thought it might not, but also that you might want to know about the traceback :)01:39
wgrantIndeed, thanks.01:39
wgrantAh01:41
wgrantcron-control on the frontends is breaking it01:41
StevenKwallyworld_, wgrant: https://code.launchpad.net/~stevenk/launchpad/redirect-unsub-private-branch/+merge/11885902:29
wallyworld_StevenK: sorry, was having lunch, looking now03:27
wallyworld_r=me03:35
StevenKwallyworld_: Thanks!03:43
* StevenK tosses it at ec2.03:43
StevenKwgrant: Can you make sense of bug 834370?04:07
_mup_Bug #834370: factory.makeSPPHForBPPH is incomplete <tech-debt> <Launchpad itself:Triaged> < https://launchpad.net/bugs/834370 >04:07
wgrantStevenK: I am confuse.04:10
StevenKwgrant: Oh?04:15
wgrantStevenK: It doesn't make sense.04:15
wgrantSPPHs don't have arches...04:15
StevenKRight.04:16
wgrantMaybe bigjools knows.04:16
bigjoolsit wasn't me.04:16
StevenKI'm tempted to just rip out the method. It has exactly one callsite.04:16
bigjoolswhat was the question04:16
StevenKbigjools: bug 83437004:16
_mup_Bug #834370: factory.makeSPPHForBPPH is incomplete <tech-debt> <Launchpad itself:Triaged> < https://launchpad.net/bugs/834370 >04:17
bigjoolsummm04:17
bigjoolswithout looking at code, s/architectures/archives/ ?04:17
StevenKIt respects bpph.archive04:18
bigjoolsbug description fail04:18
bigjoolsI'm sure it was valid at the time but no memory is being jogged04:19
bigjoolsbuilds?04:19
StevenKIt references bpr.build.spr04:19
bigjoolsI dunno then04:19
wgrantYeah04:20
wgrantIt all looks pretty sensible to me.04:20
wgrantSo I don't get it.04:20
bigjoolsmaybe it got fixed04:20
StevenKStill tempted to rip it out04:20
bigjoolsand the bug was not updated04:20
* bigjools continues with maas bugs04:20
=== michaelh is now known as michaelh|away
=== michaelh|away is now known as michaelh
=== michaelh is now known as michaelh|away
wgrantStevenK, wallyworld_: https://code.launchpad.net/~wgrant/launchpad/noro/+merge/118867 ← 1369 lines (+19/-889) 22 files modified04:36
StevenKI already approve04:37
StevenKwgrant: r=me04:39
wgrantThanks.04:41
wgrantStevenK: https://code.launchpad.net/~wgrant/launchpad/noro-config/+merge/11886904:53
lifelesshttps://code.launchpad.net/~lifeless/lp-dev-utils/ppr/+merge/11887004:55
lifelesswgrant: ^ while you wait for StevenK  :)04:55
StevenK114- database_name = ConnectionString(dbconfig.rw_main_master).dbname04:55
StevenK115+ database_name = ConnectionString(dbconfig.main_master).dbname04:55
StevenKwgrant: ^ Que?04:55
wgrantStevenK: Observe the comment above it.04:56
wgrantStevenK: It was avoiding the usual main_master property, since it always wanted RW04:56
wgrantlifeless: Did you just like make lp-dev-utils depend on all of ZTK?04:57
lifelesswgrant: pretty much04:57
wgrantlifeless: And turn what was previously an innocent little piece of code into a horrid Zope egg?04:57
lifelesswgrant: zservertracereport is used to pull out stuff from the log files, and it pulls in ZOMG04:58
lifelessdiminishing returns to avoid that.04:58
wgrantlifeless: Right04:58
wgrantThat probably means we shouldn't use zservertracereport to pull out stuff from the log files :)04:58
lifelessbut I didn't migrate anything else, so most folk can just ignore it.04:58
wgrantSince if we do then it won't be useful to anyone else.04:58
lifelessits no less useful to anyone.04:58
wgrantlifeless: Hmm?04:59
StevenK    ImportError: No module named testbrowser04:59
StevenK:-(04:59
wgrantlifeless: You're adding an insane amount of bloat that will probably be removed the first time someone touches it04:59
wgrantlifeless: Since I doubt $person wants to use it for Zope stuff04:59
lifelesswgrant: they're going to make it more pluggable05:00
lifelesswe still need it for our logs.05:00
lifelessI don't know what your point is.05:00
wgrantMy point is that lp-dev-utils is presently sane and usable.05:00
lifelessAnd its no less so.05:01
wgrantAnd doesn't have this bootstrap.py lets-copy-it-everywhere-because-screw-good-ideas madness05:01
lifelessAll the existing scripts have exactly the same overheads they had before.05:01
wgrantIt looks sensible, apart from the code and build infrastructure being trainwrecks.05:03
wgrantSo OK, I guess.05:03
lifelessthe existing code is the existing code; I copied in our custom option parser as a stopgap.05:04
lifelessThe build infrastructure is no worse than what we use elsewhere, which for all its flaws has the massive advantage of actually working.05:04
lifelesswgrant: do I get a vote on the MP from you ?05:04
wgrantAnd the massive disadvantage of having all the vileness of Python upstream's distribution attitude combined with the vileness of Zope's.05:05
wgrantSure05:05
wgrantBut I would like to register my extreme distaste :)05:05
lifelessSure, I feel the same way; but can't affort to spit the dummy - we'd end up having to write a stupidly large stack.05:06
lifelessstarting with the way packages are imported from disk and working out from there.05:06
wgrantRight.05:06
wgrantBut I was hoping to sort of keep the infection contained.05:06
lifelessit is contained, it doesn't affect php or ruby.05:07
wgrantlp-dev-utils is one of the last bastions of sanity.05:07
wgrantRuby has their own mess05:07
wgrantAnd PHP is their own mess05:07
StevenK% bzr di versions.cfg | grep '^\+\w'05:09
StevenK+mechanize = 0.2.505:09
StevenK+zope.app.testing = 3.10.005:09
StevenK+zope.testbrowser = 4.0.205:09
StevenKFEAR05:09
wgrantStevenK: What have you done to who and why?05:09
StevenKwgrant: http://pastebin.ubuntu.com/1137400/05:13
wgrantStevenK: There's a nuclear winter in our future.05:15
StevenKwgrant: That good?05:15
wgrantSo much fallout.05:15
StevenK'make' works, so WCPGW, right?05:16
wgrantShipit!05:16
StevenKHaha05:16
StevenKHAHAHAHA05:16
wgrantIs that an evil mad nuclear physicist cackle?05:16
StevenKYes, at your ShipIt reference.05:16
StevenKI was going to toss it at ec2 and sob like wallyworld_ and propose if ec2 doesn't send hate mail.05:17
wgrantSounds good05:17
wgrantBut the big zope.app.testing bump is a bit scary05:17
StevenKAlthough I'm still trying to get the last reference of bug=98437 out05:18
lifelesswgrant: or StevenK: I suck, I haven't ec2 enabled myself again yet. Could you land https://code.launchpad.net/~lifeless/launchpad/ppr-move/+merge/118873 ?05:33
lifelessper favor05:33
StevenKFail.05:34
wgrantHm05:42
lifelessStevenK: is that 'sure thing' ?05:45
StevenKIt is not.05:46
StevenKec2: ERROR: Branch doesn't have linked bugs and doesn't have no-qa option set. Use --no-qa, or link the related bugs to the branch.05:47
StevenKlifeless: ^ no-qa is fine?05:47
lifelessStevenK: yeah05:48
lifelessstub: hey; can we do a catchup @ uhm, 2h from now?06:06
stublifeless: ok06:07
lifelesscool,t hanks06:08
wgrantwallyworld_: How do I see the bug title?07:40
wallyworld_ECONTEXT07:41
wgrantIf it's ellipsised in the only place it's displayed, how do I see it?07:41
wallyworld_if it's too long then too bad07:41
wallyworld_or words to that effect07:41
wgrantBut the font is huge and you can fit like nothing in one line07:42
wgrantIn terms of bug title07:42
wgrantFor projects it might be reasonable.07:42
wallyworld_the bugtitle issue was the one mentioned as needing fixing. perhaps a longer allowed title is required07:42
wallyworld_maybe we allow 2 lines or something07:43
adeuringgood morning07:50
mgzokay, some let's play writing some debbugs tests07:56
StevenKmgz: Hahahahaha07:56
=== michaelh|away is now known as michaelh
dpmHi launchpadders. Right now source packages from the extras.ubuntu.com archives are not available in Launchpad through https://launchpad.net/ubuntu/+source/<package> - could someone tell me (roughly) what would be needed to get source packages from extras show up in Launchpad?09:09
cjwatsonFrom Launchpad's point of view, extras.ubuntu.com is just another PPA.09:15
cjwatsonSo they do show up there, but only under the "untrusted archives" expander (e.g. https://launchpad.net/ubuntu/+source/alg3py).09:16
wgrantHm09:20
wgrantWhy should they show up under Ubuntu?09:20
wgrantThey're not part of or maintained by Ubuntu.09:20
dpmthat's a good point. I was thinking in terms of were to report bugs, but hadn't considered the fact that they're not really part of Ubuntu09:32
dpmwgrant, but you can still report bugs against e.g. https://bugs.launchpad.net/ubuntu/+source/alg3py right? So what do you think could be the best approach to report bugs against extras applications in LP?09:39
wgrantdpm: Hm, I thought we used to hide the link. It nowadays seems to let you into the form, but won't let you submit.09:41
wgrantSo no, you can't actually file bugs.09:41
wgrantIt just tempts you to do it09:41
wgrantI'm not sure what the best solution is09:42
wgrantBut forcing them under Ubuntu like partner is probably not it.09:42
mgzwhere do the debbugs things live on disk? could do with looking at some real data to see if my tests are valid09:42
mgzconfig has /srv/bugs-mirror.debian.org/ but don't know what server, or the process that creates the files09:42
dpmok, thanks wgrant09:44
cjwatsonmgz: http://www.debian.org/Bugs/Access "Accessing the raw bug data"09:46
mgzah, so we have a full mirror rsynced?09:47
mgzdo you know where that lives?09:47
cjwatsonNo09:47
cjwatsonBut it's easy enough to rsync at least a fragment of it for yourself09:48
mgzright, I just need to try and get a reasonable fragment without killing this http connection :)09:48
mgz(specifically I want some bugs with non-ascii characters in headers, just to check)09:49
cjwatsonI suspect that these days any 1% of the active spool would do, so pick a subdirectory ...09:49
wgrantIt used to be on macquarie then synced to loganberry, but the former copy moved recently, AIUI09:49
lifelessmgz: the network diagram ops have lists the machine name I believe.09:58
mgzloganberry works for me09:59
wgrantlifeless: Have you fixed the crontab for the PPR move?10:11
lifelesswgrant: no, I didn't think it was on autodeploy10:12
lifelesswgrant: fairly sure its manually updated.10:12
wgrantAh, probably true,.10:14
lifelessso I was going to completely ignore it and wait for screams, if any.10:16
=== michaelh is now known as michaelh|away
jamanyone have advice for https://answers.launchpad.net/launchpad/+question/20533812:48
jamI can see that https://launchpad.net/ubuntu/+source/openconnect is definitely not the same project as https://launchpad.net/openconnect12:49
jamHowever, I don't see the former as being imported anywhere.12:49
jami'm also hesitant to rename an existing project and import something new in its place.12:49
jamThoughts?12:49
mgzjam: you have a reasonable fix now, from the question?12:54
jammgz: I think so12:55
mgzseems unexpected success in the lp test suite doesn't count as a failure?13:01
mgzgmb: what did you do previously to make the launchpad test runner understand other test results?13:05
gmbmgz, I'm sprinting today so I can't give you a good answer right now... Is this under Python 2.6 or 2.7?13:06
mgzer, I'm testing in precise, so 2.7, but that's a good point13:06
wgrantmgz: LP's test suite doesn't have any expected failures.13:07
wgrantHow're you trying it?13:08
mgzah, so I shouldn't use that feature at all...13:08
mgzit derives from testtools so appears to work, but the zope runner is ignorant13:08
wgrantWe make tests pass instead :)13:09
mgzI'm (sometimes) in the habit of committing tests, then fixing the bug and flipping the expectedFailure clause13:10
mgzbut I can just not do that.13:10
mgzalso have some assertions that are not currently unused code that I guess can just be deleted, like13:12
mgz+        name, email = tracker.getBugReporter("1")13:12
mgz+        self.expectFailure("No decoding on headers done",13:12
mgz+            self.assertThat, name, Not(Equals("=?UTF-8?Q?Jes=C3=BAs?=")))13:12
mgz+        self.assertThat((name, email),13:13
mgz+            Equals((u"Jes\xfas", "jesus@example.com")))13:13
cgoldbergmorning... I am having a problem bootstrapping lp-dev-utils.  "pkg_resources.DistributionNotFound: zc.buildout==1.5.2" (I have python-zc.buildout 1.52 installed globally) .... stack trace of make output:  http://paste.ubuntu.com/1137808/13:39
cgoldberganyone have an idea?13:39
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
jamI'm trying to go to: https://launchpad.net/projects/+review-licenses but now it is generally timing out13:48
jamI think it succeeded 1 time in about 813:48
jam(It worked a bit ago, but then I reviewed a bunch of projects, so maybe there is a data-bug where one of the new projects to review is causing the timeout?)13:48
=== jcsackett changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: jcsackett | Firefighting: - | Critical bugs: 4.0*10^2
deryckcgoldberg, hey.  Does a plain `make` not work?  I expect it's something to do with lp-dev-utils expectations about there being a download-cache.14:36
cgoldbergderyck, plain `make` does nothing (Nothing to be done for `all'.)14:38
deryckhmmm14:38
cgoldberg`make bin/buildout` and calling bootstrap.py directly  gives same error as my paste14:39
cgoldbergi've tried with, and without zc.buildout installed system-wide14:39
deryckcgoldberg, ok, looking at my copy now.....14:39
cgoldbergderyck, kk thanks14:39
cgoldbergi've also tried running bootstrap.py with -t and -d options14:40
deryckcgoldberg, what are you trying to do?  I didn't even realize we needed a Makefile in there.  It used to just be a collection of scripts.14:43
cgoldbergderyck, right... so lifeless moved pageperformancereport (prr) into there from lp:launchpad.  i'm trying to run the tests:  test_pageperformancereport.py14:44
cgoldbergderyck, the README is updated... look at the last part of it14:44
cgoldbergi'm not sure if he added the bootstrap/make stuff or that was there already.. but seems it's needed14:45
deryckcgoldberg, ah.  reading the makefile, I suspect you need `make download-cache && make eggs` before `make bin/buildout`.14:46
cgoldbergderyck, i'll try14:46
deryckok14:47
cgoldbergderyck, "make: `download-cache' is up to date."  ... same for eggs14:47
deryckcgoldberg, do you have a download-cache directory in the tree?14:48
cgoldbergderyck, yup14:48
deryckcgoldberg, hmmm, I'm not sure then.  Maybe check with lifeless when he is around.14:49
cgoldbergwith a ton of tarballs/zips under /dist14:49
cgoldbergderyck, yea.. fraid i'll have to.. was hoping to get through this before he arrives later14:49
deryckcgoldberg, I would think if you had buildout in the download cache, or system wide, either one.  it should work.14:49
cgoldbergderyck, me too :)14:50
deryckcgoldberg, assuming the version is indeed 1.5.214:50
cgoldbergright.. which it is14:50
cgoldbergderyck,  well.. thanks for looking  anyway!14:50
deryckcgoldberg, np!  sorry I couldn't help.14:51
james_wcgoldberg, either remove the global installation, or run the bootstrap in a --no-site-packages virtualenv (which can then be deleted I think)14:53
james_wbuildout bootstrap fails if there is a system-wide install of the same version as the desired one14:54
cgoldbergjames_w, ahh..i tried removing my system-wide buildout.. didn't help.  I'll try in a virtualenv14:59
deryckadeuring, let's use the standup hangout.15:02
mgzocr: please take a look at  <https://code.launchpad.net/~gz/launchpad/format_version_3_debbugs_1029294/+merge/118989>16:03
=== deryck is now known as deryck[lunch]
=== cjwatson_ is now known as cjwatson
deryckrick_h_, no hurry, but let's use the standup hangout again when you're ready20:32
rick_h_ok, jumping in20:32
lifelesssinzui: o/21:10
lifelessderyck: hi21:10
sinzuiboth of you just got mail21:10
lifelessderyck: we were going to do a call this morning, but neither of us put it into google calendar.21:10
derycklifeless, dang, dude.  I completely forgot.  *sigh*21:10
derycklifeless, I need to go pick up the dog too.21:11
derycklifeless, shall we calendar something for my monday afternoon, your Tuesday morning?21:11
lifelesssure21:12
deryckthanks, really sorry about dropping that again.21:13
derycklifeless, I'm not sure what time for me works for you, so feel free to calendar me for a time that works for you.21:13
derycki'll be around whenever then.21:13
derycksinzui, thanks for the mail.  I'll need some time tonight to get it all in my head, but it's nice to have a good list like that.21:13
sinzuideryck: I cannot say that is in my head. That might be a fiction about what was done21:14
deryckwell, I don't mean it will stay in my head. :)21:15
deryckGet my head around it, might be a better way to say it.21:15
Ergo^gary_poster, ping21:17
gary_posterHey Ergo^21:17
lifelesssinzui: your 12 step program is short a step21:20
sinzuiSo is my head21:21
lifeless:>21:23
jcsackettwgrant: online?21:24
lifelessjcsackett: 0724 for him.21:25
* lifeless expresses doubt about onlineness21:25
jcsackettlifeless: fair. we do standup in 30 min, wondered if he might be online early.21:25
lifelessoh definitely worth checking21:26
lifelessnever know your luck in the big penal colony21:26
* jcsackett laughs21:26
jcsackettwell, without wgrant, sinzui. i am *finally* able to focus on that banner branch today and i think discussions from last night are wrong.21:27
jcsackettsinzui: IPrivacy, in this instance at least, would only be used for display of the banner...which is a very different thing from who all can *see* it.21:28
sinzuiyes.21:28
jcsackettand the rules we agreed to adapt are all about seeing. i think the archive being private is enough to say show the banner.21:28
sinzuijcsackett: it is a start certainly. But is two people look at the same build. One gets a 403, so ask the other to look and he sees it. the page might as well show the privacy banner so that user to can tell person one that is the case21:30
sinzuiI think the ambiguity of the bug is that user know that not everyone can see the page and have a reason in their head that something might be private...21:31
sinzuiand per you decision, the archive is going to leap to the user's mind21:31
jcsackettwhat i'm saying is that i think that's the case. the archive being private is the first check for 'View'. so if it's private, the build is private. so someone else goes to look at it and gets in b/c they match another rule. but they'll see it's private.21:32
jcsackette.g. I don't think there's a reason you get a 403 looking for it when the archive is public.21:32
sinzuiokay21:36
sinzuiI think that fixes jml's concern21:37
=== jcsackett changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: - | Firefighting: - | Critical bugs: 4.0*10^2
jcsackettok.21:37
wgrantjcsackett: The build archive being private is required, but not sufficient.22:07
wgrantI can copy the source+binaries to the Ubuntu primary archive22:08
wgrantThen it is no longer private.22:08
lifelessrick_h_: http://paste.ubuntu.com/1138589/ + http://paste.ubuntu.com/1138605/ - a WIP22:08
lifelessrick_h_: imbrandon is hacking the js bits together22:09
jcsackettwgrant: but in terms of viewing the build, shouldn't we still display the banner? b/c there is still private info on the build (e.g. the existence of the archive), right?22:11
wgrantjcsackett: But the build is publicly available, therefore the existence of the archive is disclosed.22:12
=== heroux_ is now known as heroux
StevenKwallyworld_: My X201 is 1280x80023:00
wallyworld_wow, that's sad23:00
wallyworld_in 2000 i would expect that, not 201223:01
StevenKwallyworld_: It also weighs 1.4kg and has 8 hours battery life?23:01
wallyworld_mine weighs about the same, battery is only 4h23:01
wallyworld_but i hardly ever run on battery23:02
rick_h_lifeless: why do the iframe if it's a GET request anyway?23:40
rick_h_and are we thinking more than one per page? because the instances can clobber in this plain object fashion vs creating a new instance of an oops23:41
rick_h_but I guess there's not much to change atm since things like action/etc aren't populated23:41
lifelessrick_h_: its existing code imbrandon is using23:42
rick_h_ah gotcha23:42
StevenKwgrant: An awful lot of the failures are NoReferrerError: No value for REFERER header23:47
lifelessrick_h_: #juju is where we are talking about this23:47
wgrantStevenK: Ah23:47
wgrantStevenK: I guess people might be posting forms directly23:47
StevenKRight23:47
wgrantStevenK: Rather than properly submitting them23:47
wgrantIn which case you'll need to either properly submit them or forge a referer23:48
StevenKwgrant: browser.submit() , isn't it?23:48
wgrantRight23:48
wgrantMaybe23:48
wgrantIt may be on the form23:48
wgrantCan't remember.23:48
StevenKadmin_browser.getControl('Delete').click()23:49
StevenKThat's wrong?23:49
wgrantThat should work.23:50
StevenKwgrant: http://pastebin.ubuntu.com/1138729/23:52
wgrantStevenK: Do other things work?23:52
wgrantPerhaps the new testbrowser doesn't send a referer at all23:53

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