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

lifelesswould someone like to review my zconfig patch, as the maintainer seems to not be doing so :(01:45
wgrantlifeless: Hm?02:09
wgrantlifeless: You proposed it into an import02:09
wgrantI'm not surprised nobody reviewed it02:09
lifelessabel did that previously; I commented on the bug to grab freds attention too :)02:09
StevenKI guess foo = [bar if bar.active and bar.baz in supported for bar in all_bars] is malformed?02:14
lifelessit may want brackets02:14
lifelessbecause you have two ins02:14
StevenKif (bar.active and bar.baz in supported) also gives syntax error02:15
lifelessoh02:16
lifelesslol02:16
lifelessthe if goes at the end02:16
lifeless[bar for bar in all_bars if bar.active and bar.baz in supported]02:16
StevenKlifeless: Ah! Indeed, thanks02:16
StevenKBleh, Launchpad.login_with('foo', 'dogfood') doesn't work :-(02:48
StevenKwallyworld_: O hai -- do you know much about StormStatementRecorder? I'm invalidating my store, but still can't get it to actually make a query04:15
wallyworld_you mean record a query?04:15
wallyworld_it's normally used after flushing the store, eg04:17
wallyworld_            Store.of(bug).flush()04:17
wallyworld_            with StormStatementRecorder() as recorder:04:17
wallyworld_                previous_dup.markAsDuplicate(bug)04:17
wallyworld_                self.assertThat(recorder, HasQueryCount(LessThan(95)))04:17
StevenKI'm suspecting that it isn't working for the webservice04:18
wallyworld_i wonder why if that's the case. i can't see why the webservice would not play nicely with it04:18
StevenKwallyworld_: http://pastebin.ubuntu.com/1186788/04:20
wallyworld_hmmm. how come you can't test this using the recipes() method directly as part of a unit test?04:21
StevenKwallyworld_: If I use owner.recipes[0], I get one query. I'm wanting to use the API because lazr marshalls the vocab that the recipe includes and that involves at least two queries, per recipe.04:29
wallyworld_the vocab marshalling is a constant count though right? and outside our control? so do we need to measure it for these tests?04:30
StevenKSo I've rewritten the vocab, so it shouldn't make any queries, which is exactly what I'm trying to test.04:30
wallyworld_can you test that as a unit test on the vocab?04:31
StevenKPersonally, I'd like to see it on the API04:31
wallyworld_i'm not sure why its not working sadly04:32
wallyworld_i'd have to fire up the debugger and see what's going on04:32
StevenKwallyworld_: Could I bug you to do so while I do it as well and we'll meet in the middle?04:33
wallyworld_ok04:33
wgrantStevenK: launchpadlib_for requires AppServerLayer, doesn't it?04:37
wgrantWhich means it connects to a real appserver04:38
wgrantSo a statement recorder in the test process isn't going to do you much good04:38
wgrantAlso, don't use launchpadlib in tests04:38
wgrantIt's even slower than Launchpad04:38
StevenKwgrant: Then how I can test the marshalling?04:39
StevenKOr is the easiest answer "Just don't" ?04:40
wgrantStevenK: webservice_for_person04:40
wgrantGives you a rawer interface04:40
wgrantWithout all the wadllib etc. overhead04:41
wgrantJust dealing with JSON04:41
wallyworld_StevenK: QueryCollector is think is what you want to use04:41
wallyworld_it seems to be the way to collect sql statements for ws interactions?04:41
wgrantQueryCollector uses the stuff in the request, I think, but it probably still only works if the request is in-process04:42
wgrantSSR should work fine with webservice_for04:42
StevenKNow I'm stuck on how to get at the recipes04:43
wgrantOh?04:43
StevenKAs changing the ws_owner.recipes[0] call04:45
wgrantI'd get the recipe from the DB and call canonical_url on it04:46
StevenKwgrant: Hah, except that canonical_url includes code.launchpad.dev, and webservice_for_person wants no part of that.04:51
* StevenK sprinkles in force_local_path04:53
StevenKRight, that test in devel is 34 queries. With my rewritten vocab, 28.04:56
wgrant:)04:57
wgrantHow'd you do it?04:57
wgrantNo longer a SimpleVocabulary?04:57
StevenKYeah, it's now a IHugeVocabulary04:58
StevenKwgrant: Do you want to see a diff or shall I just put it up for review?05:01
wgrantStevenK: Review!05:07
StevenKwgrant: https://code.launchpad.net/~stevenk/launchpad/sane-buildable-distroseries/+merge/12279105:19
wgrantwallyworld_: Your stuff made it through buildbot finally05:31
wallyworld_yes indeed05:55
wallyworld_it's even ready for qa05:55
wgrantStevenK: You have a bit of QA too06:04
StevenKwgrant: Done.06:09
StevenKDo we want another deployment?06:09
wgrantWe've not ndted in more than 24 hours!06:15
wgrantSo that's not a question06:15
jamwgrant: you sound like a junky trying to get his fix. "Maaannn, I haven't had an NDT in 24-hours maaannn. i gotta score some NDT"06:56
=== almaisan-away is now known as al-maisan
wgrantHeh07:03
adeuringgood morning07:40
nigelbbigjools: heh, we got a pycharm license at work since all our work is open source :)08:42
bigjools:)08:47
evjust to confirm, there's no way to go from a binary package to a source package in the API, right? https://bugs.launchpad.net/ubuntu/+source/python-launchpadlib/+bug/597041 leads me to believe this.10:37
_mup_Bug #597041: No way to get from binary package to source package <amd64> <api> <apport-bug> <lp-soyuz> <maverick> <ppa> <Launchpad itself:Triaged> <python-launchpadlib (Ubuntu):Invalid> < https://launchpad.net/bugs/597041 >10:37
wgrantev: There are no binary or source *packages* exposed in the API, just publications of those packages  -- do you mean binary_package_publishing_history and source_package_publishing_history?10:43
wgrantIf so, that's correct, there's no present way to do it10:43
evyes, that10:43
evhmm okay10:44
evthanks10:44
cjwatsonIndeed.  In auto-sync I just worked around it by reading current Sources files.10:45
cjwatsonWhich isn't great but in context it's workable enough.10:45
evhm, we actually send the source package up in the reports that apport generates10:49
evso I'll just grab the first instance from the db for now10:49
=== mpt_ is now known as mpt
stubNo handlers for logger bzr. Does this mean I need to setup that VM now?12:22
stubTacException: Error running ['/usr/bin/python2.7', '-Wignore::DeprecationWarning', '/home/stub/lp/replication/bin/twistd', '-o', '-y', '/home/stub/lp/replication/daemons/librarian.tac', '--pidfile', '/tmp/tmpeX98el/librarian.pid', '--logfile', '/tmp/tmpeX98el/librarian.log']: unclean stdout/err: No handlers could be found for logger "bzr"12:23
stublp_sitecustomize should be fixing that :-/12:27
mgzstub: means you need to do whichever update launchpad deps you need today12:27
stubI'll try that again, but I think I'm fully up to date.12:28
mgzbut yeah, if the branch includes my lp_sitecustomise change, I'm suprised there's still a test failure12:28
stubNot my branch, just looking at the code that is supposed to make this problem go away.12:28
mgzwhat's the last rev in the branch with the test failure?12:31
stubAnd now I can't even build mailman... grrr...12:46
wgrantstub: make clean_buildout compile12:47
stubYeah, just let me remove the pdb.debug() from lp_sitecustomize.py12:47
stubhit it harder, it is ok now.12:57
bachi jam and mgz, since you've taken an interest in the canonistack instance we're running, i wonder if you'd like to review a branch i just did that opens up management of it to ~launchpad?  it's at https://code.launchpad.net/~bac/lp-tarmac-configs/add-launchpad-members/+merge/12287713:54
* mgz has a look13:56
mgzUnauthorized: (<Branch u'~bac/lp-tarmac-configs/add-launchpad-members' (651325)>, 'landing_targets', 'launchpad.View')13:57
mgzbac: maybe you could also open up the branch to launchpad members? :)13:58
bacmgz: i just tried and thought i had13:58
baclet me lok13:58
baclook13:58
bacmgz: try now13:59
mgz20013:59
mgzis get_lp_people correct? only deals with a limited level of team nesting14:03
mgzI guess we're not that deeply nested in launchpad anyway...14:03
bacmgz: team.participants does multiple levels, i believe14:05
mgzah, it's a flattened list of everything?14:06
bacmgz, yes, as compared to .members14:07
abentleyAnyone else getting "AssertionError: newInteraction called while another interaction is active." on ec2 runs?14:09
abentleyderyck: Any idea about this? ^^^14:23
deryckabentley, isn't that from when you're using one of the page test browsers and don't logout before starting a new operation?14:25
abentleyderyck: Okay, I'll see if that could be it.14:25
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
=== matsubara is now known as matsubara-lunch
=== al-maisan is now known as almaisan-away
abentleyadeuring: reconcile_access_for_artifact is not working for me.  Has all the necessary code been merged?  http://pastebin.ubuntu.com/1187456/16:07
adeuringabentley: no, it's only in my branch....16:08
abentleyadeuring: Okay, I need a working IAccessArtifactSource.ensure([blueprint]), so I'll wait on your work for the grants.16:11
adeuringok16:11
abentleyadeuring: I'll focus on the subscriptions.16:13
adeuringabentley: but the fix for the the error is really simple16:13
adeuringabentley: one more "elif ISpeicification.porvidedBy(...)" in _constraintForConcrete()16:13
abentleyadeuring: Okay.16:14
=== abentley is now known as abentley-lunch
=== matsubara-lunch is now known as matsubara
=== Ursinha_ is now known as Guest65952
=== Ursinha-afk is now known as Ursula
=== abentley-lunch is now known as abentley
=== deryck is now known as deryck[afk]
abentleysinzui: I'm working on Specification.transitionToInformationType, and looking at the bug version, but having trouble understanding who should be automatically subscribed to a Specification.19:54
sinzuithe bug version is being removed in a few weeks. No one needs to be subscribed to bugs when every project uses bugs19:55
sinzuisharing I mean19:55
sinzuiSo the transition only needs to unsubscribe the people who do not already have access19:55
sinzuiYou might want to subscribe the person making the change so that they can undo it19:55
abentleysinzui: Okay, and the idea is that anyone else who needs access will get it by an AccessPolicyGrant?  What about the owner-- it seems like they might not have access via the policy.20:28
sinzuiThe owner of the blueprint?20:29
abentleysinzui: Yes, the owner of the blueprint.20:30
sinzuiWhat do we do for branches? oh, we give the owner a subscription that the project owner can later revoke20:31
sinzuiabentley, I think this is an odd corner case. This is like a random person creating a blueprint on my project that just happens to relate to a real secret thing I am working on20:32
sinzuiThis is unlikely to happen, and if it does, the non-contributor is probably in the wrong20:32
sinzuiabentley, I am sharing ~canonical with all its commercial projects so that our organisation has full access. We advise every commercial project to to do that, I don't think we need to subscribe the blueprint owner or anyone other that the person that changed the information type20:34
abentleysinzui: Cool.20:34
abentleysinzui: Thanks for the clarification.20:35
sinzuinp20:36
=== deryck[afk] is now known as deryck
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== salgado is now known as salgado-afk
=== salgado-afk is now known as salgado
StevenKwgrant: e3522ed011014e61b507a1d73072676922:13
StevenKsinzui: http://www.timeanddate.com/worldclock/meetingtime.html?iso=20120905&p1=240&p2=136&p3=26322:30
=== mwhudson_ is now known as mwhudson
StevenKwgrant: I guess bug 1046024 is untestable and should be marked as such?23:35
_mup_Bug #1046024: product release finder ignores .apk files <product-release-finder> <qa-needstesting> <trivial> <Launchpad itself:Fix Committed by sinzui> < https://launchpad.net/bugs/1046024 >23:35
wgrantStevenK: Right23:36
StevenKwgrant: I guess bug 892511 can be nailed shut since the reoccurance was due to the DC move and sorted out quickly afterward?23:49
_mup_Bug #892511: recipe build: ERROR: no such option: --allow-fallback-to-native <recipe> <regression> <Launchpad itself:Confirmed> < https://launchpad.net/bugs/892511 >23:49
wgrantStevenK: Indeed.23:53
wgrantI wish people wouldn't reopen old long-closed bugs :(23:53
StevenKI think bug 940168 is fixed too23:55
_mup_Bug #940168: Two merge requests created on double-click <regression> <Launchpad itself:Triaged> < https://launchpad.net/bugs/940168 >23:55
wgrantIt's not23:55
StevenKI've not been able to trigger it23:55
wgrantStevenK: Just click it twice quickly23:56
wgrantWhile the first one is still spinning23:56

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