/srv/irclogs.ubuntu.com/2020/02/03/#launchpad-dev.txt

stubHaving the test suite rewind the database is best done by not using the system PostgreSQL service, but having it run the postgres executable on a DATADIR itself. It is easy then to kill it and reset the DATADIR.05:15
stubWe didn't do it *at the time* because it was slower than keeping the process running a creating a new database from a template.05:16
stubBut those timings change every release.05:16
wgrantIt's still slower05:17
wgrantWell, it was ~2y ago when I last tested05:17
wgrantStartup isn't quick.05:17
wgrantIMO the most likely way to optimise further is to have another thread/process keeping a pool of fresh DBs available that can just be renamed across.05:18
wgrantThere are also possibilities around causing the librarian to run in the same snapshot as the main testrunner (and testrunner-appserver, where applicable), so the commit after librarian adds can be optimised out in the test suite.05:21
SpecialK|Canoncjwatson: nice!09:22
cjwatsonilasc: go ahead and top-approve https://code.launchpad.net/~ilasc/launchpad/+git/launchpad/+merge/377875 when you're ready11:47
ilasccjwatson thanks! done11:48
cjwatsonCould I have reviews of https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/378126 and https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/378131 ?  Simple-ish dependency upgrades11:50
ilascon it now11:51
cjwatsonThanks12:00
cjwatsonMore py3 reviews wanted: https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/378430 (dep upgrade), https://code.launchpad.net/~cjwatson/lazr.restful/wsgiref-py2/+merge/378432 (setup.py tweak), https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/378459 (dependency adjustments), https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/378460 (large, ...14:21
cjwatson... bulk conversion to six.moves.urllib.*)14:21
cjwatsonOther than the above, FWIW, all it takes to get the virtualenv building on py3 is: (1) PYTHON := python3 (2) remove bzr, mailman, meliae, Paste*, subvertpy (3) upgrade wsgi-intercept and FormEncode14:25
cjwatsonsubvertpy needs non-trivial work to unblock removing bzr properly, as previously discussed, but everything else is in progress14:27
cjwatsonThen there's a lot to do before the rest of the build will work, because building API documentation tends to import basically everything.  And running very much of the test suite before lazr.restful at least sort of works is going to be hard.14:29
SpecialK|CanonThat's awesome14:32
SpecialK|CanonNice work14:32
cjwatsonhttps://github.com/cdent/wsgi-intercept/pull/61   so many yaks, and some of them are camped out in other people's houses15:35
tomwardillI'd say 'networks, not even once', but it appears that my computer agrees15:59
tomwardillIt's installing things into the build LXD, while the firewall is active!17:25
tomwardillshame that's as far as it gets, but still... it did a thing!17:26
cjwatsonhttps://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/378477   another py3 improvement, gradually disentangling stuff22:09
pappacenaDone!22:19
cjwatsoncheers22:45

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