/srv/irclogs.ubuntu.com/2015/04/24/#launchpad-dev.txt

wgrantcjwatson: Why "except Exception" in merge-conflicts?10:57
cjwatsonwgrant: Because pygit2 can raise a cluster of exceptions and I can't think of a better response to any of them than just leaving the file in a dodgy unresolved conflicted state.  Although I guess we could just decline to handle that exception at all and let it 500.11:04
wgrantcjwatson: Crashing rather than giving a bogus diff seems reasonable to me, unless we discover otherwise later on.11:05
cjwatsonOK, done.11:06
cjwatsonHm.  It's a bug that PreviewDiff.fromBranchMergeProposal doesn't set preview.prerequisite_revision_id, isn't it?11:11
wgrantQuite likely.11:12
cjwatsonSeems like that means that we won't notice when a preview diff is stale due to a changed prereq.11:12
wgrantWell, we don't consider diffs stale unless the source branch has changed, usually.11:12
cjwatsonI'm not actually sure stale affects anything much anyway ...11:14
cjwatsonThe comments claim there's a stale-diff CSS class, but that's never set by anything.11:14
cjwatsonAnd I don't think whatever updates preview diffs has much to do with the stale property definition per se.11:15
wgrantIt may have been more relevant in the MAD days.11:15
cjwatsonMAD?11:15
wgrantMerge Analysis Daemon11:15
wgrantFrom the good old days when you had to run a script to generate preview diffs yourself because reasons.11:15
cjwatsonI don't remember that.11:15
wgrant2008ish, I think.11:16
cjwatsonwgrant: I think that https://code.launchpad.net/~cjwatson/rabbitfixture/work-around-stop-hang/+merge/257361 should work around quite a few of the pesky buildbot hangs, although we'd need to reclaim PyPI access.12:34
wgrantcjwatson: Bah, I thought I'd caught all those packages apart from sidnei's.12:52
wgrantbac: ^^ can we have rabbitfixture PyPI access?12:53
bacwgrant: you want access to rabbitfixture on pypi?  what account?12:56
bacwgrant: i had no idea i had access but i'm glad to add you.12:56
wgrantbac: wgrant and cjwatson, pls.12:57
bacokey doke.12:58
wgrantbac: Thanks.12:59
cjwatsonwgrant: Ta.  subprocess32 was a nice discovery.13:01
wgrantI had no idea of it.13:01
xnoxwgrant: are lazr.* & launchpadlib reclaimed as well?13:13
* xnox wants to release those on pypi13:13
wgrantxnox: Yes, I have access to all lazr packages except two that nobody cares about.13:13
wgrantYell if you want some.13:13
* xnox checks which ones i care about13:13
xnoxlazr.restful, lazr.restfulclient, launchpadlib, lazr.delegates, lazr.authentication - you seemed to have access to all of them13:15
* xnox never did pypi releases13:15
xnoxso I'll ping you to do some of them ;-)13:15
xnoxunless it's automated13:15
cjwatsontwine IYF13:15
cjwatsongpg --armor -b dist/foo.tar.gz && twine upload dist/foo.tar.gz{,.asc}13:16
cjwatsonassuming you already have a suitable .pypirc13:18
cjwatsonRight, rabbitfixture upgrade landing in devel, so hopefully that's the end of the spurious hangs.13:24
cjwatsonAt least that relatively common species of them.13:24
cjwatsonwgrant: Have you had a chance to try out mojo locally recently?14:37
wgrantcjwatson: I like having my containers working.14:40
wgrantSo no mojo since I left home; juju 1.23 is iffy enough14:40
cjwatsonMm, I was trying to do the apache2/haproxy unhulksmashing task, but it's pretty tough to do blind ...14:40
wgrantcjwatson: Does it not work?14:40
wgrantAh yeah14:40
cjwatsonWell I never solved the problem I had last Saturday.14:41
wgrantWas that the share-netns?14:41
cjwatsonYeah14:41
wgrantLet's see if I can make it work ish.14:42
cjwatsonHm.  Do we actually need apache2 at all if haproxy is doing SSL termination, I wonder?14:42
cjwatsonAll it's doing is logging, proxying to turnip, and getting in the way14:42
cjwatson(I ask because the stock apache2 charm doesn't support the relation stuff it'd need to be frontended by haproxy)14:43
wgrantWe don't currently make much use of it, indeed.14:43
wgrantI suspect that we will in future, but it could be removed for now if it's awkward.14:43
cjwatsonWhat for?  Routing hacks or something?14:44
wgrantOr serving any static content, redirecting / rather than returning uselessness, etc.14:46
cjwatsonIt'd be tempting to just do that in turnip directly.14:49
cjwatsonWe already have a few static bits there for cgit.14:49
cjwatson(Which, OK, are kind of in the wrong place but it shows it's not hard)14:49
wgrantHeh14:49
wgrantSure.14:49
cjwatsonThe HTTP -> HTTPS redirection is reasonably easy with haproxy 1.5.15:15
wgrantorly15:16
wgrantI'm used to LP's haproxy which requires error pages to include HTTP headers...15:16
cjwatson"redirect scheme https code 301 if !{ ssl_fc }"15:16
cjwatsonI think the only difficult bit is that we probably have to change the charm and the spec at once due to using relation-driven proxying, unless perhaps we add something to turnip's config.yaml to let it know whether it's being frontended directly by a modern haproxy15:17
cjwatson(Because then haproxy has to listen on ports 80/443, not the same ports as turnip)15:17
wgrantI'm not sure that using sensible relations here is sensible.15:19
wgrantBut do what seems sensible.15:19
cjwatsonThanks for the detailed advice. :P15:19
cjwatsonI don't know.  Could put the redirect bit directly in the spec, but there isn't really a good way to override the smart-http port at spec level AFAICS.15:20
cjwatsonThinking of something like http://paste.ubuntu.com/10879298/15:20
wgrantew15:21
wgrantBut that would indeed work, I think.15:21
cjwatsonIt's kind of weird to have this in turnip.15:21
wgrantThe lack of relation config bites us again15:21
cjwatsonI guess an alternative is to put the 80/443 logic in the spec and have haproxy proxy to itself15:22
cjwatsonSo haproxy:443 -> haproxy:9419 -> turnip:941915:22
cjwatson(Which I'm assuming one can do, but it's kind of shuffling bytes around for no production benefit)15:22
cjwatsonSeriously?  My random-buildbot-hang fix has failed buildbot twice in succession with different random errors?21:44
cjwatsonbuildbot has a sense of humour.21:44
wgrantIt certainly does.21:46
cjwatsonNow it's failing in a different bit of rabbitfixture, but it doesn't look related21:53
cjwatsonMust do something about attaching that log as a test detail21:53

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