Repository navigation
fix(release): push no intermediate tag and name deb/rpm assets without '~' - #1031
Merged
Merged
Conversation
…t '~' - Internal tag: prepare-release pushed vX.Y.Z_RC so later jobs could check the release commit out, and finalize-tag deleted it with '|| true'. The repository's tag rules refuse deletion (run 26: 'GH013 ... Cannot delete this tag'), so v3.0.0-RC1_RC was left behind and every release would leave another. The release commit now travels as a one-commit git bundle artifact (release-commit); the jobs that used the tag check out commit_sha, fetch the bundle and detach at release_sha. finalize-tag pushes only the final vX.Y.Z tag, which carries the commit. The checks for a leftover _RC tag go from the workflow and scripts/release.sh. - Asset names: GitHub rewrites '~' in asset names, so RC1's btrace_3.0.0~RC1-1_all.deb was published as btrace_3.0.0.RC1-1_all.deb, matching neither the notes nor the release version. The deb and rpm are renamed to btrace_X.Y.Z-RCn-1_all.deb / btrace-X.Y.Z-RCn-1.noarch.rpm before upload (the version inside stays X.Y.Z~RCn), and the asset check asserts those exact names. The RC1 notes now give the names actually published. Tested locally: bundle create/verify, a fresh checkout of commit_sha fetching the bundle and reaching release_sha, a tag push carrying the commit to the remote, and the rename on RC and final file names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qr5KuiEbTbQMuGQTUU4FhF
12 of 16 tasks
jbachorik
pushed a commit
that referenced
this pull request
Nov 17, 2026
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
12 of 16 tasks
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?
Two problems seen in the 3.0.0-RC1 release (run 26):
Internal tag left behind.
prepare-releasepushedvX.Y.Z_RCso the later jobs could check the release commit out, andfinalize-tagdeleted it with|| true. The repository's tag rules refuse the deletion (GH013: Repository rule violations found for refs/tags/v3.0.0-RC1_RC ... Cannot delete this tag). Sov3.0.0-RC1_RCstayed behind, every release would leave another, and the job still reported success.The workflow now pushes no tag before the smoke tests:
prepare-releasebundles the release commit (git bundle create release-commit.bundle <commit_sha>..HEAD) and uploads it as therelease-commitartifact.release_sha(stage-maven, publish-gradle-plugins, build-distributions, release-smoke, finalize-tag, publish-container-images) check outcommit_sha, fetch the bundle, and detach atrelease_sha, asserting they are on it.finalize-tagtagsrelease_shaand pushes only the finalvX.Y.Ztag, which carries the commit with it._RCchecks are removed from the workflow andscripts/release.sh.cleanupdeletes the new artifact.deb/rpm asset names. The packages are versioned
X.Y.Z~RCnso that package managers sort a candidate beforeX.Y.Z, and their file names follow that version. GitHub rewrites~in asset names, so RC1 was published asbtrace_3.0.0.RC1-1_all.debandbtrace-3.0.0.RC1-1.noarch.rpm, which matches neither the release notes nor the release version.create-github-releaserenames them tobtrace_X.Y.Z-RCn-1_all.debandbtrace-X.Y.Z-RCn-1.noarch.rpmbefore upload. The version inside the packages is unchanged, and final releases have no~, so their names don't change.Related issue
N/A. Found in the 3.0.0-RC1 release (run 26).
Scope and compatibility
Compatibility or migration notes: release workflow,
scripts/release.shand docs only. The leftoverv3.0.0-RC1_RCtag still needs deleting by a maintainer the tag rules allow; it does not block RC2 or 3.0.0.Testing
spotlessCheck(not affected)Commands and results:
Not verified: a real release run. The next candidate (RC2) or 3.0.0 is the end-to-end check.
Documentation and release impact
Release notes / follow-up work:
~names; paste the corrected lines from.github/release-notes/v3.0.0-RC1.mdinto it.v3.0.0-RC1_RC(needs a maintainer allowed by the tag rules).Final checklist
Generated by Claude Code
This change is