Repository navigation
fix(release): tolerate read-after-write lag when verifying the release tag (0.4.1) - #12
Merged
Merged
Conversation
…e tag (0.4.1) The release-tag job created v0.4.0 and then failed with "gh: Not Found (HTTP 404)" on the immediate re-read: the git refs API is eventually consistent. Poll the tag with backoff before failing, and treat only HTTP 404 as "tag absent" so other API errors fail loudly instead of falling through to tag creation. Bump to 0.4.1 because v0.4.0 is already tagged on the previous main commit and cannot be moved; 0.4.0 was never published. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Problem
The
publishrun for 0.4.0 (run 43136416413) failed in Create immutable tag for verified merge withgh: Not Found (HTTP 404).It was attempt 1, and
refs/tags/v0.4.0now exists pointing at the merge commit30f5f52, so thePOST git/refssucceeded and the immediate re-read returned 404: the git refs API is eventually consistent. Withset -euo pipefailthat aborted the job, and Marketplace, Open VSX and GitHub Release were skipped. 0.4.0 was never published.A second latent issue: the existence check used
2>/dev/nulland treated any error (auth, rate limit, outage) as "tag absent", then tried to create it.Changes
release-tagjob: newtag_shahelper. It returns the SHA, returns empty only on HTTP 404, and fails on any other error.v0.4.0is protected and already points at the previous main commit, so a release from this merge needs a new version.Verification
tag_shalocally against the real API: an existing tag returns the SHA, a missing tag returns empty.node --test test/documentation-sync.test.cjs test/release-governance.test.cjs test/release-artifact.test.cjs: 9 pass, 1 fail. The failure (GitHub Release verification downloads VSIX…) also fails onmainin a Windows CRLF checkout and is unrelated to this change; CI on Linux is the source of truth.🤖 Generated with Claude Code