Skip to content

Run the pre-merge tests on GitHub, side by side, and shorten the commit hook - #422

Merged
captaincole merged 3 commits into
mainfrom
github-gates
Nov 28, 2026
Merged

captaincole merged 3 commits into
mainfrom
github-gates

Conversation

@captaincole

@captaincole captaincole commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

In order to stop every test from waiting for one Mac, the tests a pull request must pass now run on GitHub's runners as parallel jobs, and the commit hook keeps only a quick check.

  • Risk: high — a slow test no longer runs before a commit, so a failure shows on the pull request, not at the commit.
  • Pattern change: all tests in the commit hook, and the slow ones by hand before a merge → a quick hook, and every test on GitHub for each pull request. A pull request merges when its all gates check is green.

What changed

  • .github/workflows/gates.yml: ten jobs for each pull request. Static checks, scenario values, PDF fill, unit tests (two jobs), integration tests, and the full missing-answer check in four parts. No job calls a model or needs a secret.
  • The commit hook runs format, lint, the scenario values and the unit tests. The integration tests moved to GitHub.
  • CLAUDE.md has the new merge rule.
  • The form agents of solve-forms-batch run the slow tests for their own made-up taxpayer only.

Example outcome

The first run: every job green, the slowest (PDF fill) in 8 min 17 s. The same set took 18 minutes or more on the Mac, one step after another.

Verified

  • The workflow ran green on this pull request before the hook changed.
  • The new hook passed on the second commit.
  • Not run: a pull request from a fork.

Refs

🤖 Generated with Claude Code

captaincole and others added 3 commits November 28, 2026 02:16
Co-Authored-By: Claude <noreply@anthropic.com>
The integration tests, the full required-inputs check and the PDF fill run on
GitHub for each pull request. A pull request merges when its all gates check
is green. The form agents run the slow tests for their own scenario only.

Co-Authored-By: Claude <noreply@anthropic.com>
@captaincole captaincole changed the title Run the pre-merge tests on GitHub, side by side Run the pre-merge tests on GitHub, side by side, and shorten the commit hook Nov 28, 2026
@captaincole
captaincole marked this pull request as ready for review November 28, 2026 11:10
@captaincole
captaincole merged commit 04111d3 into main Nov 28, 2026
11 checks passed
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