ci: make release-creation race-safe across parallel jobs #7

Merged
adrianbonpin merged 1 commits from fix/release-upload-race into prod 2026-09-01 04:44:43 +00:00
Owner

Fixes a race in the Linux+Windows parallel release upload: both jobs GET the release by tag (404 if not yet created), then both POST create — the loser gets 422 with an empty id and its assets never upload.\n\nAdds || true to the create and a fallback re-fetch of the release id by tag when create fails, so both jobs attach their assets even if the other won the creation race.

Fixes a race in the Linux+Windows parallel release upload: both jobs GET the release by tag (404 if not yet created), then both POST create — the loser gets 422 with an empty id and its assets never upload.\n\nAdds `|| true` to the create and a fallback re-fetch of the release id by tag when create fails, so both jobs attach their assets even if the other won the creation race.
adrianbonpin added 1 commit 2026-09-01 04:44:36 +00:00
Linux and Windows both ensure the release exists in parallel; a job can GET
404 (not yet created) then POST 422 (the other job won the race), leaving its
release id empty so its assets never upload. Add || true to the create and a
fallback re-fetch of the release id by tag when the create fails, so both jobs
upload reliably.
adrianbonpin merged commit 37e6638854 into prod 2026-09-01 04:44:43 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adrianbonpin/gridline#7