Skip to content

fix: finalize draft releases by ID and rehearse releases in PRs - #32

Merged
Skaronator merged 1 commit into
mainfrom
fix/draft-release-id
Nov 1, 2026
Merged

Skaronator merged 1 commit into
mainfrom
fix/draft-release-id

Conversation

@Skaronator

Copy link
Copy Markdown
Contributor

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 ./..., and actionlint passed.
  • The release rehearsal passed against the real local Sonarr, Radarr, and Prowlarr stable images.
  • In an isolated copy, restoring the old get-by-tag lookup made the same rehearsal fail with HTTP 404. This is the production failure that the previous PR checks missed.
  • Read-only lookup of existing Sonarr and Prowlarr drafts by ID succeeded. No existing draft was modified or deleted.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant