Skip to content

[ci] Refuse a release build without green tests - #805

Open
ok wants to merge 1 commit into
mainfrom
ci-release-green-test-gate
Open

ok wants to merge 1 commit into
mainfrom
ci-release-green-test-gate

Conversation

@ok

@ok ok commented Nov 26, 2026

Copy link
Copy Markdown
Owner

A tag push and a build dispatch run no tests, so nothing tied a release to a test result.

  • resolve now runs scripts/ci/require-green-tests.mjs: the latest push or workflow_dispatch run of test.yml on the commit being built must have passed. Applies to prod and staging; dev is exempt; no override.
  • resolve gets actions: read; the build job does not.
  • test.yml gains workflow_dispatch for a commit that has no run.

Tests: test/unit/require-green-tests.test.js pins the decision, test/invariants/release-workflow-hardening.test.js the wiring. The step itself first runs on the next staging dispatch.

A tag push and a build dispatch run no tests, so the resolve job now
looks up the Test run for the commit being built and stops unless the
latest one passed. Dev builds are exempt. test.yml gains a manual
trigger for a commit that has no run.

This branch has not been deployed

No deployments
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