/srv/irclogs.ubuntu.com/2020/01/31/#launchpad-dev.txt

tomwardillsurprise, it's iptables!16:00
SpecialK|Canonlol16:01
tomwardill\\ΓΈ/ finally done it16:18
tomwardillfor future travellers: lxd has a defualt forward accept policy that deliberatly preceeds ufw rules16:18
tomwardillwhich is obvious, in retrospect16:20
SpecialK|Canonnicely found16:21
SpecialK|Canonmost things are obvious in retrospect - that's how retrospect works ;)16:22
tomwardilliptables -S shows the FORWARD rules, which are higher in the list than the ufw ones16:22
tomwardill`lxc network set lxdbr0 ipv4.routing false` will change it to a DENY16:23
tomwardillor you can manually delete the rules16:23
tomwardillI think there's config somewhere, but not found it yet16:23
cjwatsonSigh, first breezy regression (issue with inline comments containing unicode)17:14
cjwatsonWell not a regression in breezy itself, regression caused by a bit of my port17:15
tomwardillBuild log: sendto(ntp.buildd): Operation not permitted17:19
* tomwardill gradually finds all the things that are now failing17:19
cjwatsontomwardill: I usually set "ntphost =" in /etc/launchpad-buildd/default for a local builder17:22
cjwatsonSince you probably don't have an ntp.buildd anyway17:22
tomwardillI just /etc/host'd it to ntp.ubuntu.com17:22
cjwatsonCan't be proxied though17:22
cjwatsonSo either allow it or change config to not use it17:23
tomwardillyeah, I've also allowed it in ufw17:23
cjwatsonAha, tests didn't catch this because they tried to use \u inside a str17:42
cjwatsonPython 2 string (bytes) literal that is17:42
cjwatsonWhere \u1234 corresponds to the bytes \ u 1 2 3 417:42
SpecialK|CanonI...yikes17:44
cjwatsonNice landmine17:44
cjwatsonhttps://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/37841417:52
* SpecialK|Canon does some obligatory Hypothesis flag-waving17:57
cjwatsonI've occasionally thought about it, yes.  Would need to take some care to apply it only to true unit tests though - it would probably get prohibitively slow for anything that talks to the database17:58
SpecialK|CanonOh absolutely17:59
tomwardillTemporary failure resolving 'archive.ubuntu.com'17:59
tomwardillno.17:59
tomwardillnetworks.17:59
SpecialK|Canonhugops17:59
tomwardillstop it.17:59
cjwatson(Well, maybe.  If the database tests were in the happy path that can just ROLLBACK between tests rather than having to clone a fresh template then maybe.17:59
cjwatson)17:59
cjwatson.oO( PITR for the test suite )17:59
SpecialK|Canonooh18:00
cjwatsonWould that work I wonder?  I don't know enough about how PITR works18:00
SpecialK|CanonI only know of it as a concept (so sure, if we can, then yay) but it sounds like you're thinking of a specific impl?18:01
cjwatsonProbably not actually faster though.  I think if you're doing PITR then you have to replay WAL forwards, not backwards18:02
cjwatsonSo the situation that requires cloning a fresh template is when a test has committed a transaction, since then you can't just roll back to get to a clean state18:03
* tomwardill -> EOD to somewhere that doesn't involve computers :)18:04
cjwatsonIf we could rewind time using WAL on disk then that would be faster18:04
cjwatsonBut I think that isn't really how it works, sadly18:04
SpecialK|Canonsomething something time travel something18:09
cjwatsonhttps://www.postgresql.org/docs/10/app-pgrewind.html is a thing ...18:11
cjwatsonMay be worth experimenting at some point to see if it's faster18:12
SpecialK|CanonWill have a read next week - sounds neat!18:27
* SpecialK|Canon EOWs, take care y'all18:27
pappacenaSee ya, Kristian18:31
roadmrSpecialK|Canon ????19:23

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