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

cjwatsonwgrant: Fancy some pip fun?  https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/379684 arranges to build wheels as part of our deployment artifact, which is something on the order of four or five times as fast on my laptop as building them from scratch (as happens when we rsync out from one path on carob to a different path on target machines).00:16
cjwatsonShould get deployment times back to in the area of what they were before the conversion to pip.00:17
wgrantcjwatson: what's the [0-9]* in the LP wheel name?00:20
wgrantBut sounds like a good idea00:20
cjwatsonVersion00:20
cjwatson$ grep ^__version__ setup.py00:21
cjwatson__version__ = '2.2.3'00:21
cjwatsonI just wanted to avoid future amusement with some dependency's name happening to start with "lp-" or something00:21
wgrantAh, fair enough, indeed00:21
wgrantNo underscores for us00:21
wgrantr=me00:22
cjwatsonExcellent, thanks00:24
cjwatsonatemoya:01:38
cjwatsonThu 27 Feb 12:44:33 UTC 2020 Building code01:38
cjwatsonThu 27 Feb 13:09:14 UTC 2020 Updating code01:38
cjwatsonThu 27 Feb 18:13:05 UTC 2020 Building code01:38
cjwatsonThu 27 Feb 18:32:48 UTC 2020 Updating code01:38
cjwatson(both builds before the change above)01:38
cjwatsonFri 28 Feb 01:32:28 UTC 2020 Building code01:38
cjwatsonFri 28 Feb 01:36:38 UTC 2020 Updating code01:38
cjwatsonSo that phase is indeed about five times as fast there.01:39
wgrantVery nice.01:47
lifelessnoice03:32
tomwardillooh, a bug fix from 2017, that's exciting :)12:42
pappacenaWell, I think we still have some bugs from 2011 open... 😅12:43
tomwardilllittle steps, little steps ;)12:43
pappacenaOne at a time. We will get there. :-)12:44
SpecialK|CanonWe have some bugs from before that ;)12:44
SpecialK|CanonI put a card on the list for Frankfurt to do a little triage of our Critical bugs12:44
cjwatsonWe have bugs from 2005 open ...12:44
tomwardillhuh, you can't sort bugs by age12:44
SpecialK|CanonI can believe they're still bugs, but we should maybe talk about the definition of "Critical"12:44
tomwardilloh, I guess Number is basically the same12:45
cjwatsontomwardill: You can, use the cog at the left of the list of sort columns12:45
tomwardillhttps://bugs.launchpad.net/launchpad/+bug/2512:45
mupBug #25: Allow discussion/commenting on translations <feature> <lp-translations> <ui> <Launchpad itself:Triaged> <https://launchpad.net/bugs/25>12:45
pappacenawow... #25!12:46
cjwatsonLaunchpad was of course the first project to use Launchpad for bug tracking (leaving aside the special case of bug 1)12:49
mupBug #1: Microsoft has a majority market share <canonical> <eoan> <iso-testing> <microsoft> <package-qa-testing> <Clubdistro:Fix Committed> <Computer Science Ubuntu:Fix Committed by compscibuntu-bugs> <LibreOffice:Fix Committed> <dylan.NET.Reflection:Fix Committed> <dylan.NET:Fix Committed>12:49
mup<EasyPeasy Overview:Fix Committed by ramvi> <Ichthux:Fix Committed by raphink> <JAK LINUX:Fix Committed by jp-charras> <LibreOffice:In Progress by bjoern-michaelsen> <Linux:New> <Linux Mint:Fix Released> <The Linux OS Project:In Progress> <Neobot:New> <Novabot:New> <OpenOffice:In Progress by12:49
muplh-maviya> <ReactOS Core Operating System:Incomplete> <Tabuntu:Invalid by tinarussell> <Tivion:Invalid by shakaran> <Tv-Player:Invalid> <Ubuntu Malaysia LoCo Team:In Progress by apogee> <Wine:Confirmed> <Ubuntu:Fix Released> <Arch Linux:New> <Baltix:Confirmed> <Debian:In Progress>12:49
mup<Fedora:Confirmed> <Fluxbuntu:Confirmed> <openSUSE:In Progress> <Tilix:New> <https://launchpad.net/bugs/1>12:49
cjwatsonI'm not sure what happened to bug 2; it's not just that it's private or something, it literally doesn't exist12:50
SpecialK|Canonthanks mup12:50
cjwatsonOK, I think the wheelhouse work has shaved about 40 minutes off our deploy-to-production time.  Not bad12:53
pappacenaGreat!12:54
SpecialK|Canon"not bad" he says12:54
SpecialK|Canonsounds pretty excellent to me, nicely done12:54
ilasc:)12:54
cjwatson(Comparing timestamp differences from the first couple of sections of https://deploy-logs.admin.canonical.com/index/legacy-lp/ndt/2020-02-25-ndt.log and https://deploy-logs.admin.canonical.com/index/legacy-lp/ndt/2020-02-28-ndt.log)12:54
ilascI second that!12:54
SpecialK|CanonAm I right in my reading of that first one being 2h end-to-end?12:55
cjwatsonSpecialK|Canon: Sort of, but bear in mind that it's four steps run in sequence so if the operator isn't paying much attention then that will extend the time12:56
cjwatsonSpecialK|Canon: A fairer comparison is to add the four timedeltas between "Starting <foo> step" and "Ended <foo> step"12:57
SpecialK|Canoncjwatson: ah thank you12:57
cjwatsonThe work I just did takes about 20 minutes off each of the build step (within nodowntime-security-update.sh) and the deploy step (within ./parallel.py --config=lp --options='--push-new-code' --targets='nodowntime')12:58
SpecialK|CanonI make that about ~45m of gaps, so around 1h15 in the first instance12:58
SpecialK|CanonHeck even of 2h, 40m is quite a chunk!12:59
SpecialK|CanonIt's only getting more impressive ;)12:59
tomwardillcjwatson: looks like we'll need to drop the NOT NULL constraint on OCIRecipe.git_path, as well15:52
tomwardillSnap does the same15:52
cjwatsontomwardill: Hm, yes, that makes sense15:56
tomwardillI'll do a DB patch for it15:57
cjwatsonYou could get away with a hack to avoid it but it would be gross15:57
cjwatsontomwardill: Maybe add something like the consistent_git_ref constraint that Snap has while you're there15:58
cjwatsontomwardill: While it was NOT NULL it wasn't needed, but now it is15:58
tomwardillah yeah, makes sense15:58
tomwardillcjwatson: should/can I reuse the DB patch number from the reverted one? Or best to assign a new one.16:19
tomwardillNot sure what happens if there's a gap in the run16:19
cjwatsontomwardill: Reusing is fine in this case since it never went anywhere interesting16:38
tomwardillcool :)16:38
cjwatsonJust update the description in dbpatches/allocated.txt16:38
tomwardillcjwatson: https://code.launchpad.net/~twom/launchpad/+git/launchpad/+merge/38003817:22
tomwardillDB patch, code patch incoming soonish17:23
cjwatsontomwardill: db=me17:26
tomwardillgah, pushed code to wrong branch17:27
* tomwardill undoes17:27
tomwardillmatching code, lifting the detachFromGitRepository code into OCIRecipe from Snap https://code.launchpad.net/~twom/launchpad/+git/launchpad/+merge/38003917:38
tomwardillwhat I have mostly learnt is that I cannot spell detach reliably.17:38
cjwatsontomwardill: LGTM, but blocked on the DB patch being rolled out17:59
tomwardillaye, it's not blocking any of the other OCI work though, so no worries :)18:00
* tomwardill unticks 'git_repository should not be null' on todo list, then ticks it again.18:00
cjwatsontomwardill: Do you have time for a quick review of https://code.launchpad.net/~cjwatson/lpjsmin/py3/+merge/379696 and/or https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/379996 before you finish up?18:04
tomwardillsure18:04
tomwardillcjwatson: +1 to both18:07
cjwatsonGreat, thanks18:10
tomwardillhuh, test failures on my DB patch. I definitely ran them, and I definitely had the change applied this time!18:21
cjwatsonHm, you swapped those two lines in the git_ref setter in your latest code patch18:22
cjwatsonWhich of course isn't on db-devel yet18:22
* tomwardill arghs18:23
* tomwardill headdesks18:23
cjwatsonMy guess is that you need to land a patch on master that just swaps those lines and nothing else18:23
tomwardillyeah18:24
cjwatsonThen we'll need to make sure to deploy that to production before rolling out the DB patch18:24
cjwatson(If we were a larger team this would require backing out the DB patch; as it is I think we can probably cope)18:24
tomwardillpatch incoming18:25
cjwatsonCool.  I need to finish up soon but I can at least cope with occasionally thwacking buildbot18:26
tomwardillhttps://code.launchpad.net/~twom/launchpad/+git/launchpad/+merge/38004618:27
tomwardilljust running tests18:27
cjwatsonr=me18:28
cjwatsonBut yeah, will be quickest to confirm that this does fix the db-devel failures before landing18:28
tomwardillhmm, I should check the tests against the old DB too18:28
cjwatsonI'm not worried about that in this case18:29
cjwatsonBut well, maybe worth a try in fact18:29
tomwardillrunning now18:31
tomwardilloh boo, that fails18:31
tomwardillstorm.database.IntegrityError: null value in column "git_path" violates not-null constraint18:32
cjwatsonUgh18:32
tomwardillI think backout out the DB patch and doing a two-stage deploy might be safest?18:33
cjwatsonWhat does the first stage look like, though?18:33
tomwardilldrop the NOT NULL on the git_path18:33
tomwardillthen deploy the code change18:33
tomwardillthen add the constraint18:34
cjwatsonAh, I see.  A bit elaborate, but at 6:30pm on a Friday I don't have a better plan.18:34
cjwatsonSo not really back out - you can just land a change that edits that DB patch in place.18:34
cjwatsonGiven that there's nothing on production there's probably some alternative strategy, but let's go with this18:34
tomwardillhow about a revert for the DB patch, given 18:30 friday, etc. Then fix it up next week?18:34
cjwatsonI think it would be fine to back out just the new constraint18:35
tomwardillso just delete that line from the patch?18:35
cjwatsonDROP NOT NULL on its own is pretty safe.18:35
cjwatsonYeah18:35
tomwardillrunning tests18:36
tomwardillokay, they passed with both old and new code: https://code.launchpad.net/~twom/launchpad/+git/launchpad/+merge/38004818:39
cjwatsontomwardill: db=me, thanks18:41
tomwardillcjwatson: landing, apologies for the late evening mess!18:42
cjwatsontomwardill: np.  you'll need to force buildbot18:42
cjwatsonwait until you see the change at the left of http://lpbuildbot.canonical.com/waterfall first18:43
tomwardillon it18:43
cjwatsonRight, mostly gone.  See you in FRA18:45
tomwardillo/18:46

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