Skip to content

fix: pytest-9 pytest_ignore_collect signature (unbreaks CI) - #9

Merged
thorwhalen merged 1 commit into
masterfrom
fix/pytest9-ignore-collect
Aug 10, 2026
Merged

fix: pytest-9 pytest_ignore_collect signature (unbreaks CI)#9
thorwhalen merged 1 commit into
masterfrom
fix/pytest9-ignore-collect

Conversation

@thorwhalen

Copy link
Copy Markdown
Member

CI on master has been red since October: pytest 9 removed the legacy one-argument pytest_ignore_collect(path) hook form, so every run died with a PluginValidationError before collecting a single test.

This switches conftest.py to the collection_path/config signature (supported since pytest 7 — older environments keep working) and replaces the substring scrap-dir test with a robust Path comparison.

Verified locally (emulating the isee pytest-validation action's command): pytest -v --doctest-modules taped → 7 passed, 1 skipped, taped/scrap excluded.

Known fleet-wide blocker per the ecosystem rollout notes; this is the taped instance of it.

https://claude.ai/code/session_01GUjT9e7sAyckG1SR9czApr

pytest 9 removed the legacy one-argument pytest_ignore_collect(path) hook
form; every CI run failed with a PluginValidationError before collecting a
single test. Use the collection_path/config signature (supported since
pytest 7, so older environments keep working), with a robust Path-based
scrap-dir match instead of the old substring test.

Verified locally: pytest --doctest-modules taped -> 7 passed, 1 skipped,
taped/scrap excluded from collection.

Claude-Session: https://claude.ai/code/session_01GUjT9e7sAyckG1SR9czApr
@thorwhalen
thorwhalen merged commit 8a86c65 into master Aug 10, 2026
8 checks passed
@thorwhalen
thorwhalen deleted the fix/pytest9-ignore-collect branch August 10, 2026 23:39
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