Skip to content

ci: run main test jobs in parallel (-n auto) - #261

Merged
rng1995 merged 6 commits into
mainfrom
naren/ci-parallel-tests
Oct 30, 2026
Merged

rng1995 merged 6 commits into
mainfrom
naren/ci-parallel-tests

Conversation

@rng1995

@rng1995 rng1995 commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

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

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 and others added 4 commits October 30, 2026 00:31
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]>
@rng1995 rng1995 mentioned this pull request Oct 30, 2026
15 of 20 tasks
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
@rng1995
rng1995 merged commit 4870594 into main Oct 30, 2026
17 checks passed
@rng1995
rng1995 deleted the naren/ci-parallel-tests branch October 30, 2026 15:14
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]>
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant