Disable pytest-run-parallel testing for now and re-enable CI for 3.13t #1129
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, the free-threaded tests don't actually run any tests.
The Mac builds die because of a check that was added in pytest-run-parallel 0.6.0 to fail the tests if the GIL is enabled at runtime. This happens on Mac right now (see here).
The Linux and Windows free-threaded tests don't actually run any tests (see here), because pytest-run-parallel detects that all the tests use the
recwarnfixture via the global_no_warningsfixture. Because warnings aren't thread-safe in Python 3.13, this means that no tests run in parallel on Python 3.13.This is fixed in Python 3.14 and I can re-add pytest-run-parallel testing using 3.14t once #1128 is fixed.
I think at one point these tests did something more useful (although I bet they were flaky because of the global use of the
recwarnfixture in all tests), but because thefreethreading_tests.ymlworkflow doesn't use pinned versions, all of that has bitrot as pytest-run-parallel has done some releases.For now, I think it's best to just delete all the infrastructure that was added back in #1106. Given the way the global warnings filter is implemented, I don't think it's possible to safely run the tests in parallel under 3.13t without changing that.
I was able to unify all the tests into one CI configuration file, since
setup-pythonsupports the free-threaded build there's no need to useuvto install a free-threaded interpreter.For more information about the thread-safety fixes for warnings that are enabled by default in 3.14t, see https://docs.python.org/3.14/whatsnew/3.14.html#concurrent-safe-warnings-control.