Skip to content

Solve the race-condition when matrix builds try to create the same release - #147

Merged
yairm210 merged 2 commits into
masterfrom
catch-multi-create-race-condition
Jul 6, 2025
Merged

yairm210 merged 2 commits into
masterfrom
catch-multi-create-race-condition

Conversation

@yairm210

@yairm210 yairm210 commented Jul 3, 2025

Copy link
Copy Markdown
Collaborator

Resolves #115, resolves #20

When attempting to create a release and we get a "already_exists" response, we retrieve the release again.

I don't love the fact that this means we're 2 try/catches deep (one for 'get release' and another for 'create release') but attempts to encapsulate these into separate functions do not spark joy, I prefer to - as step 1 - actually solve the problem, and then as step 2 to make it look nice.

@yairm210
yairm210 merged commit b89a939 into master Jul 6, 2025
@yairm210
yairm210 deleted the catch-multi-create-race-condition branch July 6, 2025 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Couldn't create release (Error: Validation Failed) createRelease order race condition

1 participant