Repository navigation
fix(release): drop leftovers of the internal release tag - #1032
Merged
Merged
Conversation
…al tag Prepare Release tagged the version commit vX.Y.Z_RC so that later jobs (Stage to Maven Central, Publish Gradle Plugins, Build Distributions, Release smoke, Finalize Release Tag, container images) could check it out before the final tag exists; a release candidate has no branch to carry it. Finalize Release Tag then deleted the internal tag, but the repository's tag rules forbid that: for 3.0.0-RC1 (run 44069366261) the push was rejected with "GH013 ... Cannot delete this tag", `|| true` hid it, and v3.0.0-RC1_RC stayed behind. Every release would leave one. Prepare Release now bundles the commits GitHub does not have (`git bundle create ... HEAD --not --remotes=origin`), before the release branch push, and uploads the bundle as the release-commit artifact. The jobs that need the release commit check out commit_sha with full history (so the bundle's prerequisites are present), fetch the bundle, and check out release_sha. Finalize Release Tag pushes the final tag, which uploads the commit. Dry runs use the same path, so Build Distributions no longer needs a separate dry-run checkout. Removes the leftover-_RC-tag checks from validate and release.sh, and the internal tag from the docs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qr5KugNMySpdUw3Uivh4UB
Dry runs used to build commit_sha, which lacks the version commit, so Build Distributions re-applied the version. Every run now builds the release commit from the release-commit bundle, which already carries it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qr5KugNMySpdUw3Uivh4UB
develop gained #1031, which replaces the internal vX.Y.Z_RC tag with a release-commit bundle, the same fix as the closed #1030; this merge takes develop's version of every file. Two leftovers remain and are removed: - Build Distributions' "Update version for dry run" step. Dry runs used to build commit_sha, which lacks the version commit; every run now checks out the release commit from the bundle, which already carries it, and no later step reads the VERSION_FILE it exported. - The "RC tag" row of the release checklist's candidate identity, now the release commit that Prepare Release outputs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qr5KugNMySpdUw3Uivh4UB
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.
What does this change do?
Removes two leftovers of the internal
vX.Y.Z_RCrelease tag that #1031 retired.commit_sha, which lacks the version commit, so this step re-applied the version. Since fix(release): push no intermediate tag and name deb/rpm assets without '~' #1031 every run, dry runs included, checks out the release commit from therelease-commitbundle, and that commit already carries the version. The step re-applies the same value, and no later step reads theVERSION_FILEit exports.This is the remainder of the closed #1030, which implemented the same fix as #1031.
Related issue
N/A. Follow-up to #1031.
Scope and compatibility
Compatibility or migration notes: release workflow and docs only.
Testing
spotlessCheckCommands and results:
Documentation and release impact
Release notes / follow-up work: none.
Final checklist
Generated by Claude Code
This change is