Tuesday, 2021-10-26

*** fzzf2 is now known as fzzf03:05
fzzfhello all, After setting up the external CI, how to use opendev/ci-sandbox to test the external CI?03:15
*** ykarel|away is now known as ykarel04:44
*** ysandeep|out is now known as ysandeep06:28
opendevreviewdaniel.pawlik proposed openstack/project-config master: Add project openstack/ci-log-processing  https://review.opendev.org/c/openstack/project-config/+/81526007:01
*** jpena|off is now known as jpena07:31
*** ykarel is now known as ykarel|lunch08:55
*** ysandeep is now known as ysandeep|lunch09:44
*** ysandeep|lunch is now known as ysandeep10:33
*** rlandy is now known as rlandy|ruck10:34
*** jcapitao is now known as jcapitao_lunch10:40
*** ykarel|lunch is now known as ykarel10:56
*** dviroel|rover|out is now known as dviroel|rover11:11
*** jpena is now known as jpena|lunch11:24
*** tosky_ is now known as tosky11:25
*** ysandeep is now known as ysandeep|brb12:03
*** jcapitao_lunch is now known as jcapitao12:04
*** jpena|lunch is now known as jpena12:25
*** ysandeep|brb is now known as ysandeep12:25
*** Guest3656 is now known as redrobot13:03
opendevreviewHervĂ© Beraud proposed openstack/project-config master: Allow to check release approval for DPL teams  https://review.opendev.org/c/openstack/project-config/+/81549713:08
opendevreviewHervĂ© Beraud proposed openstack/project-config master: Allow to check release approval for DPL teams  https://review.opendev.org/c/openstack/project-config/+/81549713:09
*** rlandy|ruck is now known as rlandy|ruck|mtg13:16
*** lbragstad6 is now known as lbragstad13:28
*** sshnaidm_ is now known as sshnaidm14:03
clarkbfzzf: you can push changes to the ci-sandbox repo and then check that your CI system triggers against them as expected14:39
opendevreviewMerged openstack/project-config master: Add project openstack/ci-log-processing  https://review.opendev.org/c/openstack/project-config/+/81526014:55
*** ysandeep is now known as ysandeep|out15:08
*** ykarel is now known as ykarel|away15:16
*** jpena is now known as jpena|off16:33
*** rlandy|ruck|mtg is now known as rlandy|ruck17:33
opendevreviewClark Boylan proposed openstack/pbr master: Add a PEP517 interface  https://review.opendev.org/c/openstack/pbr/+/79789817:34
clarkbfungi: stephenfin ^ fyi that just does a super minimal update. I haven't even begun to think about testing. But fungi found over the weekend that not using pyproject.toml is starting to emit deprecation warnings so getting to a point where we can at least minimally keep up with what pypa wants seems like a good idea17:35
clarkbre testing, I'm not even quite sure I know how to do it. I guess we would need to create a mocked up package in pbr's tests (I think it alreadydoes this) with no setup.py and rely on $pypatool to load pbr which loads setuptools directly/17:36
fungiwe could test by turning on deprecation warnings as errors17:39
opendevreviewYuriy Shyyan proposed openstack/project-config master: Reinstating InMotion cloud  https://review.opendev.org/c/openstack/project-config/+/81553217:56
opendevreviewClark Boylan proposed openstack/pbr master: Test pep517 support  https://review.opendev.org/c/openstack/pbr/+/81553417:57
clarkbI'll admit I'm a bit afraid of running ^ locally so I haven't :)17:58
clarkbI need a better isolated test env17:58
fungiclarkb: 815532 should reenable inmotion-iad3 in nodepool18:02
clarkbcool you alredy hcecked the mirror was up and happy18:04
fungiyup18:04
clarkbapproved lets see how it does18:04
opendevreviewMerged openstack/project-config master: Reinstating InMotion cloud  https://review.opendev.org/c/openstack/project-config/+/81553218:18
clarkbhey I got it to fail successfully at least18:25
clarkbcouldn't find pbr.build18:25
clarkbif I manually create venv and install the checkout of pbr to that I can import pbr.build18:27
clarkbbut in the test it is done that and failed to find pbr.build? weird. Also I notice it thinks the version is 0.0 possibly related18:27
clarkblike maybe pip is installing pbr-latest because what I'ev preinstalled is version 0.018:28
clarkbbut pbr-latest is without pbr.build18:28
opendevreviewClark Boylan proposed openstack/pbr master: Test pep517 support  https://review.opendev.org/c/openstack/pbr/+/81553418:39
clarkblets see if adding -v to the pip invocations might give us better hints to why these unexpected behaviors are happening18:39
clarkbSuccessfully installed pbr-5.6.0 <- it does seem to be overriding my local pbr-0.0 install. Time to figure that out18:53
clarkbfungi: can the #egg=pbr suffix on a file:///foo/bar/openstack/pbr#egg=pbr installation specification affect that?18:54
opendevreviewClark Boylan proposed openstack/pbr master: Test pep517 support  https://review.opendev.org/c/openstack/pbr/+/81553418:57
fungipotentially, i think the egg parameter for setting the package name is no longer relevant?18:58
clarkbI'm actually wondering now if that causes pip's vcs support to kick in and the latest patchset drops it to just be a path so pbr can do it itself18:59
clarkbbut thats half guess18:59
clarkbit also isn't clear to me if pyproject.toml will always download the latest version of a tool if you don't specify a version. But one thing at a time19:00
clarkbgood news is the test does seem to do what we want it to, just with the wrong result :)19:00
fungiyeah, i suspect it will always try to fetch the tool from somewhere, so we may need to preinstall pbr and make sure the version for it sorts newer than whatever's on pypi?19:03
clarkbthat is what the test does. It preinstalls pbr using the loacl zuul checkout but for some reason it installs that as pbr-0.0. Then when pip runs to install the pyproject.toml'd project it installs pbr-5.6.0 removing support for the build19:04
clarkbI'm hoping that if I can install pbr-5.6.1-devXY then it won't overwrite my preinstalled pbr in the test19:04
clarkbfungi: stephenfin: ok I think what is happening is when we install pbr into the venv it is using the new pyproject.toml stuff and that is broken and setting the version wrong19:21
clarkbhttps://zuul.opendev.org/t/openstack/build/6f6ece94c5b54168b970b5db32c62d08/log/job-output.txt#1089-109219:22
clarkbyay for testing :019:22
clarkber :)19:22
opendevreviewClark Boylan proposed openstack/pbr master: Test pep517 support  https://review.opendev.org/c/openstack/pbr/+/81553419:29
clarkbhrm using setup.py it is still doing a version 0.019:51
clarkbI'm very confused about that and cannot reproduce it doing a pip install locally19:51
opendevreviewJeremy Stanley proposed openstack/project-config master: Replace old Xena cycle signing key with Yoga  https://review.opendev.org/c/openstack/project-config/+/81554819:53
clarkbfungi: https://zuul.opendev.org/t/openstack/build/1d0e09d9948b4437ada78320433da201/log/job-output.txt#1094 if you get a chance to look at that and see if anything jumps out to you for why pbr is selecting version 0.0 for itself that would be great19:53
clarkbalso I've WIP'd https://review.opendev.org/c/openstack/pbr/+/797898/ to repvent it from merging early19:56
fungiclarkb: that would normally only happen if pbr can't find the .git tree when building, so maybe it's a problem with the tracked files getting copied from the workspace to a temporary (not in-place) build directory but not the .git directory along with them?20:13
fungimay need to see if there's a way to tell pip to do in-place builds20:13
fungii'm betting it's the /tmp/tmptyy7yavn/tmp6gykh9xe directory mentioned on the line before20:15
opendevreviewYuriy Shyyan proposed openstack/project-config master: Increasing max servers  https://review.opendev.org/c/openstack/project-config/+/81555220:18
clarkbfungi: ya that might be it20:21
clarkbfungi: I put an assert Falase before the stuff that scares me and can run it locally now20:21
fungii can probably look closer once i get done making dinner20:23
clarkbthe tests set PBR_VERSION20:31
opendevreviewClark Boylan proposed openstack/pbr master: Test pep517 support  https://review.opendev.org/c/openstack/pbr/+/81553420:41
clarkbthat should set the version properly I hope20:41
*** dviroel|rover is now known as dviroel|rover|afk20:42
clarkbversion is set properly but still failing the test beacuse it seems to install pbr-5.6.0 downgrading anyway21:02
clarkbI wonder if that is a behavior of the build dependencies here. It iwll always grab the latest from pypi?21:03
clarkbNot sure I like that since I've got a local version installed21:03
clarkbah yup it passes --ignore-installed to pip for those rip21:03
clarkbI suspect that we're going to need to determine if that is intentional by pip and why. If intentional it makes it really difficult to test this works21:06
clarkbmaybe we try build?21:07
opendevreviewClark Boylan proposed openstack/pbr master: Test pep517 support  https://review.opendev.org/c/openstack/pbr/+/81553421:12
fungii successfully use build with pbr in a personal project21:28
fungithat was where i noticed the new deprecation warnings from setuptools21:28
clarkbfungi: adding build to the venv beraks pbr installation21:46
clarkbWARNING: Built wheel for pbr is invalid: Wheel has unexpected file name: expected '0.0', got '5.6.1.dev4' <- will pip use build to build the wheels?21:46
clarkbI don't understand how this could break otherwise21:46
clarkboh even neater py37 does this but py38 does not21:50
clarkbpy38 actually gets to run the build of the fake pyproject.toml project but it also fails because pbr.build isn't there21:50
clarkbI strongly suspect that there is a chicken and egg problem here that pip/build didn't really anticipate to be a problem for people21:50
clarkbbut we can't test with PBR because their tools eplicitly install PBR from pypi overriding our local changes :(21:51
opendevreviewClark Boylan proposed openstack/pbr master: Test pep517 support  https://review.opendev.org/c/openstack/pbr/+/81553421:51
clarkbthats my last attempt (and ignoring py37 for now)21:52
opendevreviewMerged openstack/project-config master: Increasing max servers  https://review.opendev.org/c/openstack/project-config/+/81555221:55
fungiahh, yeah at the moment i'm using build+pbr with python 3.10.021:55
fungito build my wheels and sdists21:55
fungihowever i'm not trying to use unreleased pvr21:55
fungipbr21:55
clarkbright the issue is that I want to go through the pbr codepaths that the new change adds and everything keeps grabbing a different release which is super annoying22:02
clarkbgood news! the thing that py37 tripped over just caused py38 to fail22:10
clarkbbut py37 and py36 and py27 passed with my change to build without isolation22:11
clarkbI think at this point we can squash the two chagnes together and figure out why that seems to race22:11
fungiby "fail" you mean there's a traceback?22:12
clarkbfungi: the test system gives a traceback but all we get from pip is that warning (WARNING: Built wheel for pbr is invalid: Wheel has unexpected file name: expected '0.0', got '5.6.1.dev4')22:15
clarkbfungi: https://zuul.opendev.org/t/openstack/build/cabffa721c5e4dcb936c6ce9e6b84039/log/job-output.txt#205322:16
clarkbfungi: I suspect this is a flaw in PBRs test framework not properly overriding the PBR_VERSION stuff22:17
fungilikely, yeah22:17
fungior previously relying on pip/setuptools to be more naive22:18
opendevreviewClark Boylan proposed openstack/pbr master: Test pep517 support  https://review.opendev.org/c/openstack/pbr/+/81553422:18
clarkbthat is hopefully the last iteration of the test change before we squash it into the parent22:18
opendevreviewClark Boylan proposed openstack/pbr master: Run python3.9 test jobs  https://review.opendev.org/c/openstack/pbr/+/81556322:23
clarkbfungi: ^ that fixes an issue that I noticed when doing this testing with pbr22:23
clarkbit doesn't run a correct set of jobs. py38 is non voting and py39 isn't run at all. We should run all of them and not worry about the openstack templates whcih are release specific since pbr is not release specific22:23
fungiyep22:24
fungialso worth bringing up with the tc22:24
fungii expect there are a number of cycle-independent deliverables which have similar needs22:25
fungithe tested runtimes set is more relevant to cycle-based deliverables22:26
fungifor cycle-independent deliverables it's a proper subset in many cases22:26
opendevreviewClark Boylan proposed openstack/pbr master: Test pep517 support  https://review.opendev.org/c/openstack/pbr/+/81553422:43
clarkbI lied ^ is hopefully the last one ebfore I squash. What I realized was getting the pbr version correct isn't actually important as long as we get the tool (build in this case) to ignore the version and use the preinstalled pbr22:44
clarkbWhile it would be good to figure out why you can't override PBR_VERSION in the test suite I'm having a hard time reproducing it without the full test suite run so it is likely to be a pain to debug. I've just gone back to doing the 0.0 version and will let build use that whihc should work22:44
clarkbif that does work I'll squash the changes and we can reviwe this for real. One thing we might want to consider is that maybe pbr shouldn't dogfood the pyproject.toml stuff to start in whihc case we need to rm the contents added by that change. The reason for this is if we get it wrong we'll be doing pbr releases and hoping whereas for another projects we can simply remove the22:45
clarkbpyproject.toml22:45
opendevreviewClark Boylan proposed openstack/pbr master: Add a PEP517 interface  https://review.opendev.org/c/openstack/pbr/+/79789823:04
clarkball squashed. I think that is landable now though we might want to add more docs/release notes and possibly drop the pyproject.toml in pbr itself23:07

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