Run the regression suite automatically (CI + SessionStart hook) - #3
Merged
Merged
Conversation
Make the stdlib regression suite (tests/test_fixtures.py) run automatically in both CI and Claude Code on the web, so the classifier->plumbing contract is enforced rather than only checked by hand. - .github/workflows/tests.yml: runs the suite on every push to main and on every PR. No install step — the project is standard-library only. - .claude/hooks/session-start.sh + .claude/settings.json: a SessionStart hook for web sessions. There are no dependencies to install, so instead of an install step it runs the suite as a fast, side-effect-free smoke check so a session starts knowing the fixtures are green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SAn8aZTHDrPaKj8BoryGFr
brianleach
marked this pull request as ready for review
June 22, 2026 14:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Makes the stdlib regression suite (
tests/test_fixtures.py, added in #2) run automatically instead of only by hand, so the classifier→plumbing contract is actually enforced.Changes
.github/workflows/tests.yml— runs the suite on every push tomainand every PR. No install step (the project is standard-library only); it just checks out, sets up Python, and runs the fixtures..claude/hooks/session-start.sh+.claude/settings.json— a SessionStart hook for Claude Code on the web. Since there are no dependencies to install, instead of an install step it runs the suite as a fast, side-effect-free smoke check, so a web session starts knowing the fixtures are green.Validation
The hook was run exactly as it will run in a web session:
No linter is configured in this project (stdlib only, no ruff/flake8/black), so the test run is the validation.
The hook runs synchronously — it guarantees the suite has passed before the session starts (it takes well under a second). Easy to switch to async if faster startup is preferred. Once this merges to the default branch, all future web sessions will use it.
🤖 Generated with Claude Code
Generated by Claude Code