Skip to content

ci: run unit tests and builds on push to main - #325

Merged
leggetter merged 1 commit into
mainfrom
ci/test-on-push-to-main
Aug 4, 2026
Merged

ci: run unit tests and builds on push to main#325
leggetter merged 1 commit into
mainfrom
ci/test-on-push-to-main

Conversation

@leggetter

Copy link
Copy Markdown
Collaborator

Summary

Run the test workflow (unit tests + cross-platform builds) on push to main, not only on pull requests.

Why

Today all functional CI is pull_request-only, so nothing runs on the merged result on main. A PR branch based on stale main can merge into a combination that git accepts textually but no PR run ever exercised — semantic drift can land untested. Running unit + build on push to main catches that class immediately and cheaply.

Acceptance tests are intentionally left PR-gated: they hit live Hookdeck APIs and are slow (~12 min) and occasionally flaky, so running them on every main push would be noisy and costly.

Follow-ups (not in this PR)

  • Enable branch protection "require branches to be up to date before merging" so a PR's acceptance run is against current main.
  • Fix the residual acceptance flakiness (the 502 retry re-runs a CLI command, which emits a new invocation_id and trips the telemetry-consistency assertion), then add an acceptance gate on the release workflow.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UQV9qtvETd62qg2iDRR6kY

All functional CI was pull_request-only, so the merged result on main was never tested — a PR based on stale main could merge into an untested combination. Run unit + build jobs on push to main to catch that. Acceptance tests stay PR-gated (live APIs, slow, flaky).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01UQV9qtvETd62qg2iDRR6kY
@leggetter
leggetter merged commit df5d6d1 into main Aug 4, 2026
12 checks passed
@leggetter
leggetter deleted the ci/test-on-push-to-main branch August 4, 2026 20:31
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