Fix tests for Python 3.14#582
Conversation
- Update tests to run a matrix for 3.11-3.14. - Update GitHub Actions to their latest versions.
- Disable until w3c#581 is fixed. - Add job to meet the required statuses without needing to reconfigure the status checks.
Update asyncio event loop so it works on Python 3.14.
|
martincostello marked as non substantive for IPR from ash-nazg. |
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: |
There was a problem hiding this comment.
why do you suggest to test on multiple versions? Also should we test on latest?
There was a problem hiding this comment.
We currently test on images with different versions of Python included in the OTel .NET SDK, so I wouldn't want to fix the 3.14 bug but break earlier versions.
There was a problem hiding this comment.
Can I get #580 approved and merged, then I can rebase this?
There was a problem hiding this comment.
dyladan
left a comment
There was a problem hiding this comment.
I think this can be reviewed and merged separately from the other PR. You can just remove the changes you made to the self_test.yml and bump the version to latest.
|
I felt the approach of merging #581 then this one doesn't mean I fix my issue (3.14 not working) but causes an issue for someone else by accident. |
|
Ah thanks for this! Can't wait for this land. In tctx I had to wrap the harness in this: import asyncio, runpy, sys
sys.path.insert(0, "w3c/test")
sys.argv = ["w3c/test/test.py", *sys.argv[1:]]
asyncio.set_event_loop(asyncio.new_event_loop())
runpy.run_path("w3c/test/test.py", run_name="__main__") |
Update asyncio event loop so it works on Python 3.14.
Fixes #581.
Depends on #580 to rebase.