Run the everyday make test on xdist workers - #1765
Merged
Merged
Conversation
`make test` now passes `-n auto --maxprocesses=$(TEST_JOBS) --dist worksteal` to pytest, with TEST_JOBS defaulting to 4 and overridable per invocation. pytest-xdist has been a dev dependency since #1604 and CI has used this scheduler for the physics tier since then; only the local default was still serial. Measured on the same 1651-test selection on a ten-core machine: 625 s serial, 124 s with workers, all passing. The cap of 4 exists because each worker that draws one of the full-year DailyState tests materialises its own year of output, about 1 GB, so an unbounded worker count can exhaust a 16 GB laptop. The test README also stops pointing at a documentation page that does not exist (docs/source/contributing/testing_guide.rst); the guide is dev-ref/testing/TESTING_GUIDELINES.md. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Contributor
CI Build PlanChanged FilesCI/workflows (1 file)
Tests (1 file)
Documentation (1 file)
Build Configuration
Rationale
Updated by CI on each push. See path-filters.yml for category definitions. |
sunt05
enabled auto-merge
September 9, 2026 09:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
make testnow runs on pytest-xdist workers:-n auto --maxprocesses=$(TEST_JOBS) --dist worksteal, withTEST_JOBSdefaulting to 4 and overridable (make test TEST_JOBS=8). The recipe's banner says so and points atpytest --lffor re-running failures. The test README gets the same note and stops linking a documentation page that does not exist.Why
pytest-xdist has been a dev dependency since #1604 and the CI physics tier has used work stealing since then; only the local everyday run was still serial. On the same 1651-test selection, ten-core Apple silicon, CI wheel: 625 s serial against 124 s with workers, same results.
The cap defaults to 4 because each worker that draws one of the full-year DailyState tests materialises its own year of output (about 1 GB), so an unbounded worker count can exhaust a 16 GB laptop; a machine with memory to spare raises it per invocation.
Verification
make -n testrenders the intended pytest command.make testselection with-n autoon this machine; the serial figure is the same selection without it.No test content changes.