/srv/irclogs.ubuntu.com/2016/05/25/#launchpad.txt

freelifeless: for when you get online, I noticed a drawback with load_tests that I can't figure a workaround for08:18
freelifeless: if I want to run a single test (e.g. ./bin/testpy -m unittest2 txlongpoll.tests.test_frontend.QueueManagerTest.test_retry_after_timeout) I can't find a way to tell unittest2 that I want to use a custom suite (e.g. OptimisingTestSuite)08:18
lifelessfree: I don't know what testpy is08:27
lifelessfree: but the testtools stack supports --load-list08:27
freelifeless: afaics it's just a buildout-generated script, setting sys.path08:28
wgranttestpy is just the buildout-generated interpreter with the right sys.path08:28
lifelessfree: so python -m testtools.run --load-list <(echo txlongpoll.tests.test_frontend.QueueManagerTest.test_retry_after_timeout)08:28
lifelessshould do it08:28
freelifeless: I'd think that --load-list assumes that you can run a single test from the test program?08:28
freelifeless: and that honors load_tests?08:29
free--load-list08:29
* free tries08:29
freelifeless, wgrant: hm stupid testpy wrapper is not happy with --load-list. It forces its own options :/08:30
freemaybe I have to use --08:31
wgrantfree: Does it?08:32
wgrantLooks like a normal interpreter to me.08:32
freewgrant: got it working with --08:32
freelifeless: ^^^ your hit worked, thanks!08:32
freehit/hint08:32
lifelessfree: but yes, it would be nicer to load everything and then filter08:40
lifelessfree: or load and go through load_tests but permit the single file still somehow08:40
lifelessfree: patches (to the stdlib) sought!08:40
freelifeless: he08:40
freelifeless: I guess I'm happy enough for now, I also got everything working with testr (pushed a small fix to .testr.conf in that branch)08:41
freewgrant: you managed to run the tests with buildout/testpy? re your comment08:47
wgrantfree: I did. A straight make check worked this time.08:49
wgrant(apart from the OptimisingTestSuite issue)08:49
freewgrant: okay, lemme test it on a pristine xenial container, I was working on a trusty one08:49
wgrantI tested precise and xenial.08:49
freewgrant: did you install twisted as a system package? since I think testtools' async test result is broken for Twisted 16.2.008:58
wgrantfree: buildout's twisted should be shadowing the system one.09:01
wgrantThe failures I see go away if I hack loader.suiteClass to OptimisingTestSuite, so the inner suites are the right type.09:01
wgrantI don't think it's anything to do with Twisted.09:01
freewgrant: weird, I get it alright on a pristine xenial https://pastebin.canonical.com/157204/09:10
freewgrant: what was your process exactly?09:10
wgrantfree: I didn't use testr, but testr shows the same thing. I don't see how that can work for you...09:30
wgrantfree: If you pdb.set_trace() just before the return in load_tests and inspect result, do you see the same as I posted in the MP? an OptimisingTestSuite wrapping a normal TestSuite.09:30
freewgrant: yeah using testr or not doesn't matter, both "make check" and testr call bin/testpy -m subunit/run09:30
freewgrant: lemme try09:30
wgrantIf I add a "loader.suiteClass = OptimisingTestSuite" just before the loader.discover it all works perfectly and quickly.09:32
wgrantBut without it is is slow and explodey.09:32
freewgrant: fwiw OptimisingTestSuite should flatten all the tests it gets, so it shouldn't matter if some of its tests are wrapped09:32
wgrantHmm.09:32
wgrantMysterious.09:32
freewgrant: I'm not getting the tests wrapped, https://pastebin.canonical.com/157205/09:34
wgrantfree: http://paste.ubuntu.com/16675791/ is the relevant snippet of my bin/testpy. Are your versions vaguely similar?09:35
wgrantI guess a testresources version difference could do this.09:35
freewgrant: there are differences, I have testtools 2.2.0 for instance09:36
freewgrant: that testresources is also quite old09:36
freewgrant: I have eggs/testresources-2.0.0-py2.7.egg09:36
wgrantI thought I cleaned properly, but maybe not.09:36
wgrantRight, that could be a problem.09:36
freewgrant: yeah most probably09:36
wgrantfree: I guess you just pulled latest deps from PyPI?09:37
wgrantI used LP's download-cache, which is what has classically been used.09:37
freewgrant: yeah I created a pristine xenial container and went from there09:37
freewgrant: ah, well I might then check the version of available testresources and use the loader.suiteClass trick for older versions09:38
freewgrant: so the suite can pass with LP's cache09:38
wgrantfree: Or I couild just throw a newer testresources in that branch :)09:38
freewgrant: as you want09:39
freewgrant: I have no problem in putting an if in that load_tests function09:39
wgrantfree: New testresources fixes it. Will land. Thanks.09:41
freewgrant: cheers, I guess the flattening behavior is not there in 0.2.709:42
wgrantfree: Merged. Do feel free to poke me after less than six months next time :P09:47
freewgrant: hehe, I'll do :) it's basically because now I want to do some more (real) work and want the suite to not take 2/3 mins :)09:48
rbasakSpam: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/158560012:05
ubot5Launchpad bug 1585600 in apache2 (Ubuntu) "Local Packers And Movers Barabazar Kolkata | Household Shifting" [Undecided,New]12:05
=== JanC is now known as Guest85398
=== JanC_ is now known as JanC
estanhi. is it allowed to upload packages to a PPA which installs to /opt/somepackage? that is, which gives dir-or-file-in-opt warnings.12:57
estani know that is discouraged and against policy, but will PPA accept such a package?12:57
rbasakI believe it'll work fine in a PPA.12:58
estanalright. good to know. thanks.12:58
gQuigswhat's the blocker for enabling 2fa without the beta group? (https://help.ubuntu.com/community/SSO/FAQs/2FA)13:34
gQuigsgetting more interest from customers... and we could just "invite" them to the beta test through an internal article13:35
cjwatsongQuigs: That's SSO, not Launchpad.13:41
cjwatsonAnyone can easily join the team though.13:42
cjwatsonI don't know what the rationale is for it being team-limited at the moment.13:43
gQuigsright, oops..  they don't seem to have an obvious public channel.. maybe #ubuntu-website13:45
gQuigsthanks13:45
cjwatsongQuigs: #u1-internal on Canonical IRC14:05
cjwatsonrather more likely to get a useful answer.  website folks don't do SSO14:06
gQuigscjwatson: yup, just found it :)14:06
gQuigsthanks!14:12
sidiA question about multiarch. I have two packages, "f" and "x". They were both mono-arch. x depends on f. f became multiarch (so its headers are now in /usr/include/<arch>/f/f.h). x no longer builds on the PPA because it can't find the includes18:00
sidiShouldn't single-architecture packages automatically look for headers in /usr/include *and* /usr/include/<ARCH> when building?18:01
sidix is a library, if any relevant.18:01
sidihttps://launchpadlibrarian.net/261464473/buildlog_ubuntu-vivid-amd64.garcon_0.4.0-2ppa9_BUILDING.txt.gz hat is the build log18:02
sidiright, nevermind, it seems a build dep was previously provided by an existing build-dep, and is now missing. my fault.19:00
dobeysidi: those types of questions are probably also better asked in #ubuntu-packaging as it's not about launchpad itself, but general packaging issue19:24
sididobey, oh, didnt know there was a specific channel. Fair enough, will go there next time, thanks19:30

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