Repository navigation
ci: run main test jobs in parallel (-n auto) - #261
Merged
Merged
Conversation
The Python 3.12 coverage job took ~24 minutes and the 3.13 job ~12 minutes running serially. pytest-xdist is already a dev dependency. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
requested review from
chrisknvidia,
mosheabr and
rmalani-nv
as code owners
October 30, 2026 07:20
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Timing-bound tests fail under coverage plus xdist load. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
15 of 20 tasks
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
5 of 9 tasks
chrisknvidia
pushed a commit
that referenced
this pull request
Oct 30, 2026
* ci: run the main test jobs in parallel with pytest-xdist * test: time hook-risk bounds with CPU time so xdist load cannot fail them * test: show release script stderr when the push assertion fails * ci: keep the coverage job serial; parallelize only the Python 3.13 job * test: loosen the padded-script linearity bound to 10s for CI runners Signed-off-by: Narendran Raghavan <[email protected]>
6 of 9 tasks
chrisknvidia
added a commit
that referenced
this pull request
Nov 13, 2026
…ge (#492) Tests (Python 3.12) is a required check and ran the whole suite serially under coverage: a median of 39 minutes, against about 8 for the 3.13 and 3.14 jobs that run the same tests. Nothing on a pull request reads the coverage report. On pull requests the job now runs `pytest -q -n auto`, like the 3.13 and 3.14 jobs. Pushes to main keep the serial coverage run, which stays serial because timing-bound tests fail under coverage plus xdist load (#261). Fern validation moves ahead of the tests, so a docs break is reported in the first minute and is not hidden by a failing test. The job id and check name are unchanged. Signed-off-by: Christopher Kevin <[email protected]>
chrisknvidia
added a commit
that referenced
this pull request
Nov 17, 2026
…ion pins (#758) * ci: run the coverage job and Windows Tier 2 in parallel The Python 3.12 coverage job ran pytest serially and took about 38 minutes, while every other PR job finishes in under 9. Run it with -n auto and COVERAGE_CORE=sysmon: sys.monitoring removes most of the coverage overhead that made the timing-bound tests fail under xdist (#261), and reports the same line coverage. Tier 2 on Windows also runs with -n auto. Drop the standalone source boundary scan from the 3.12 job: the Package job runs the same command plus the built wheel and sdist. Pin the native Windows job to the same checkout, setup-python and setup-uv versions as the other jobs. Signed-off-by: Christopher Kevin <[email protected]> * fix(ci): drop the duplicate setup-uv inputs left by the main merge The merge left two identical with: blocks on the native Windows local mode setup-uv step. GitHub rejects the duplicate key, so no jobs ran. Signed-off-by: Christopher Kevin <[email protected]> --------- Signed-off-by: Christopher Kevin <[email protected]>
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.
Runs the Python 3.12 (coverage) and 3.13 test jobs with
pytest -n auto. They took about 24 and 12 minutes serially; pytest-xdist is already a dev dependency. Validation is this PR's own CI: compare job times and watch for xdist-only flakes (see coverage+xdist timing asserts).🤖 Generated with Claude Code