The suite had grown to 433 tests at ~2 minutes serial. The tests are independent (ephemeral localhost ports, per-test HOME isolation, tmp_path), so the time was pure CPU, not contention.
pytest-xdist with -n auto in addopts —
~19 s on 8 cores, ~35 s on the CI's 2-core runners.--serial (implemented as a tryfirst
pytest_cmdline_main hook in the root conftest.py — the only hook
point early enough to override xdist's -n auto resolution); plain
-n 0 also works.slow marker;
-m "not slow" runs the pure-logic core in ~6 s.serve_forever with
poll_interval=0.01 (Python 3.14's default 0.5 s would tax every
fixture).SKILLS_SRC/SKILLS_DEST), so workers never rewrite the repo while
others read it.