Repository navigation
Update the floating release in place instead of recreating it - #7
Merged
Merged
Conversation
The release workflow deleted the floating release (e.g. 3.4.8) and its tag before creating a new draft, so the floating download URLs returned 404 from that point until publish. If anything after the delete failed, they stayed 404 indefinitely; that is what happened to every 3.x floating release today when the create call was rejected. Clients like mise and asdf cannot fall back to the pinned revision on their own and compile from source instead. Only the pinned revision release is created as a draft and uploaded to now. Once it is published, the floating release is re-pointed at that build in place: assets are replaced with --clobber, stale assets from targets no longer built are removed, the notes are refreshed, and the floating tag is force-moved to the build commit. A missing floating release is created published with its assets in one call. Leftover drafts from failed runs are cleaned up before creating a revision draft. Claude-Session: https://claude.ai/code/session_01KeNcsk8V24YRXGfD2HwDZY
gh release upload --clobber deletes the old asset and then uploads the new one, so each floating download URL was missing for the length of a multi-megabyte upload. Upload the new assets under a temporary name, then rename the old one aside, rename the new one into place, and delete the old one: each URL is now missing for a single API call at most. Stale assets and leftover temporary names are cleaned up first, and a brand-new floating release is created as a draft with its assets and only then published, so it never appears without them. Claude-Session: https://claude.ai/code/session_01KeNcsk8V24YRXGfD2HwDZY
This was referenced Sep 9, 2026
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
create-releasedeleted the floating release (e.g.3.4.8) and its tag, then created a new draft. A draft has no tag, so the floating download URLs returned 404 from the delete untilpublish-release, about two minutes in a healthy run. If anything after the delete failed, the floating release stayed missing indefinitely. That is exactly what happened to every 3.x floating release in today's batch when the create call was rejected with a 403 (the token lacked theworkflowscope needed because main had moved to a commit that changed a workflow file).mise resolves versions that are not on the first page of releases (currently everything older than 3.4.0) through the floating tag, and cannot fall back to the pinned
3.4.8-Nrelease on its own; a missing tarball means a source compile.Change
create-releaseonly creates the pinned revision draft (e.g.3.4.8-4) and cleans up leftover drafts with that tag from earlier failed runs. The floating release is not touched.upload-assetsuploads tarballs and provenance to the revision draft only.publish-releasepublishes the revision first, then re-points the floating release at it in place:*.incoming, then per asset rename the old one to*.previous, rename the new one into place, and delete the old one. Each download URL is missing for one API call at most, instead of for a whole re-upload. Notes, title, latest and prerelease flags are refreshed and the floating tag is force-moved to the build commit.A failure anywhere in the workflow leaves the previous floating build serving.
Notes
MISE_LIST_ALL_VERSIONS=1, or a lockfile) see a rebuild as a new, complete, immutable release with no window at all.https://claude.ai/code/session_01KeNcsk8V24YRXGfD2HwDZY