Repository navigation
ci: Align release automation with draft finals and forward-fix rollback - #448
Merged
c-vigo merged 2 commits intoMar 26, 2026
Merged
Conversation
…back Final release automation creates a draft GitHub Release for human review and publishing from the UI, matching immutable-releases draft-first guidance. Validate and publish treat an existing draft for the same tag as the retry path and fail closed on a published (non-draft) final release for that tag. After finalization, detect when the remote publish tag already peels to the finalize SHA; skip redundant tag create and push. Remove the pre-publish "tag must not exist" gate in favor of this SHA-aware check. Rollback resets the release branch (best-effort) but no longer deletes remote tags; failure issues and operator copy explain forward-fix recovery, draft release handling, and how immutable releases differ from tag rulesets. Align workspace release-core, release-publish, and orchestrator rollback with the same semantics; extend release-publish inputs for tag_already_exists and draft/published release checks (including candidate pre-release retry paths). Update smoke-test repository-dispatch failure guidance for published releases and immutable tags. Document policy and recovery in RELEASE_CYCLE (new immutable-releases section, diagram and procedure updates), DOWNSTREAM_RELEASE (consumer-only scope, downstream draft final and RC pre-release notes), and CROSS_REPO_RELEASE_GATE. CHANGELOG Unreleased records user-visible impact. Refs: #446
There was a problem hiding this comment.
Pull request overview
Aligns the release automation and operator runbooks with GitHub immutable releases and a draft-first publishing flow for final releases, while adopting a forward-fix rollback policy (no tag deletion).
Changes:
- Update upstream and workspace release workflows to create draft final GitHub Releases, tolerate retries when a draft already exists, and skip redundant tag operations when the remote tag already targets the finalized SHA.
- Remove rollback tag-deletion behavior and update failure issues/summaries to reflect forward-fix guidance.
- Refresh smoke-test dispatch guidance and release documentation to match the new immutability + retry semantics.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/release.yml |
Draft-first final release creation; tag-peel check to skip tag push when already correct; rollback no longer deletes tags; updated summaries/issues. |
assets/workspace/.github/workflows/release-core.yml |
Moves tag-vs-finalize SHA check into finalize and exposes tag_already_exists output; removes “tag must not exist” gate. |
assets/workspace/.github/workflows/release-publish.yml |
Adds tag_already_exists input to skip tag creation; adds retry-tolerant draft/prerelease release-create behavior. |
assets/workspace/.github/workflows/release.yml |
Wires tag_already_exists through; removes tag deletion from rollback; updates failure issue body for forward-fix. |
assets/smoke-test/.github/workflows/repository-dispatch.yml |
Updates failure guidance to reflect immutable/published release constraints and forward-fix retry strategy. |
docs/RELEASE_CYCLE.md |
Documents draft-first finals, immutable releases/tag rulesets, forward-fix rollback, and updated operator steps. |
docs/DOWNSTREAM_RELEASE.md |
Clarifies downstream (consumer repo) workflow behavior vs upstream; documents draft-first finals + pre-release RCs + forward-fix. |
docs/CROSS_REPO_RELEASE_GATE.md |
Adds immutable-release context and points to the canonical recovery/policy section. |
CHANGELOG.md |
Adds 0.3.1 entry describing immutability + forward-fix policy and related workflow/doc updates. |
assets/workspace/.devcontainer/CHANGELOG.md |
Mirrors the changelog entry into the workspace template. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Description
Aligns release automation with GitHub immutable releases and draft-first practice for finals:
release.ymlcreates a draft GitHub Release for human review, allows retry when a draft or matching remote tag already exists, skips redundant tag push when the tag peels to the finalize SHA, and stops deleting remote tags on rollback (forward-fix policy). Workspace downstream workflows, smoke-test dispatch guidance, and release docs are updated to match.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
.github/workflows/release.yml— Draft final GitHub Release; validate/publish tolerate existing draft vs published;tag_state/ skip tag create-push when remote tag matches finalize SHA; rollback removes tag deletion step; summaries and failure issues document forward-fix and draft handling.assets/workspace/.github/workflows/release-core.yml— Move tag-vs-SHA check to finalize job; exposetag_already_exists; drop blunt “tag must not exist” validate gate.assets/workspace/.github/workflows/release-publish.yml— Inputtag_already_exists; conditional tag step; draft final release create; draft/prerelease retry semantics for candidates.assets/workspace/.github/workflows/release.yml— Passtag_already_exists; rollback no longer deletes tags; issue body updated.assets/smoke-test/.github/workflows/repository-dispatch.yml— Failure copy: immutable/published release guidance and fresh RC dispatch.docs/RELEASE_CYCLE.md,docs/DOWNSTREAM_RELEASE.md,docs/CROSS_REPO_RELEASE_GATE.md— Immutable releases vs tag rulesets, operator steps, downstream scope, recovery.CHANGELOG.mdandassets/workspace/.devcontainer/CHANGELOG.md—## [0.3.1] - TBDentry for [CHORE] Enforce immutable git tags and GitHub releases; align rollback workflows #446 (template mirror).Commits (vs
release/0.3.1):1bb5f78— feat(ci): draft final releases, idempotent tags, and forward-fix rollbackChangelog Entry
On this branch the active section is
## [0.3.1] - TBD(not## Unreleased). Added under ### Changed:Testing
just test)Manual Testing Details
N/A — workflow and documentation changes; validate in Actions on merge / release dry-run as appropriate.
Checklist
docs/templates/, then runjust docs)CHANGELOG.mdunder## [0.3.1] - TBD(and pasted the entry above)Additional Notes
Target base is
release/0.3.1(release train), notdev. Operators must publish the draft GitHub Release from the UI when ready for finals; seedocs/RELEASE_CYCLE.md.Refs: #446