Thursday, 2024-05-30

mikalHey, twice now openstacksdk has been broken for python3.8 by mypy changes. This seems to be happening because there isn't any CI for that python version upstream, despite python 3.8 being in the support matrix for 2024.1. I get that the universe is imperfect, but I am mostly catching these by pure luck in a downstream project at the moment. Apart from playing whackamole when I find them, is there something w07:38
mikale can do to make this less of a thing?07:38
opendevreviewRajat Dhasmana proposed openstack/openstacksdk master: Add support for default volume types  https://review.opendev.org/c/openstack/openstacksdk/+/92046407:42
fricklermikal: are you referring to the stable/2024.1 branch or master? and sure you can do something, create reviews adding testing jobs for what you think is missing08:14
mikalMaster is definitely broken for python3.8. I need to rehydrate my state on what pythons OpenStack says they support for 2024.2 to be honest.08:15
mikalI think the issue with upstream CI is I'm not sure there's any distro that has python 3.8 in the supported list any more.08:16
mikalI'm using Rocky 9 out of tree to find these issues.08:16
fricklerdoesn't that have python3.9 by default? in general, support for py3.8 has been dropped, see https://governance.openstack.org/tc/reference/runtimes/2024.2.html08:17
fricklerso testing that would need to be specific to sdk/osc08:17
mikalYeah, just found the same page.08:17
mikalDefinitely the error I see states that you need python 3.10+ for the syntax that is being used.08:18
mikalLet me spin up a quick test VM and double check what version of python it has by default.08:18
mikalSorry, you're right, Rocky 9 is indeed python 3.9. However, that is still too old for this syntax.08:24
fricklerso that's certainly a bug then, that should be fixed08:35
mikalYeah, I am waiting for my CI to finish running before uploading a fix. I just want to make sure it actually works first.08:36
opendevreviewMichael Still proposed openstack/openstacksdk master: Use mypy syntax compatible with older pythons.  https://review.opendev.org/c/openstack/openstacksdk/+/92081408:48
fricklergtema: ^^ iirc we've seen more regressions like this earlier. maybe need a mypy py39 job? (cc stephenfin who has voiced interest in also keeping support for py38)09:04
gtemaHave I told how I love modern py madness?09:07
opendevreviewAntonia Gaete proposed openstack/python-openstackclient master: identity: Migrate 'service' commands to SDK  https://review.opendev.org/c/openstack/python-openstackclient/+/90639517:54
M0weng[m]<stephenfin> "0weng: Took a look at that error..." <- Ahh I see; I'll take a look at that. Should I fix this in the same patch as the SDK migration or make a separate one?23:48

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