Skip to content

docs: release recovery with protected tags and immutable releases - #580

Merged
somanshreddy merged 1 commit into
mainfrom
11-16-docs_release_recovery_with_protected_tags
Nov 16, 2026
Merged

somanshreddy merged 1 commit into
mainfrom
11-16-docs_release_recovery_with_protected_tags

Conversation

@somanshreddy

Copy link
Copy Markdown
Collaborator

Scope

Surfaces: Docs (release process) | Module: Release

Summary

Updates the release recovery steps in RELEASE.md for two repository settings that are now on: release tags (v*) are protected by a ruleset, and published releases are immutable. Docs only.

How it works

  • A new short section explains both settings. Only a repository admin can move or delete a release tag. A published release can't change, and a deleted release's version number can't be reused.
  • A failed run's cleanup job can no longer delete its tag, so an admin deletes it before the next dispatch. The version number can be reused, because that release was never published.
  • When the cleanup refuses, the steps now distinguish three cases: a draft from another run, an incomplete published release (release the next patch version), and a complete one.

Testing

Checked the ruleset and the immutable-releases setting through the GitHub API, and the recovery steps against cleanup-failed-release.sh.

🤖 Generated with Claude Code

@jrusso1020 jrusso1020 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

APPROVE. Reviewed at b6fda225027dfe2e919b42fac4af8b8a4054ce26 (docs only, RELEASE.md, on top of #576).

I checked the settings it describes against the repository (read-only API):

  • Ruleset Protect release tags (id 27341621) is active on refs/tags/v*, with rules deletion, non_fast_forward and update, and the admin role (RepositoryRole 5) as the only bypass. Creation isn't restricted, so "the workflow can still create them" is right.
  • GET /repos/heygen-com/heygen-cli/immutable-releases returns {"enabled": true}.

The failed-run path matches cleanup-failed-release.sh at this head. The script checks that the tag is this run's annotated tag, refuses on a published release or another run's draft, deletes this run's drafts, and only then runs the leased git push … :refs/tags/<tag>. With the ruleset, that last push is rejected, so the job fails after the drafts are gone, exactly as the new text says. An admin deleting the tag and then re-dispatching with the same commit works, and reusing the version number is fine because that release was never published. Re-running the cleanup job alone after it failed at the tag step would fail the same way, and the text correctly limits that advice to a job that failed before the tag step.

The three refusal cases (another run's draft, an incomplete published release, a complete one) follow from immutable releases. In particular, "release the next patch version" for an incomplete published release is right, since a deleted published release's version can't be reused.

Nit (non-blocking): the ruleset pattern refs/tags/v* also covers dev tags (v0.6.1-dev.<timestamp>). So dev-release.yml's cleanup job now fails at its tag step the same way and leaves the failed dev tag for an admin to remove. A line saying the same recovery applies to dev releases, or narrowing the ruleset to stable tags if that's preferred, would keep someone from being surprised by it.

Need: yes, the recovery steps would otherwise tell people to do things the new settings block · Size: ok · Reuse: n/a (docs) · Simpler: already minimal · Structure: fine (checked against cleanup-failed-release.sh; no split)
Risk: low — documentation only.

— Rames

@somanshreddy
somanshreddy force-pushed the 11-16-docs_release_recovery_with_protected_tags branch from b6fda22 to d6a8ec3 Compare November 16, 2026 01:15
@somanshreddy
somanshreddy force-pushed the 11-16-ci_bind_cdn_publish_to_the_built_release branch from 0c4ee66 to c40538e Compare November 16, 2026 01:15
Base automatically changed from 11-16-ci_bind_cdn_publish_to_the_built_release to main November 16, 2026 01:27
@somanshreddy
somanshreddy force-pushed the 11-16-docs_release_recovery_with_protected_tags branch from d6a8ec3 to c9e8c40 Compare November 16, 2026 01:27
@somanshreddy
somanshreddy merged commit 54f07ae into main Nov 16, 2026
9 of 10 checks passed
@somanshreddy
somanshreddy deleted the 11-16-docs_release_recovery_with_protected_tags branch November 16, 2026 01:39
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