You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A2 gate: pytest tests/ fails under pytest 8.4.2 (a2_release option registered too late) #116
The A2 full_gates observation fails before running any test: python -m pytest tests/ -q -p no:cacheprovider exits 3 with ValueError: no option named 'a2_release' raised from tests/a2/conftest.py:43 (config.getoption('--a2-release') in pytest_collection_modifyitems). The option is registered by pytest_addoption in the same file, but a conftest in a subdirectory is not an initial conftest when tests/ is the argument, so the option registers too late under pytest 8.4.2.
scripts/verify_a2_release.py:172 hard-codes python -m pytest tests/ -q -p no:cacheprovider as the canonical gate command, so the command cannot simply be reordered (tests/a2 tests/ collects only the 680 A2 tests).
The observations gate last ran on 2026-10-25, when an older pytest satisfied both. Reproduced locally on dev and on the v2.22.1 commit (6ce4e50) with pytest 8.4.2; collection under pytest 9.2.0 succeeds.
Evidence: a2-observations run 41237353606 on 53d633f: 5 of 6 observations passed, full_gates failed with pytest exit code 3, pytest_passed 0.
Proposed fix
Register --a2-release in tests/conftest.py, which pytest loads at startup when tests/ is an argument, and remove the registration from tests/a2/conftest.py. Verify pytest tests/ under 8.4.2 and that scripts/run_a2_release.py (tests/a2 --a2-release -p tests.a2.release_capture) still works.
Impact
Independent of #115: the next release's observations run fails the same way until this is fixed.
Fixed in PR #117 (commit 3bf81cf, squashed to 8dbd32e): --a2-release is registered in tests/conftest.py. Verified: pytest tests/ exit 0 with 1610 passed and 5 skipped under pytest 8.4.2, and the full_gates observation passed in run 41241520378. Reaches main with the next dev to main release.
Activity
fix(tests): register --a2-release in tests/conftest.py (#116)
docs(spec): record the #116 gate fix and drop a stray line (#115)
docs(status): record A2 macos-15 migration progress and the #116 gate…
feat(a2): move release gate from macos-14 to macos-15 (#115, #116) (#117
docs(status): A2 macos-15 migration merged and accepted on the branch (…
Data-Wise commentedon Oct 31, 2026
Fixed in PR #117 (commit 3bf81cf, squashed to 8dbd32e): --a2-release is registered in tests/conftest.py. Verified: pytest tests/ exit 0 with 1610 passed and 5 skipped under pytest 8.4.2, and the full_gates observation passed in run 41241520378. Reaches main with the next dev to main release.