Skip to content

test: skip timing benchmarks in CI - #18

Merged
shauneccles merged 1 commit into
mainfrom
test/skip-perf-on-ci
Sep 27, 2026
Merged

shauneccles merged 1 commit into
mainfrom
test/skip-perf-on-ci

Conversation

@shauneccles

Copy link
Copy Markdown
Member

The performance tests measure wall-clock speedups, and shared CI runners can't deliver those reliably. test_conditional_gil_release_large_data_threading failed with no code change at 0.88× on macos-15-intel (#15) and at 0.68× on windows-latest (#17).

  • The timing tests (6 in test_threading_performance.py, all of test_asyncio_performance.py and test_datatype_performance.py) are marked perf. Every CI pytest run deselects them with -m "not perf": the cibuildwheel test command, the sdist job, the oldest-NumPy job and the NumPy-nightly job.
  • The correctness tests in those files keep running in CI: test_gil_release_quality, test_release_gil_parameter and test_release_gil_parameter_invalid.
  • Locally, plain pytest still runs everything; pytest -m perf runs just the benchmarks.

CI now runs 138 tests (68 deselected) instead of 206, which also saves roughly 20–60 s per wheel across 20 wheels.

🤖 Generated with Claude Code

The threading/asyncio/datatype performance tests measure wall-clock
speedups, which shared CI runners can't deliver reliably: the large-data
threading test failed at 0.88x on macos-15-intel and 0.68x on
windows-latest with no code change. Mark every timing test `perf` and
deselect them in all CI pytest runs (-m "not perf"). The correctness
tests in those files (GIL release output quality, release_gil
parameter) keep running. Locally, plain `pytest` still runs everything.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@shauneccles
shauneccles merged commit 6df1f46 into main Sep 27, 2026
10 checks passed
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