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

cjwatsonYou get impressively confusing errors if you accidentally declare a field as allow_none=False, default=None09:56
cjwatsonI mean, "NoneError: None isn't acceptable as a value" which is fair enough, but had to disable C extensions to figure out which column was involved ...09:57
cjwatsonCould anyone review https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/380593 and https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/380594 please?09:58
cjwatsonAnd maybe https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/380616 to remove some old bzr stuff we no longer need to carry around09:58
cjwatsonwgrant: Is https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/380059 possibly something you need to look at?  Removes the XPI importer, involved some moderately involved test rearrangements as a preliminary step09:59
cjwatsonAlso also, https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/380475 is a simple bug-fix10:01
wgrantcjwatson: I don't necessarily think so, unless you do10:02
cjwatsonOK, will see if I can find a vic^Wvolunteer10:04
cjwatsonTranslations is in a slightly weird position where changes aren't generally DB or security or anything like that but it's also the main bit that not even I know10:04
cjwatsonhttps://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/380594 (thanks ilasc for the review) was sort of amusing; I don't think I've ever seen pre-2.2 compat in the wild before10:42
ilasc:)10:43
cjwatsonTrying to remember whether I started learning Python at 2.3 or 2.4.  I think it must have been 2.3 - I vaguely recall having to write compatibility code for set not being in the stdlib yet10:43
cjwatsonAh yes, https://launchpad.net/ubuntu/+source/python-defaults/+publishinghistory?batch=75&direction=backwards&start=150 says warty had 2.310:44
cjwatson(The dates are kind of lies there - even if you expand the bottom row, it only says 2005-12-20, which I presume was when warty was first imported into Launchpad; the first few Ubuntu releases ran on Debian's archive management code instead)10:45
StevenKOh wow, I'd forgotten about that10:48
StevenK(First Python version for me was 1.5)10:48
cjwatsonAh yeah, you were writing linda back then weren't you?10:49
StevenKYup10:51
StevenKWe didn't even have list comprehensions!10:51
cjwatsonuphill, both ways, in the snow10:53
StevenKYou, off my lawn :-P10:53
cjwatsonCould I have a review of https://code.launchpad.net/~cjwatson/launchpad-mojo-specs/+git/launchpad-mojo-specs/+merge/380678 to fix a CI failure please?12:26
cjwatsonFor the YAML-lovers among you12:26
ilasc:-)12:29
ilascon it12:29
cjwatsonpappacena: I think you possibly forgot to push your allocation to lp:~launchpad/+junk/dbpatches ?15:28
cjwatson(for https://code.launchpad.net/~pappacena/launchpad/+git/launchpad/+merge/380254)15:28
pappacenaAh, sadly, yes. I forgot. I am out for lunch now. I will do it as soon as I get back15:31
cjwatsonnp, just wanted to make sure it wasn't forgotten15:37
pappacenaCommited the allocation, cjwatson17:28
pappacena(Or do we usually make MP for this too?)17:28
cjwatsonNo, just commit17:30
cjwatsonUpgrading dogfood for your proxy change now.  I might just about have time to help with a bit of QA there ...17:31
pappacenaOk! Thanks!17:31
cjwatsonpappacena: https://dogfood.launchpadlibrarian.net/412902206/mirrors.edge.kernel.org-archive-probe-logfile.txt looks good; lots of 404s but it's a partial mirror (and dogfood's DB is behind production, which also confounds things a bit)17:49
cjwatsonpappacena: https://dogfood.launchpadlibrarian.net/412902207/mirror.cse.unsw.edu.au-release-probe-logfile.txt looks odd.  Why is it apparently trying to talk to port 80?17:50
pappacenauhm... really strange17:50
pappacenalet me see if I can find something on the code. I don't remember seeing any hardcoded port anywhere (the tests we have even open random ports for testing...)17:52
cjwatsonMaybe something to do with _parse defaulting to 80?17:53
cjwatsonI haven't worked out the relevant code paths though, will leave it to you17:53
pappacena" _parse defaulting to 80?" it could be... I'm checking17:54
pappacenaRight, so for HTTPS we don't use _parse when doing the request (since treq receives the unparsed URL), but to show the error message we use parse. That's why it's showing port 80. I'll submit a MP to properly set the default port on _parse to 443 if scheme is https.18:02
pappacenaAnd it failed because this server doesn't seem to support TLS v1.1; only 1.2 and 1.318:02
cjwatsonAha18:02
cjwatsonIs that due to old OpenSSL?18:02
cjwatson(I mean, the fact that we're demanding 1.1)18:03
cjwatsonOr is it more in our control?  We don't want to be discouraging 1.2+18:03
pappacenaNo specific reason for using 1.1... I neede to explicitly set the version, and I assumed the protocol would be backward compatible, but it seems that I'm wrong...18:04
cjwatsonOh, I'd missed that you set it explicitly18:04
cjwatsonI think we should at least say 1.2, yes18:05
pappacenaYep... I set it in a kind of hacky way, because Twisted has a kind of strange interface for the HTTPS policy. It's missing a method in the default "browser-like" policy, apparently...18:05
pappacena`contextFactory.getContext = lambda: Context(TLSv1_1_METHOD)`18:05
cjwatsonYeah, I'm not totally familiar with that stuff18:06
pappacenaMe neither... I was fixing one exception at a time, until it eventually worked fine... :-(18:06
cjwatson:-)18:07
pappacenaI'll submit a MP upgrading this context to version 1.2 and "calculating" the port on _parse depending on the scheme in half an hour. I need to pick my daughter at school now.18:07
cjwatsonThanks.  No great rush, I'm about to finish for the day18:08
cjwatsonThis looks like a good improvement so far18:08
pappacenaWell, at least is mostly working (and what is not working seems to be easily fixable) :-)18:08
cjwatsonYep18:09
cjwatsonHaven't had time for the change-override-log re-reviews today as too much production debugging, but I have them open18:09
pappacenaNo problem. I still need to fix the copied_from_archive with the previous feedbacks.18:09
* cjwatson EODs, I'm not going to make significant progress on Built-Using at this point18:35
cjwatsonHave a good weekend18:36
SpecialK|CanonTake care!18:37
pappacenaHave a good weekend!18:53

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