OpenTine v0.54.0: CI speedup
Release notes reproduced from the pinned changelog. Source.
0.54 cuts the time CI takes without dropping any check. The Python suite now runs in parallel under pytest-xdist, Windows is split into four shards, the once-per-run checks run once instead of in every matrix cell, and pull requests get a smaller matrix while main keeps the full one. It also adds opt-in support for the owner's own ephemeral runners, off by default and never used for pull requests. No object kind, wire format, vector family, schema or CLI behaviour changed.
CI
- New
prepjob (Lint, build and inventory): ruff check, ruff format,check_architecture.py,check_copy.py, build, release inventory, twine and the wheel smoke test run once per run. The test matrix needs it, so a lint error fails the run in minutes.package-oskeeps the build and release inventory running on Windows and macOS. - The test cells run pytest only: a parallel pass
(
-n auto --dist loadgroup -m "not serial") and a serial pass (-m serial -p no:xdist). scripts/ci_plan.pypicks the matrix. Push to main, a new nightly schedule andworkflow_dispatchget the full 3 OS x 4 Python matrix; a pull request gets Ubuntu 3.11 and 3.14, Windows 3.12 and macOS 3.13; a pull request that changes onlyts/,ide/and prose gets one Ubuntu cell; one that changes only Markdown underdocs/or at the root skips the matrix.- Every Windows cell is split into four
pytest-splitshards using the committedtests/test_durations.json, with the workspace excluded from Defender scanning. - New
Python testsjob: one stable check name for branch protection that passes when every needed job passed or the plan skipped the matrix. - Home runners: the Linux jobs
prep, the Ubuntu test cells,fuzz-otlpandpeer-compat-034resolve to theopentine-homelabel only when the repository variableUSE_HOME_RUNNERSis the stringtrueand the run is a push to main or aworkflow_dispatch. Everything else, including every pull request, runs hosted. The bench gate stays on hostedubuntu-24.04; publish, CodeQL, Scorecard and supply-chain stay hosted.
Tests
pytest-xdistandpytest-splitare dev dependencies; theserialmarker is registered for tests that cannot run beside others.- The replay
--verifyleftover-directory tests use a private temp root, so other workers' temp directories do not count against them. - The four subreaper tests that kill their supervisor (which starts the
machine-wide hidden-process sweep) are marked
serial. tests/test_054_ci_runner_policy.pyevaluates everyruns-onin.github/workflowsfor every pull-request event, both switch settings and every matrix OS, and fails if any job can resolve to a non-hosted label. It also checks that home runners are off unless the switch is set.tests/test_054_ci_plan.pypins the matrix plan and theprephoist.
Docs
docs/CI-RUNNERS.md: the CI layout, the runner selection rule, and the home-runner setup (ARC on k3s, ephemeral just-in-time runners, the runner image, read-through caches, network isolation and repository settings).