Repository navigation
Description
Description
Move the release approval gate off the release-candidate (RC) dispatch and
onto the final dispatch. Today release.yml's validate job runs the same
"Find and verify PR" gate for both release-kind=candidate and
release-kind=final: it requires the release PR to be non-draft,
approved (reviewDecision=APPROVED), and CI-green before it will cut
anything (release.yml:308–393, with no if: on release-kind).
That forces a human to approve the release PR before any RC image exists —
i.e. before the artifact they would functionally verify has been built. RCs
should instead be the disposable tool used during verification, with the
single human approval landing once, on the settled final diff.
Problem Statement
The current gate conflates two distinct activities into one blocking check:
- Code review — a human reading the diff/CHANGELOG and approving.
- Functional verification — pulling the built image and confirming it works.
The RC is the artifact needed for functional verification, yet approval is
required before the RC can be produced → the reviewer approves blind. It also
means approval sits on an intermediate diff: fixes can land on the release
branch after approval, so (absent stale-approval dismissal) we can ship
something a human never actually approved.
RC blast radius is already low: an RC burns a fresh auto-incrementing
X.Y.Z-rcN tag + :X.Y.Z-rcN GHCR images (+cosign/SBOM) and dispatches the
smoke-test. It does not touch :latest, does not create a GitHub
Release on this repo, does not merge anything, and is pruned at promote.
Gating that behind full PR approval is over-restrictive for what it costs.
Proposed Solution
Make the draft + approval portion of the PR gate conditional on
release-kind == final; keep the CI-status checks for both kinds.
- RC dispatch (
publish-candidate): gated on CI-green only. Drop the
isDraftandreviewDecisionchecks (release.yml:342–364); keep the CI
status checks (release.yml:367–391). The release PR stays draft through the
whole RC phase. - Final dispatch (
finalize-release): the real gate —gh pr ready+
approval + CI-green. Justified because final burns the immutable
X.Y.Ztag (a mistaken final can only be forward-fixed toX.Y.Z+1). - Promote: unchanged. Its
mergejob already re-verifies not-draft +
approved + CI before merging tomain, somain/:lateststay protected
regardless.
Scope of change:
release.ymlvalidatejob: wrap the draft +reviewDecisionchecks in an
if [ "$RELEASE_KIND" = "final" ]guard; leave CI checks applying to both.justfile/ release docs: the RC phase no longer instructsgh pr ready
first; that moves to just beforefinalize-release.prepare-release.yml,promote-release.yml: no changes.
Alternatives Considered
- Fully ungate RC (skip the PR-verify step entirely for candidate).
Rejected: loses the cheap "no RC on a red branch" floor and lets anyone with
dispatch perms mint org-signedrcNimages with no gate.build-and-test+
vulnix-gaterun inside the RC anyway, so keeping the PR CI check is nearly
free insurance. - Approval at promote only (final becomes ready+CI, no approval). Rejected:
final burns the immutableX.Y.Ztag, so it deserves human sign-off before
that irreversible step, not only at promote.
Impact
- Beneficiaries: release maintainers. RCs become freely dispatchable for
verification; the one approval lands on the exact diff that ships. - Backward compatible: no change to the shipped image, tags, or consumer-facing
artifacts. Only the maintainer release procedure changes. - Accepted residuals: higher RC volume → more downstream smoke-test/RC
pre-release churn (pruned at promote); approval may be dismissed if a fix
lands after approval (this is the correct friction — re-approving a changed
diff); RCs queue underconcurrency: publish-image.
Changelog Category
Changed
Activity
ci(release): gate RC dispatch on CI only, defer draft/approval to final
ci(release): gate RC dispatch on CI only, defer draft/approval to fin…
c-vigo commentedon Jul 7, 2026
Implemented in #907 (merged to
dev, commit d618807).release.ymlnow gates candidate dispatch on CI only; the draft + approval gate applies to the final release, andpromote-release.ymlre-enforces approval before merging tomain. Docs/justfile/CONTRIBUTE reordered accordingly. Live for the next release branch cut fromdev.chore: release 0.5.0 (#938)
fix(ci): gate scaffolded release-core draft/approval on final only
fix(ci): gate scaffolded release-core draft/approval on final only (#…
chore: release 1.2.1 (#1109)
fix(smoke-test): gate final release on human PR approval (#1392)
chore: release 1.7.0 (#350)
chore: release 1.7.0 (#1385)
docs: document smoke-test final-release human-approval gate (#1410)
feat(release): single human approval at promote; unattended smoke leg (…
chore: release 1.10.0 (#1515)