Repository navigation
ci(release): gate RC dispatch on CI only, defer draft/approval to final - #907
Merged
Merged
Conversation
Release candidates are disposable verification artifacts (auto-incrementing rcN tags, never touch :latest, no GitHub Release, pruned at promote), yet release.yml's validate job required the release PR to be non-draft and approved before any candidate could be published — forcing reviewers to approve before the artifact they would verify exists. Guard the draft + reviewDecision checks on release-kind == final; keep the CI-status checks for both kinds. The gate that protects main (not-draft + approved) is re-enforced by promote-release's merge job regardless, so moving it off the candidate loses no safety. Reorder RELEASE_CYCLE.md, justfile, and CONTRIBUTE.md accordingly: verify via candidates first, then mark ready and get approval before finalize. Refs: #902
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.
Summary
Moves the release approval gate off the release-candidate (RC) dispatch and onto the final dispatch.
Today
release.yml'svalidatejob runs the same "Find and verify PR" gate for bothrelease-kind=candidateandrelease-kind=final: it requires the release PR to be non-draft, approved, and CI-green before it will cut anything. That forces a reviewer to approve the release PR before any RC image exists — i.e. before the artifact they would functionally verify has been built — and lands approval on an intermediate diff rather than the one that ships.RCs are already low-blast-radius: an RC burns a fresh auto-incrementing
X.Y.Z-rcNtag +:X.Y.Z-rcNGHCR images (+cosign/SBOM) and dispatches the smoke-test. It does not touch:latest, creates no GitHub Release on this repo, merges nothing, and is pruned at promote. Gating that behind full PR approval is over-restrictive.What changed
release.yml(validatejob): the draft (isDraft) + approval (reviewDecision) checks are now guarded byif [ "$RELEASE_KIND" = "final" ]. The CI-status checks stay unconditional — candidates gate on CI-green only.finalize-release.docs/RELEASE_CYCLE.mdflowchart, phase summaries, prerequisites, and troubleshooting updated;CONTRIBUTE.mdchange made in its Jinja template (docs/templates/CONTRIBUTE.md.j2).Changedentry under## Unreleased(+ synced workspace mirror).Why this is safe
The gate that protects
mainis never lost:promote-release.yml'smergejob independently re-verifies not-draft + approved + CI before merging tomainand undrafting the Release. Final still burns the immutableX.Y.Ztag, so it keeps the ready + approval gate. Promote is unchanged.Design decisions (from discussion)
build-and-test/vulnix-gaterun inside the RC anyway.Verification
just precommitgreen end-to-end locally (incl.generate-docs,sync-manifestidempotent).release.ymlgate (norelease.bats); this workflow change is verified by the hook suite + the conditional logic. The RC/final paths differ only by the guarded block.Refs: #902