Repository navigation
ci: run the Python 3.12 pull-request tests in parallel without coverage - #492
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 13, 2026 09:36
chrisknvidia
requested review from
mosheabr,
rmalani-nv and
rng1995
as code owners
November 13, 2026 09:36
chrisknvidia
enabled auto-merge (squash)
November 13, 2026 09:43
This was referenced Nov 13, 2026
devin-ai-integration Bot
pushed a commit
that referenced
this pull request
Nov 17, 2026
Main now runs the Python 3.12 pull-request tests in parallel without coverage (#492) and keeps the source OSS-boundary scan for docs-only pull requests, so this branch takes main's version of those steps. It keeps the parallel Windows Tier 2 run and the aligned native Windows action pins. 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.
Summary
Tests (Python 3.12)is a required check and the slowest job by a wide margin. Last week its median was 39 minutes, against about 8 for the 3.13 and 3.14 jobs that run the same suite. It was the last job to finish on 364 of 369 pushes, so it set how long every PR waits for CI.It is slow because it runs about 29,000 tests on one core under coverage tracing. Nothing on a pull request reads that coverage:
coverage.xmlis never uploaded and there is no threshold.This PR changes the job in three ways:
uv run pytest -q -n auto, the same command as the 3.13 and 3.14 jobs.mainkeep the serial coverage run exactly as it was, so each merge still prints a coverage table. It stays serial for the reason ci: run main test jobs in parallel (-n auto) #261 found: timing-bound tests fail under coverage plus xdist load.The job id and check name are unchanged, so the "Protect main" ruleset needs no edit.
Measured on this PR
The 3.12 job took 11.5 minutes on the first push and 9.1 minutes on the second, against a median of about 39 minutes last week. The whole CI run finished in under 12 minutes both times. The 3.13 and 3.14 jobs were unchanged at 7.5 to 10.5 minutes.
Trade-offs
uv run pytest --cov=skillevaluator --cov-report=term-missing.mainafter merge instead of on the PR. Since ci: run main test jobs in parallel (-n auto) #261, every 3.12-only failure whose log could still be read (9 of them) was a wall-clock bound slowed by tracing, not a regression.fern checkfails, the 3.12 test step is skipped for that run. The 3.13 and 3.14 jobs still run the full suite.Not in this PR
tests/test_harbor_secure_docker_environment.py,tests/test_model_catalog.py) can still turn themaincoverage run red about as often as before.tests/test_harbor_local_mode.pycancellation tests is the most frequent open flake on the xdist jobs.merge_groupevents would take the serial coverage step, so the step conditions need a second look then.Verification
make lintmake testmake buildtests/test_ci_workflows.pynow pins both commands and both step conditions, that exactly one pytest step runs per event, and that Fern validation comes before the tests. All 44 tests in that file pass.make lintandmake buildwere run on the PR head with the locked Python 3.12 environment on macOS. Lint is clean, and the build produced the wheel and sdist.make teststays unticked because I do not have a clean local run. The full suite did pass on Linux in this PR's CI on Python 3.12, 3.13 and 3.14, on both pushes. On the current head each job reports 30,841 passed, 81 skipped, 0 failed.My local full run (
uv run pytest -q -n auto, Python 3.12, macOS) had 31 failures. They are not from this change: run on their own,mainand this branch give the same result, 24 fail and 7 pass.libsimdjsonlibrary.Release Impact
CHANGELOG.mdCI only, same as #261.