Skip to content

ci: Align release automation with draft finals and forward-fix rollback - #448

Merged
c-vigo merged 2 commits into
release/0.3.1from
feature/446-immutable-tags-releases-rollback
Mar 26, 2026
Merged

c-vigo merged 2 commits into
release/0.3.1from
feature/446-immutable-tags-releases-rollback

Conversation

@c-vigo

@c-vigo c-vigo commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

Description

Aligns release automation with GitHub immutable releases and draft-first practice for finals: release.yml creates 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 feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes 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; expose tag_already_exists; drop blunt “tag must not exist” validate gate.
  • assets/workspace/.github/workflows/release-publish.yml — Input tag_already_exists; conditional tag step; draft final release create; draft/prerelease retry semantics for candidates.
  • assets/workspace/.github/workflows/release.yml — Pass tag_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.md and assets/workspace/.devcontainer/CHANGELOG.md — ## [0.3.1] - TBD entry 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 rollback

Changelog Entry

On this branch the active section is ## [0.3.1] - TBD (not ## Unreleased). Added under ### Changed:

- **Immutable GitHub releases, tag rulesets, and forward-fix policy** ([#446](https://github.com/vig-os/devcontainer/issues/446))
  - Final releases create a **draft** GitHub Release for human review before publishing; rollback no longer deletes remote tags
  - Release workflows skip redundant tag push when the tag already matches the finalized commit; workspace `release-core` / `release-publish` and smoke-test failure guidance updated accordingly
  - Document tag rulesets, immutable releases, and recovery in `docs/RELEASE_CYCLE.md`, `docs/DOWNSTREAM_RELEASE.md`, and `docs/CROSS_REPO_RELEASE_GATE.md`

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

N/A — workflow and documentation changes; validate in Actions on merge / release dry-run as appropriate.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md under ## [0.3.1] - TBD (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

Target base is release/0.3.1 (release train), not dev. Operators must publish the draft GitHub Release from the UI when ready for finals; see docs/RELEASE_CYCLE.md.

Refs: #446

…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
@c-vigo c-vigo self-assigned this Mar 26, 2026
@c-vigo
c-vigo requested a review from Copilot March 26, 2026 10:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .github/workflows/release.yml Resolved
@c-vigo
c-vigo enabled auto-merge March 26, 2026 10:32
@c-vigo
c-vigo merged commit 83b2323 into release/0.3.1 Mar 26, 2026
11 checks passed
@c-vigo
c-vigo deleted the feature/446-immutable-tags-releases-rollback branch March 26, 2026 10:38
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.

2 participants