Skip to content

v0.9.0 — worker-count guard & fuzz-CI repair

Choose a tag to compare

@prostomarkeloff prostomarkeloff released this 08 Jun 09:19
· 44 commits to main since this release
4924c39

Fixes

  • No more silent false-green from workers < 1. --workers 0 / a zero or negative PYTEST_FAST_WORKERS could reach the daemon through the pytest --fast plugin path — 0 workers run nothing, so the session exited green having executed no tests. Worker-count validation is now centralized in _resolve_workers: an explicit < 1 is rejected on every front-end (CLI → parser.error, plugin → pytest.UsageError, Daemon.__init__ → a real ValueError that survives python -O). An unparseable PYTEST_FAST_WORKERS still falls back to auto-detect.
  • Atheris fuzz CI repaired. The job synced the venv on 3.13 and uv pip installed atheris ad-hoc, then ran the harness with a bare uv run, which reconciled the env against .python-version (3.11), rebuilt the venv, and dropped atheris → ModuleNotFoundError before any fuzzing. Now uses uv run --no-sync (CI step + Makefile fuzz target).

New

  • Public worker-count API so external tooling stops importing internals or replicating perf-core detection:
    • pytest_fast.resolve_workers(cli_value=None) and default_workers()
    • pytest-fast --print-inferred-workers — prints the resolved count (honoring --workers / PYTEST_FAST_WORKERS / auto-detect) and exits, e.g. W=$(pytest-fast --print-inferred-workers) in a Makefile.

Tests

8 new cases including a plugin-path regression asserting pytest --fast --fast-workers 0 fails loudly and never reports a pass. Full default suite green across the Linux/macOS × py3.11–3.14 matrix.

Full changelog: v0.8.0...v0.9.0