Thursday, 2026-11-26

*** ykarel is now known as ykarel|away09:36
stephenfinfungi: (not urgent) I've been thinking more about that pbr bug and how the broken SDK release managed to slip by. Have we ever discussed moving to a src dir layout in openstack projects? 🤔14:00
fungistephenfin: not really, since python packaging supported the way we had our repositories arranged already, and we had pbr to construct the manifest from the git content automatically to avoid missing any files, it seemed like a massive amount of churn to fix something that wasn't broken14:51
stephenfinFair. My understanding (correct me if wrong) is that the main advantage of src dir layouts was that it ensures you are always testing the installed package, rather than the files on disk14:53
stephenfin...so something like missing package data would be caught immediately, so long as you had unit tests that relied on it14:54
stephenfin(for the avoidance of confusion, I'm not proposing changing anything anytime soon, if ever: there's enough going on. I'm just trying to retrospect on how we could have avoided that SDK issue and/or caught the pbr bug earlier)14:56
fungiif test-invoked calls referred to data files relative to the repository root, it wouldn't matter what subdirectory they were in, they could still end up silently unpackaged but found by the software while testing15:05
fungiif testing avoided using "develop" installs and changed directory to somewhere outside the git tree, it might help avoid that risk15:07
fungithat would get pretty inconvenient for local testing though15:08
fungiwhat i've done in some of my projects is to maintain a list of file patterns that matched things in the repository which should not be included in packages, then run a test that builds the python package and compares the contents to `git ls-files` and anything that's missing which isn't expected to be is an error15:09
fungithat way i never accidentally end up with packages missing files due to changes in package-building toolchains15:11
fungiand by only keeping a list of things i don't want packaged, i don't have to worry about forgetting to add new files to the archive test15:12
opendevreviewStephen Finucane proposed openstack/pbr master: Raise error for missing setup.cfg, setup.py on Python < 3.11:  https://review.opendev.org/c/openstack/pbr/+/101769617:59
*** gablan8 is now known as gablan21:51

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