Saturday, 2020-04-18

*** bdodd has quit IRC00:18
*** bdodd has joined #openstack-infra00:19
*** ociuhandu has joined #openstack-infra00:20
*** ociuhandu has quit IRC00:24
*** dayou has quit IRC00:39
*** dayou has joined #openstack-infra00:55
*** jamesmcarthur has joined #openstack-infra00:58
*** yamamoto has joined #openstack-infra01:10
*** jamesmcarthur has quit IRC01:12
*** jamesmcarthur has joined #openstack-infra01:12
*** jamesmcarthur has quit IRC01:19
*** armax has quit IRC01:20
*** jamesmcarthur has joined #openstack-infra01:48
*** KeithMnemonic has quit IRC02:02
*** yamamoto has quit IRC02:03
*** __ministry has joined #openstack-infra02:06
*** benj_ has quit IRC02:07
*** apetrich has quit IRC02:09
*** benj_ has joined #openstack-infra02:16
*** yamamoto has joined #openstack-infra02:19
*** jamesmcarthur has quit IRC02:44
*** jamesmcarthur has joined #openstack-infra02:44
*** yamamoto has quit IRC02:51
*** ociuhandu has joined #openstack-infra03:03
*** ociuhandu has quit IRC03:08
*** Goneri has quit IRC03:19
*** roman_g has quit IRC03:37
*** cdearborn has quit IRC03:50
*** yamamoto has joined #openstack-infra04:33
*** evrardjp has quit IRC04:37
*** evrardjp has joined #openstack-infra04:37
*** yamamoto has quit IRC04:42
*** yamamoto has joined #openstack-infra04:48
*** yamamoto has quit IRC04:48
*** yamamoto has joined #openstack-infra04:53
*** jamesmcarthur has quit IRC05:06
*** benj_ has quit IRC05:17
*** benj_ has joined #openstack-infra05:17
*** yamamoto has quit IRC05:29
*** yamamoto has joined #openstack-infra05:40
*** ramishra has quit IRC05:45
*** ociuhandu has joined #openstack-infra05:46
*** yamamoto has quit IRC05:48
*** ociuhandu has quit IRC05:50
*** dklyle has quit IRC05:58
*** yamamoto has joined #openstack-infra06:04
*** yamamoto has quit IRC06:10
*** yamamoto has joined #openstack-infra06:24
*** yamamoto has quit IRC06:32
*** yamamoto has joined #openstack-infra06:35
*** igordc has joined #openstack-infra06:39
*** yamamoto has quit IRC06:40
*** yamamoto has joined #openstack-infra06:54
*** ociuhandu has joined #openstack-infra07:00
*** slaweq has quit IRC07:18
*** xek has joined #openstack-infra07:41
*** ociuhandu has quit IRC07:41
*** slaweq has joined #openstack-infra08:03
*** igordc has quit IRC08:06
*** slaweq has quit IRC08:08
*** slaweq has joined #openstack-infra08:22
*** __ministry has quit IRC08:30
*** ociuhandu has joined #openstack-infra08:31
*** ociuhandu has quit IRC08:45
*** ociuhandu has joined #openstack-infra08:46
*** ralonsoh has joined #openstack-infra09:19
*** slaweq has quit IRC09:29
*** ociuhandu has quit IRC09:36
*** slaweq has joined #openstack-infra09:40
*** ociuhandu has joined #openstack-infra09:41
*** slaweq has quit IRC09:45
*** ociuhandu has quit IRC09:46
*** ociuhandu has joined #openstack-infra10:11
*** ociuhandu has quit IRC10:44
*** ralonsoh has quit IRC11:27
*** ociuhandu has joined #openstack-infra11:31
*** ociuhandu has quit IRC11:36
*** yamamoto has quit IRC12:32
*** dayou has quit IRC12:41
*** ociuhandu has joined #openstack-infra12:48
*** yamamoto has joined #openstack-infra12:49
*** yamamoto has quit IRC12:52
*** __ministry has joined #openstack-infra13:13
*** yamamoto has joined #openstack-infra13:15
*** slaweq has joined #openstack-infra13:25
*** slaweq has quit IRC13:28
*** slaweq has joined #openstack-infra13:30
*** ociuhandu has quit IRC13:35
*** __ministry has quit IRC13:44
*** slaweq has quit IRC13:55
*** ociuhandu has joined #openstack-infra14:09
openstackgerritMonty Taylor proposed openstack/project-config master: Use legacy infra puppet jobs from system-config  https://review.opendev.org/72088914:14
*** yamamoto has quit IRC14:16
openstackgerritMonty Taylor proposed openstack/openstack-zuul-jobs master: Remove legacy infra puppet apply jobs  https://review.opendev.org/72089014:20
mordredAJaeger: ^^ some cleanup14:24
AJaegeryeah ;)14:24
openstackgerritMonty Taylor proposed openstack/project-config master: Use legacy infra puppet jobs from system-config  https://review.opendev.org/72088915:31
openstackgerritMonty Taylor proposed openstack/project-config master: Stop running jobs on unused puppet repos  https://review.opendev.org/72090015:31
openstackgerritMonty Taylor proposed openstack/project-config master: Retire unused puppet modules  https://review.opendev.org/72090115:31
*** yamamoto has joined #openstack-infra15:31
*** ociuhandu has quit IRC15:34
*** ociuhandu has joined #openstack-infra15:35
*** ociuhandu has quit IRC15:40
*** yamamoto has quit IRC15:41
*** armax has joined #openstack-infra15:50
openstackgerritMonty Taylor proposed openstack/project-config master: Use legacy infra puppet jobs from system-config  https://review.opendev.org/72088915:55
openstackgerritMonty Taylor proposed openstack/project-config master: Stop running jobs on unused puppet repos  https://review.opendev.org/72090015:55
openstackgerritMonty Taylor proposed openstack/project-config master: Retire unused puppet modules  https://review.opendev.org/72090115:55
*** ociuhandu has joined #openstack-infra15:59
AJaegerfungi, if you want to look into lower-constraints, see https://review.opendev.org/#/c/72087716:13
*** ociuhandu has quit IRC16:14
AJaegerremoving install_cmd leads to a failure that looks correct - so, I'm surprised why it works with install_cmd.16:15
fungihere's a successful build for comparison: https://zuul.opendev.org/t/openstack/build/cbac188c8bcf4125b38c91fc229a4c3b16:22
fungiand the failing build from the change you linked: https://zuul.opendev.org/t/openstack/build/83104f33d2c24ac5bab700583066e2a716:23
fungitox/lower-constraints-1.log for both of them show -c/home/zuul/src/opendev.org/openstack/networking-hyperv/lower-constraints.txt is passed to the pip install command16:24
fungiwhich is good, because it's in the deps field in tox.ini16:24
fungithe problem seems to arise in tox/lower-constraints-2.log16:25
AJaegerthe first (passing) has ,ryu==4.32 installed, the second fails on ryu 4.1416:25
fungithis may be a timing coincidence?16:26
fungithe passing build has this: cmd: /home/zuul/src/opendev.org/openstack/networking-hyperv/.tox/lower-constraints/bin/pip install --exists-action w -e .16:26
AJaegerhyperv lower-constraints has:16:26
AJaegerlower-constraints.txt:ryu==4.1416:26
fungithe failing one instead does: cmd: /home/zuul/src/opendev.org/openstack/networking-hyperv/.tox/lower-constraints/bin/python -m pip install --exists-action w -e .16:26
fungiwe may need a -- in there?16:27
AJaegeryes, pip install vs python -m pip install16:27
fungiahh, not a timing coincidence per se, but we did recently switch up the tox command to be python -m pip right?16:28
* AJaeger now reads https://snarky.ca/why-you-should-use-python-m-pip/16:28
AJaegerfungi: no, we did not - my change *removes* it to use the default16:28
AJaegerfungi: similar to https://review.opendev.org/#/c/714489/16:29
fungianyway, i expect part of the problem here is that pip install is being run twice and the second time it runs the constraints option is not supplied, which is likely to lead to nondeterministic behavior16:29
fungithough --exists-action w should mitigate that hopefully16:29
AJaegerwhy run twice? I only see pip install run once16:31
AJaegerI don't see why pip vs python -m pip makes a difference since we're in a tox environment. there must be other subtile differences here ;(16:33
fungiRequirement.parse('ryu>=4.24'), {'neutron'})16:33
fungiso i think that's saying a version of neutron is being installed which claims to require ryu>=4.24 but ryu==4.14 was found installed and pip was told not to upgrade it16:34
AJaegeragreed16:34
AJaegerbut that's the same invocatoin as in the other case that works, isn't it?16:35
fungiso here's what i suspect to be the errant behavior in the passing job: https://zuul.opendev.org/t/openstack/build/cbac188c8bcf4125b38c91fc229a4c3b/log/tox/lower-constraints-2.log#148-15116:36
*** evrardjp has quit IRC16:37
AJaegercheck line 133 - that one complained about oslo-db and did not fail ;(16:37
*** evrardjp has joined #openstack-infra16:37
fungiyeah... i wonder if they've adjusted a lower bound on one of their deps and not regenerated the lower-constraints.txt file properly16:38
fungibecause constraining to an oslo-db which needs a different alembic than is in the constraints list shouldn't happen16:39
AJaegerexactly16:39
AJaegerBut the error behaviour here is different, pip install ignores the error while pypthon -m pip signals it.16:40
fungiyeah, that seems to be the case16:40
* AJaeger thinks that the OpenStack community has not understood lower-constraints really. Nice idea - but only now with using "pip -m" (removing install_cmd) working...16:41
fungimay be worth someone regenerating the lower-constraints.txt from their actual {test,})requirements.txt files and trying that with and without the tox.ini change16:41
fungii wouldn't be surprised if teams have simply forgotten that changing requirements lower bounds means you need to regen your lower constraints set16:42
fungiand not just edit specific entries16:42
AJaegersmcginnis explained it should include even indirect dependencies, so needs more than {test,}requiremntst16:43
fungior that borrowing a lower constraints list from another project which uses different lower bounds on their reqs won't work as expected16:43
fungiright, that's why i said "regenerate"16:43
AJaegerAt least I did only chane single entries instead of regenerating...16:43
fungithere's a tool in the requirements repo for correctly generating constraints lists16:43
AJaegerwhenever I touched16:43
AJaegerseems too few used it16:44
AJaegerthis had me puzzling in the last weeks - but I'm not going to fix it. I started that thread to point out the problem, let's see whether anybody takes it on16:44
fungilooks like more evidence of ignored mismatches in the previous pip install run as well: https://zuul.opendev.org/t/openstack/build/cbac188c8bcf4125b38c91fc229a4c3b/log/tox/lower-constraints-1.log#420-42416:51
*** ociuhandu has joined #openstack-infra16:52
*** __ministry has joined #openstack-infra16:55
*** ociuhandu has quit IRC16:57
AJaegerfungi, thanks that helps. Want to reply to my last email with those ERRORs and point out that removin the install_cmd is the right thing to get the reports?17:00
fungiAJaeger: yeah, i'm composing a small novel17:11
AJaegerthanks!17:11
fungii'm discovering that https://docs.openstack.org/project-team-guide/dependency-management.html doesn't include good advice about how to update lower-constraints.txt, and the tool i thought the requirements repo had to do this isn't entirely discoverable (assuming it exists at all)17:11
AJaegerthat's sad - yes, it left me puzzled as well yesterday17:12
yoctozeptofungi, AJaeger: that was precisely my point regarding docs; hence why smcginnis's -1 puzzled me ;/17:45
yoctozeptoso community had higher hopes in lower-constraints than what was documented17:46
*** hashar has joined #openstack-infra17:49
*** hashar has quit IRC17:49
fungiyoctozepto: yep, though the project-teams guide does also say lower-constraints testing is optional17:50
fungiso... not a tc member (at the moment) but it seems to me that any project that wants to decide to drop those jobs is free to17:51
yoctozeptofungi: optional and highly subjective :D17:51
fungiyeah, when people suggested adding it as an option in the past i pointed out these basic problems17:52
fungii thought maybe they had solved them, but it doesn't seem so17:53
fungi(mainly the fundamental math problem of finding a coherent lower constraints set from a mildly complex list of requirements lower bounds)17:53
yoctozeptotrue, well, maybe we get some heroes to fix this issue17:54
fungiand unfortunately there are still python packages which you can't even discover the dependencies for until you download and unpack them17:55
yoctozeptoAJaeger: I replied on ml - both jobs have the same output at stage 1, only 2 differs17:55
fungi(and especially so when you're looking at old versions of them, which is precisely the challenge posed)17:55
fungiyoctozepto: yeah, as for why it's breaking when install_cmd gets removed, that'll need someone who wants to spend more time playing with it but my suspicion is it boils down to behavior differences in option parsing between calling pip's entrypoint vs python3 -m pip17:56
yoctozeptoyeah, it looks like a quirk17:57
yoctozeptopip is happy to reinstall, while py -m pip is not17:57
yoctozeptopip is a wrapper, maybe it has some weird defaults in it17:58
yoctozeptolemme check that17:58
yoctozeptohttp://paste.openstack.org/show/792371/17:59
yoctozeptoweirdly it should not differ17:59
fungiagreed, i expect there's some (likely unintentional) nuance to why they behave differently18:00
*** armax has quit IRC18:01
fungithe up side is it should be easy to test and compare, because the tox logs show exactly what commands are being called in those venvs18:01
*** __ministry has quit IRC18:01
yoctozeptocmd: /home/zuul/src/opendev.org/openstack/networking-hyperv/.tox/lower-constraints/bin/python -m pip install --exists-action w -e .18:01
yoctozeptocmd: /home/zuul/src/opendev.org/openstack/networking-hyperv/.tox/lower-constraints/bin/pip install --exists-action w -e .18:01
yoctozeptoit differs only in going via pip wrapper18:01
fungiand you can always shim the python interpreter with a debugger and analyze how the command-line options are being handled18:02
yoctozeptoand pip allows reinstall, while -m does not18:02
fungialso --exists-action is not what i incorrectly remembered it being18:03
yoctozeptow is for wipe18:05
yoctozeptoso it looks like pip is actually doing it right and -m pip not ?18:06
yoctozeptohttps://pip.pypa.io/en/stable/reference/pip/#exists-action-option18:06
yoctozeptohmm18:06
AJaegeryoctozepto: -m pip fails the install - that is correct for me ;)18:06
funginormally pip install should need --upgrade to consider upgrading an already installed package version18:07
yoctozeptoyeah, I'm pondering how to interpret wipe18:08
fungithe --help for it is fairly limited, may need to dig into the pip docs18:08
yoctozeptoyeah, I linked them just above18:08
yoctozeptoPossible cases: downloading files or checking out repositories for installation, creating archives18:09
fungioh, yep, i missed that, thanks18:09
yoctozeptoso it should not allow downgrades anyway, eh18:09
fungiso this is more about making sure that fetching the source always replaces existing source for the project, i think18:10
yoctozeptoyeah, looks like it18:10
yoctozeptoor whatever along these lines18:10
*** ociuhandu has joined #openstack-infra18:11
*** armax has joined #openstack-infra18:14
*** tobiash has quit IRC18:17
*** tobiash has joined #openstack-infra18:18
yoctozeptowhat is more interesting, is that https://zuul.opendev.org/t/openstack/build/cbac188c8bcf4125b38c91fc229a4c3b/log/tox/lower-constraints-2.log#420-424 actually does both downgrades and upgrades18:20
yoctozeptoso it's happy to satisfy any new constraint18:21
yoctozeptoI tried to find a minimal PoC but I ran out of ideas, seems either solution is happy to satisfy constraints of installed package and what we observe is linked to particular state of venv...18:24
yoctozeptoreally puzzling...18:24
AJaegerisn't there a pip solver coming soon? Would using that help us?18:25
* AJaeger signs off for today, wishing everybody a great weekend18:25
fungithe coming pip dep solver will address much of what we invented upper constraints for18:34
fungimaybe what we need to do is ask the folks implementing the dep solver to also add an inversion option to make pip select the lowest versions of everything which will satisfy requirements18:35
*** smcginnis has quit IRC18:36
yoctozeptomakes sense18:42
*** ociuhandu has quit IRC18:43
*** Lucas_Gray has joined #openstack-infra19:38
*** Lucas_Gray has quit IRC20:17
*** Lucas_Gray has joined #openstack-infra20:18
*** Lucas_Gray has quit IRC20:18
*** Lucas_Gray has joined #openstack-infra20:19
*** Lucas_Gray has quit IRC20:22
*** ociuhandu has joined #openstack-infra20:23
*** ociuhandu has quit IRC20:29
*** Lucas_Gray has joined #openstack-infra20:32
*** jamesmcarthur has joined #openstack-infra20:41
*** smcginnis has joined #openstack-infra20:43
*** jamesmcarthur has quit IRC20:51
*** andreaf has quit IRC21:03
*** andreaf has joined #openstack-infra21:04
*** noonedeadpunk has quit IRC21:06
*** noonedeadpunk has joined #openstack-infra21:07
*** amorin has quit IRC21:16
*** amorin has joined #openstack-infra21:17
*** yamamoto has joined #openstack-infra21:40
*** yamamoto has quit IRC21:44
*** xek has quit IRC21:47
*** Goneri has joined #openstack-infra22:18
*** Lucas_Gray has quit IRC22:31
*** paladox has quit IRC22:37
*** paladox has joined #openstack-infra22:42
*** armax has quit IRC22:58
*** dkehn has joined #openstack-infra23:39

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