Friday, 2026-11-06

*** ykarel_ is now known as ykarel|off03:43
stephenfinfrickler: elodilles: I have an idea and wanted to run it by you to see if you think it's dumb or possible10:59
stephenfinWe don't include typing-related packages in upper-constraints, nor do we pin mypy in most cases. This is by design: things are still changing fast, and we often want to pull in fixes to broken type stubs asap11:00
stephenfinHowever, that's true on master but not on stable branches. On stable branches we want to freeze everything because we shouldn't be doing any more development there11:01
stephenfinI'm wondering if it would make sense to have a release step that either (a) scanned for all typestub packages and added them to upper-constraints as part of the u-c branching process11:02
stephenfinor (b) went add added caps inline to the individual projects11:02
stephenfin(a) would be much easier, but we've specifically said we don't cap linters in u-c. This would affect everyone globally so idk if it has a risk of breaking someone11:03
stephenfin(b) would tedious but at least the change is explicit per-project and it's just a once-per-release thing11:04
stephenfinI don't really want to add type stubs to u-c in general because, as noted, they still change pretty fast and only ever get better (IMO)11:05
stephenfinI also don't want to maintain caps in each project by hand because we've ~40 projects between oslo/SDK and ensuring we keep bumping those on a regular basis sounds awful. All that'll end up happening is things will get way out of date (like https://review.opendev.org/c/openstack/ironic/+/1014303, or hacking in many places)11:06
stephenfinIf packages would just move stubs inline this whole issue would go away and we'd only have to care about the type checker itself (mypy), but some projects like requests are fundamentally opposed to this since they rely on the more dynamic properties of Python and don't want to rewrite things to work around that a la SQLAlchemy 2.x (which is more than fair)11:08
stephenfinSo maybe let's focus on (a) first. Would the requirements/release team be opposed to a step that e.g. scanned projects with a `typing` dependency, pulled the deps to form a set, and added the latest version of each to u-c after branching?11:09
stephenfin*`types` dependency group https://github.com/openstack/governance/blob/master/reference/pti/python.rst#dependency-management11:10
elodillesstephenfin: i'm not explicitly a requirements team member, but have +2+W rights mostly for 'new-release' patches. nevertheless, i think option [a] is doable, the other is not really, considering that teams tend to forgot merging script generated / bot proposed patches, too... and i think it's acceptable as well, iff project teams agree to have global typing constraints. so i'd rather 11:44
elodilleschoose option [a], but as i said, i'm not a direct requirements team member11:44
stephenfinOh I'm interested in the release team perspective too (since this would presumably be a new step in the release dance). Thanks for the feedback 🙏11:50
elodilles++11:55
opendevreviewTakashi Kajinami proposed openstack/requirements master: Remove deprecated ironic deliberables  https://review.opendev.org/c/openstack/requirements/+/101456817:33
opendevreviewTakashi Kajinami proposed openstack/requirements master: Move lark to the correct section  https://review.opendev.org/c/openstack/requirements/+/101457317:36
opendevreviewTakashi Kajinami proposed openstack/requirements master: Remove unused pyzabbix  https://review.opendev.org/c/openstack/requirements/+/101458018:03

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