Move mp_timeout tests to standalone script for speed #476
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.
Summary
tests/unit/file_cache/run_mp_timeout_tests.py) that runs the same 14 checks in a single invocation with less per-fork overheadTiming comparison
The standalone script runs more checks than the original pytest suite did (including the previously-skipped diagnostic tests) while keeping each forked child lighter. pytest-xdist was tried previously and does not help because the bottleneck is per-fork overhead, not test parallelism.
Test plan
python tests/unit/file_cache/run_mp_timeout_tests.py— 14 passedpytest tests/unit/file_cache/mp_timeout_decorator_test.py— 1 passed, 14 skipped🤖 Generated with Claude Code