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

ilascam I the only not able to run Turnip API layer? Getting this from a fresh Master clone:09:50
ilascpkg_resources.ContextualVersionConflict: (pycparser 2.19 (/home/ilasc/turnip/env/lib/python2.7/site-packages), Requirement.parse('pycparser<2.18'), set(['pygit2']))09:50
cjwatsonilasc: What container setup steps have you done?09:50
cjwatsonAlso Thiago just landed some dependency changes which might be relevant09:51
cjwatsonWorth checking that your dependencies clone is up to date09:52
ilasccjwatson: went with fresh container and followed the Turnip Readme file for a completely isolated env.09:52
ilascwill do, thanks!09:52
cjwatsonI remember this area being delicate09:52
cjwatsonHmm09:54
cjwatsonI wonder how pappacena managed to land this09:55
cjwatsonrequirements.txt has pycparser==2.19 and pygit2==0.27.4.  But pygit2 0.27.4 depends on pycparser<2.1809:55
cjwatsonWhich is indeed what pip is telling you09:55
cjwatsonI don't understand how Jenkins passed given that09:57
cjwatsonpappacena: ^- could you have a look at this when you get in?09:57
ilascagreed - thank you Colin!09:58
SpecialK|Canontests pass on master09:59
cjwatsonpappacena: pygit2 upgrades are delicate and require careful coordination because of the libgit2 dependency; it may be simplest to back off a little to pycparser 2.17 if that's not too problematic for other reasons09:59
cjwatsonperhaps whether it passes depends on what version of pip you're starting with09:59
cjwatsonI wonder if ilasc has a different version of pip on $PATH or something10:00
ilascI'm trying to follow your recommendation and eliminate all the "on the host" setup items. Started by get my setup as similar to Tom's as possible - completely isolated LXD (as I should've done from the begging) and VSCode remotely attached for debug to each LXD10:00
ilascSpecialK|Canon: tests pass in my container too10:01
ilascit's the "make run-api" that fails10:02
cjwatsonAh right, so tests pass but then something later complains, I see10:02
ilascyes, sorry! wasn't clear enough at first10:02
cjwatsonSo I guess pserve calls the usual entry point machinery in pkg_resources and that notices the unsatisfied dependencies10:03
cjwatsonWouldn't hurt to spend a little time writing a failing test for this while we have the convenient opportunity to do so10:03
cjwatsonAnd then we can make sure it passes once pappacena fixes up the dependencies10:03
cjwatson(And yes, I see the same "make run-api" failure)10:04
cjwatsonilasc: You can run "env/bin/pip install pycparser==2.10" (in the container of course) to temporarily fix up your environment so that "make run-api" works10:06
cjwatsonPerhaps we should have a unit test that runs "env/bin/pip check"10:07
cjwatsonOr even just run that in the Makefile after installing dependencies10:07
cjwatsonProbably the latter makes more sense10:07
cjwatsonCould also possibly just land an MP that backs out to pycparser==2.10 in requirements.txt.  But pappacena should be aware in case that disrupts their py3 work10:11
ilasccjwatson: noted and thank you, 1:1 with Kristian, reading now, agreed and I will add the Unit Test after lunch10:29
cjwatsonPossibly build system change rather than unit test, but sure10:40
pappacenaHey, folks. I'll take a look on this problem new. I'll probably downgrade this dep. AFAIR, it was probably just raising some DeprecationWarning on py3. Shouldn't be a big problem to downgrade it. I'll add the check on Makefile too. Sorry about that, and thanks for the help, ilasc!11:50
tomwardillhttps://code.launchpad.net/~twom/launchpad/+git/launchpad/+merge/380416 is updated with a shortcut as I couldn't find a bettter way that was reliable11:51
cjwatsontomwardill: Yep, I think that'll do11:59
tomwardillta, landing12:03
ilascpappacena: I'm just back from lunch, great timing :) I'll leave you to it in that case - working on the Unit Tests for my "show MP URL" in Turnip, I can stay away from "run make-api" for now12:12
pappacenaThanks, ilasc. It shouldn't take long. I'll open the MP in a couple of minutes.12:12
ilascpappacena: excellent, thank you!12:13
pappacenaIt should be good to be reviewed now:12:21
pappacenaDeps MP: https://code.launchpad.net/~pappacena/turnip/+git/turnip-dependencies/+merge/38054512:21
pappacenaCode MP: https://code.launchpad.net/~pappacena/turnip/+git/turnip/+merge/38054612:21
cjwatsonpappacena: r=me on both, thanks12:24
pappacenaThanks, everyone.12:24
ilascpappacena: +112:25
cjwatsonpappacena: also I've just updated https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/380391 per your comments12:25
pappacenaAwesome. I'll take a look!12:25
cjwatsonCheers12:25
cjwatsonpappacena: Great, thanks.  You have a bunch of review comments in exchange ;-)13:16
cjwatson(Not sure to what extent you'll consider this a fair exchange)13:16
SpecialK|Canoncjwatson: Thank you for handling Q689260 (mirror 307)13:29
cjwatsonNP, I had some useful mental state about that13:37
pappacenacjwatson, well... it's a change. And feedback is always good hahaha13:43
pappacena*"an exchange", I mean13:55
tomwardillDid the thing: https://dev.launchpad.net/Soyuz/HowToDevelopWithBuildd15:39
tomwardillLinked under 'Set up for development' on https://dev.launchpad.net/Soyuz/HowToUseSoyuzLocally15:39
cjwatsonGreat, thanks15:42
tomwardillI'll try and keep on top of lxd changes there, when we can make it simpler15:44
SpecialK|Canon<315:44
tomwardillthe drive mounting not doing uid mapping is a bit awkward atm15:44
tomwardillcjwatson: can you point me at your oci registry branch?16:12
tomwardillI've lost it somewhere16:12
cjwatsontomwardill: https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+ref/db-oci-push-rule I think?16:14
tomwardillthat's the one16:14
tomwardillI was searching for registry16:14

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