| *** ykarel_ is now known as ykarel|off | 03:43 | |
| stephenfin | frickler: elodilles: I have an idea and wanted to run it by you to see if you think it's dumb or possible | 10:59 |
|---|---|---|
| stephenfin | We 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 asap | 11:00 |
| stephenfin | However, 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 there | 11:01 |
| stephenfin | I'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 process | 11:02 |
| stephenfin | or (b) went add added caps inline to the individual projects | 11: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 someone | 11:03 |
| stephenfin | (b) would tedious but at least the change is explicit per-project and it's just a once-per-release thing | 11:04 |
| stephenfin | I 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 |
| stephenfin | I 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 |
| stephenfin | If 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 |
| stephenfin | So 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-management | 11:10 |
| elodilles | stephenfin: 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 |
| elodilles | choose option [a], but as i said, i'm not a direct requirements team member | 11:44 |
| stephenfin | Oh 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 |
| opendevreview | Takashi Kajinami proposed openstack/requirements master: Remove deprecated ironic deliberables https://review.opendev.org/c/openstack/requirements/+/1014568 | 17:33 |
| opendevreview | Takashi Kajinami proposed openstack/requirements master: Move lark to the correct section https://review.opendev.org/c/openstack/requirements/+/1014573 | 17:36 |
| opendevreview | Takashi Kajinami proposed openstack/requirements master: Remove unused pyzabbix https://review.opendev.org/c/openstack/requirements/+/1014580 | 18:03 |
Generated by irclog2html.py 4.1.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!