Repository navigation
fix: finalize draft releases by ID and rehearse releases in PRs - #32
Merged
Merged
Conversation
This was referenced Nov 1, 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.
Fix
Production finalization failed with HTTP 404 because GitHub does not return draft releases through the get-by-tag endpoint. Capture the numeric release ID from reservation, pass it to finalization, and retrieve that exact draft by ID. Keep the existing draft identity and immutable-tag protections.
PR coverage
Add one release-lifecycle rehearsal after the real image smoke tests and before preview upload. It uses the tested local image and a fake GitHub API with realistic draft lookup semantics. It exercises reservation, finalization, and release metadata generation without creating real releases or contacting the registry.
The existing tests are updated for the ID contract; no large new matrix of edge cases is added.
Validation
go test -race ./...,go vet ./..., andactionlintpassed.Rollout
Merge this shared fix first, then rerun the corrective container PRs so they exercise the updated PR release rehearsal on all active tracks. Retain failed draft reservations; subsequent production runs allocate new revisions. This PR does not publish or repair releases itself.