Thursday, 2021-09-02

*** rlandy|rover|bbl is now known as rlandy|rover01:46
*** akekane__ is now known as abhishekk05:54
*** ysandeep|out is now known as ysandeep06:16
*** jpena|off is now known as jpena07:39
*** ykarel is now known as ykarel|lunch08:13
*** ysandeep is now known as ysandeep|lunch08:16
*** ysandeep|lunch is now known as ysandeep09:12
*** ykarel|lunch is now known as ykarel09:56
*** jcapitao is now known as jcapitao_lunch10:50
*** ysandeep is now known as ysandeep|afk11:15
*** jpena is now known as jpena|lunch11:38
*** rlandy is now known as rlandy|rover11:39
*** ysandeep|afk is now known as ysandeep12:13
*** jcapitao_lunch is now known as jcapitao12:21
*** jpena|lunch is now known as jpena12:40
*** frenzy_friday is now known as anbanerj|ruck12:46
jpodivinCan I ask some questions about openstack/requirements? 13:06
fungijpodivin: you can, but the #openstack-requirements channel is probably a better place to do that13:14
jpodivinfungi: I tried that as well, although I didn't get response yet. 13:16
jpodivinIt's not really in-depth question though. It's about the practical side of things. Basically I'm interested in what to put in the `-c` argument when installing tox env13:18
fungijpodivin: you mean tox -c? that's for specifying an alternate tox configuration file name or path to a different directory containing a tox.ini file13:19
fungithe tox documentation should cover it13:19
jpodivinoh, not that, I meant the pip install -c13:19
fungiahh, yes pip install -c is how you specify a constraints file13:20
jpodivinyes13:20
fungia constraints file is essentially a means of constraining the versions of requirements which are being installed13:20
jpodivinSo the question is, which should we use. 13:20
fungiwhich what?13:20
fungiand who is "we"?13:21
fungii'm missing a bunch of context13:21
fungiif "we" is an official openstack project, normal tox jobs should use the upper-constraints.txt file from whatever branch of the openstack/requirements repository matches the branch of the change being tested for the project13:22
jpodivinfungi: well that is our case. 13:23
jpodivinfungi: But the recent job results were ... odd. For some reason the constraint pluggy===1.0.0 prohibits us from using the pluggy<1.0 and >=0.7.113:26
jpodivinhttps://zuul.opendev.org/t/openstack/build/f3d3c648f67c42ab82b9410b0e8e1d1213:26
jpodivinwhich kind of blocks our check pipeline, weirder still, we started to hit this in two projects at the same time. 13:27
*** diablo_rojo_phone is now known as Guest607513:28
fungijpodivin: probably the constraints update in openstack/requirements isn't tested with you project, or else it wouldn't have been able to merge an update to pluggy===1.0.013:28
fungibest to talk with the constraints maintainers about it13:29
jpodivinfungi: in #openstack-requirements right? 13:29
fungiyeah13:29
jpodivinso, and I hate to say this, how does this constraint actually work? I thought the upper constraint just meant that everything < 'constraint' should pass. But it doesn't. 13:30
fungirequirements changes are usually tested against openstack services and libraries with devstack, so shouldn't change outside what that set of projects can support13:30
fungi`pip install pluggy>=0.7.1,<1.0` asks pip to install pluggy 0.7.1 or newer as long as it's not as new as 1.x13:32
fungia constraint of pluggy===1.0.0 tells pip that *if* it's installing pluggy, the version of pluggy it installs must be 1.0.013:32
jpodivinah,13:32
jpodivinthat's ... different than I thought. We'll have to figure this one out.13:33
fungiso the upper-constraints.txt file is what you might term a "lockfile" in other language packaging ecosystems, but for the whole of openstack, to indicate what specific dependency versions a coordinated openstack release was tested with, ensuring everything in openstack is coinstallable with a common set of dependency versions and that we can reproduce testing of that release years later13:35
fungiin stable branches13:35
jpodivinfungi: ok, that makes sense.13:39
jpodivinThanks13:39
fungiyou're welcome13:42
*** fressi_ is now known as fressi14:14
clarkbnote that pip has added a richer lockfile system since constraints was added but it requires significantly more changes to how the packaging is done to use and as a result hasn't been done for openstack14:56
fungiwell, the actual "lockfile" pep is still under discussion14:59
clarkbis it? a number of tools make use of it today14:59
fungiand is about things that aren't really what you would consider lockfiles14:59
clarkbthe one I'm thinking of locks versions and checks package hashes14:59
fungiit's more about standardizing what poetry and, i think, flit use and calling them "lockfiles" when they really aren't15:00
fungithere's a never-ending thread on the python discourse about it15:00
clarkbhttps://github.com/pypa/pipfile is the thing and it definitely supports a proper lockfile15:00
clarkbhttps://github.com/pypa/pipfile#pipfilelock15:00
clarkba much richer lockfile than constraints. The hash verification in particular is nice15:01
fungiahh, that15:01
fungiyeah sorry it's poetry and pipfile the pep is trying to standardize15:02
fungipipfile != pip15:02
clarkbsort of aiui it was fully intended to go into pip but then they drug their feet which is why all the other tools popped up15:02
fungii think it's the pipfile maintainers who are the primary ones pushing the lockfile pep15:03
fungiand the pip maintainers seem on the fence about whether it makes sense to support15:03
fungiand poetry has added support for pipfile, or has a similar use case15:04
clarkbya I think it uses the same lockfile syntax at least15:07
fungiwhat they're calling a "lockfile" is really more a replacement for requirements.txt though, not so much constraints15:16
fungibut also since poetry doesn't have a constraints feature, the folks writing the pep keep misusing the term constraints to mean something else15:17
fungiwhich is adding to the confusion15:17
fungiif they revised the pep to say it was about a replacement requirements list syntax, i think there would be far less contention15:18
clarkbfungi: the lockfile is definitely a replacement for constraints15:23
clarkbthe pipfile replaces requirements. the pipfile.lock replaces constraints15:23
clarkbThey continue to be separate things just as with pip today, but both attempt to be richer in the functionality they support15:24
fungiand you can specify things in pipfile.lock that you don't necessarily want to install? neat15:24
clarkbI think so, you'd just have to generate it with a larger input pipfile than what is used later to install things15:25
fungithe draft pep i was referring to currently under discussion is https://www.python.org/dev/peps/pep-0665/15:26
*** jpena is now known as jpena|off16:47
*** ysandeep is now known as ysandeep|out16:47
*** sshnaidm is now known as sshnaidm|off17:01
*** Guest6075 is now known as diablo_rojo18:10
*** diablo_rojo is now known as Guest608918:11
*** Guest6089 is now known as diablo_rojo_phone18:12
opendevreviewClark Boylan proposed openstack/project-config master: Set empty nodepool resource lists on inap  https://review.opendev.org/c/openstack/project-config/+/80720419:01
opendevreviewClark Boylan proposed openstack/project-config master: Remove the inap provider from nodepool  https://review.opendev.org/c/openstack/project-config/+/80720519:01
opendevreviewLuciano Lo Giudice proposed openstack/project-config master: Add the cinder-lvm charm to Openstack charms  https://review.opendev.org/c/openstack/project-config/+/80720619:01
ade_leefungi, we can remove the node hold on that job , thanks!  you and clarkb identified the problem correctly.  I'm going to be trying to use ecdsa keys instead 21:11
fungiade_lee: good to have the theory confirmed, thanks! i'll free the node21:11
*** bnemec is now known as bnemec-pto21:45
opendevreviewmelanie witt proposed openstack/project-config master: Set launchpad bug Fix Released after adding comment  https://review.opendev.org/c/openstack/project-config/+/80137622:45

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!