Wednesday, 2026-09-30

opendevreviewTakashi Kajinami proposed openstack/oslo.messaging master: Declare Python 3.15 support  https://review.opendev.org/c/openstack/oslo.messaging/+/100738200:53
tkajinamstephenfin, do you have any idea about the magic to fix the misc error seen in https://zuul.opendev.org/t/openstack/build/d29f2c35bf95488c91a5847b00d55f27 ?01:06
opendevreviewAdam Harwell proposed openstack/oslo.messaging master: HTTP-RPC driver: DevStack plugin, CI and docs  https://review.opendev.org/c/openstack/oslo.messaging/+/100762402:18
opendevreviewAdam Harwell proposed openstack/oslo.messaging master: HTTP-RPC driver: interop with the original driver  https://review.opendev.org/c/openstack/oslo.messaging/+/100762502:18
opendevreviewMerged openstack/oslo.messaging stable/2026.1: Fix rabbit consumer reconnection loop  https://review.opendev.org/c/openstack/oslo.messaging/+/100676302:50
opendevreviewMerged openstack/oslo.messaging master: Make python 3.15 jov non-voting  https://review.opendev.org/c/openstack/oslo.messaging/+/100749802:50
opendevreviewMerged openstack/oslo.messaging master: Declare Python 3.15 support  https://review.opendev.org/c/openstack/oslo.messaging/+/100738204:02
opendevreviewAdam Harwell proposed openstack/oslo.messaging master: HTTP-RPC driver: wire protocol and client  https://review.opendev.org/c/openstack/oslo.messaging/+/100762106:47
opendevreviewAdam Harwell proposed openstack/oslo.messaging master: HTTP-RPC driver: server side and entry point  https://review.opendev.org/c/openstack/oslo.messaging/+/100762206:47
opendevreviewAdam Harwell proposed openstack/oslo.messaging master: HTTP-RPC driver: fanout broadcaster  https://review.opendev.org/c/openstack/oslo.messaging/+/100762306:47
opendevreviewAdam Harwell proposed openstack/oslo.messaging master: HTTP-RPC driver: DevStack plugin, CI and docs  https://review.opendev.org/c/openstack/oslo.messaging/+/100762406:47
opendevreviewAdam Harwell proposed openstack/oslo.messaging master: HTTP-RPC driver: interop with the original driver  https://review.opendev.org/c/openstack/oslo.messaging/+/100762506:47
stephenfintkajinam: Looks like you figured it out 💪08:59
tkajinamyeah but I don't fully understand why we get that type error, even after reading your typing update in testscenarios ...09:38
opendevreviewStephen Finucane proposed openstack/oslo.privsep master: pre-commit: Bump versions  https://review.opendev.org/c/openstack/oslo.privsep/+/100803009:47
opendevreviewStephen Finucane proposed openstack/oslo.privsep master: typing: Propagate return types through decorators  https://review.opendev.org/c/openstack/oslo.privsep/+/100803109:47
opendevreviewStephen Finucane proposed openstack/oslo.privsep master: typing: Propagate parameter types through entrypoint decorator  https://review.opendev.org/c/openstack/oslo.privsep/+/100803209:47
opendevreviewStephen Finucane proposed openstack/oslo.privsep master: typing: Tighten type annotations in priv_context  https://review.opendev.org/c/openstack/oslo.privsep/+/100803309:47
stephenfintkajinam: It would have been triggered by the addition of py.typed file. Without that, the base class would have been typed to Any so attribute access wouldn't have been checked10:50
tkajinamok10:53
tkajinameven with that in my mind it's not clear what's the difference mypy is complaining, though10:54
tkajinamanyway we can ignore that completely once your patch to get rid of testscenarios is merged10:54
tkajinammaybe we can replace it fully by ddt nowadays10:54
stephenfinWell I also don't like ddt 😅 and it's not typed so you'll end up with functions being typed as Any. I've been using self.subTest lately11:03
stephenfintkajinam: Note the difference in the type of `result` and the return type between these two signatures11:04
stephenfinhttps://github.com/testing-cabal/testtools/blob/088c98e24961ecf6d94ea5204457f2dcffe2f1c6/testtools/testcase.py#L89611:04
stephenfinhttps://github.com/testing-cabal/testscenarios/blob/5eeab1702eaaeaecd05346ae098b37ccc9d25dba/testscenarios/testcase.py#L70-L7211:05
stephenfinThe closest we could get is to make `WithScenarios` generic (meaning you'd use it like `WithScenarios[testtools.TestResult]`) but that still wouldn't have fixed the potential nullability of the return type, which would never happen with the testtools.TestCase.run implementation11:07
stephenfinOh, interesting: I think the type of testtools.TestCase is wrong11:09
stephenfinhttps://github.com/python/typeshed/blob/c981c922a32f74c0f4717b038d4dbb1ac11170ad/stdlib/unittest/case.pyi#L9111:09
tkajinamoh I didn't check testtools12:52
tkajinamso the typing information from core python indicates that allowing None is correct though the doc says run should return an return object always since python 3.312:53
tkajinams/an return object/a result object/12:53
opendevreviewDaniel Bengtsson proposed openstack/oslo.service master: Document multiprocessing spawn strategy  https://review.opendev.org/c/openstack/oslo.service/+/100618013:49
opendevreviewElod Illes proposed openstack/openstack-doc-tools master: Add 2026.2 Hibiscus to maintained series  https://review.opendev.org/c/openstack/openstack-doc-tools/+/100807514:47
opendevreviewTakashi Kajinami proposed openstack/openstack-doc-tools master: Install libzstd  https://review.opendev.org/c/openstack/openstack-doc-tools/+/100808015:17
tkajinamhopefully this fixes py314 job in doc-tools...15:17
opendevreviewTakashi Kajinami proposed openstack/openstack-doc-tools master: Bump test tools  https://review.opendev.org/c/openstack/openstack-doc-tools/+/100808315:30
opendevreviewTakashi Kajinami proposed openstack/openstack-doc-tools master: Bump test tools  https://review.opendev.org/c/openstack/openstack-doc-tools/+/100808315:31
opendevreviewTakashi Kajinami proposed openstack/openstack-doc-tools master: Enable testing with Python 3.15.  https://review.opendev.org/c/openstack/openstack-doc-tools/+/100808415:33
stephenfintkajinam: yes, exactly. I proposed a fix for testtools earlier https://github.com/testing-cabal/testtools/pull/63615:39
stephenfinthough you will still have a type conflict since testtools use a different type of TestResult to unittest15:39
tkajinamstephenfin, thanks, and ok. that's a bit annoying :-(15:40
stephenfinAs I noted above, we would need to make `WithScenarios` generic to properly fix this. `WithScenarios[testtools.TestResult]` is a bit heavy though 😅15:41
stephenfineasier to just get rid of it, if you ask me :)15:41
tkajinamthat's not urgent but we may eventually do it if we keep seeing the same type errors15:43
tkajinam(and I'm afraid we do soon...15:43
opendevreviewElod Illes proposed openstack/openstack-doc-tools master: Add 2026.2 Hibiscus to maintained series  https://review.opendev.org/c/openstack/openstack-doc-tools/+/100807515:46
opendevreviewTakashi Kajinami proposed openstack/openstack-doc-tools master: Install libzstd  https://review.opendev.org/c/openstack/openstack-doc-tools/+/100808015:47
opendevreviewTakashi Kajinami proposed openstack/openstack-doc-tools master: Bump test tools  https://review.opendev.org/c/openstack/openstack-doc-tools/+/100808315:47
opendevreviewTakashi Kajinami proposed openstack/openstack-doc-tools master: Enable testing with Python 3.15.  https://review.opendev.org/c/openstack/openstack-doc-tools/+/100808415:47
opendevreviewTakashi Kajinami proposed openstack/openstack-doc-tools master: Install libzstd  https://review.opendev.org/c/openstack/openstack-doc-tools/+/100808016:02
opendevreviewTakashi Kajinami proposed openstack/openstack-doc-tools master: Bump test tools  https://review.opendev.org/c/openstack/openstack-doc-tools/+/100808316:09
opendevreviewTakashi Kajinami proposed openstack/openstack-doc-tools master: Enable testing with Python 3.15.  https://review.opendev.org/c/openstack/openstack-doc-tools/+/100808416:09
opendevreviewMerged openstack/openstack-doc-tools master: Install libzstd  https://review.opendev.org/c/openstack/openstack-doc-tools/+/100808016:15
opendevreviewMerged openstack/openstack-doc-tools master: Bump test tools  https://review.opendev.org/c/openstack/openstack-doc-tools/+/100808316:24
opendevreviewMerged openstack/openstack-doc-tools master: Enable testing with Python 3.15.  https://review.opendev.org/c/openstack/openstack-doc-tools/+/100808416:35
opendevreviewTakashi Kajinami proposed openstack/openstack-doc-tools master: Adapt to recent scrapy  https://review.opendev.org/c/openstack/openstack-doc-tools/+/100810017:15
tkajinamelodilles, https://review.opendev.org/c/openstack/openstack-doc-tools/+/1008100 worked in my env but it'd be nice if you can try that in your env, too, when you have time.17:59
tkajinam(I don't yet fully understand the expected output from the tool, tbh18:00

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