Serialize latest release updates in release.yml to prevent race conditions#6
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/simonpainter/uping/sessions/826712a5-bb2a-469f-802c-cfd361d581da Co-authored-by: simonpainter <409737+simonpainter@users.noreply.github.com>
Agent-Logs-Url: https://github.com/simonpainter/uping/sessions/826712a5-bb2a-469f-802c-cfd361d581da Co-authored-by: simonpainter <409737+simonpainter@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add concurrency to prevent latest release races in release.yml
Serialize May 9, 2026
latest release updates in release.yml to prevent race conditions
simonpainter
approved these changes
May 9, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR prevents race conditions in the “latest” GitHub Release workflow by serializing workflow runs that delete/recreate the latest release and tag, ensuring rapid pushes or reruns don’t interleave release mutation steps.
Changes:
- Added workflow-level
concurrencyto.github/workflows/release.yml(group: release-latest,cancel-in-progress: true) to ensure only one in-flight run updateslatest. - Added
/upingto.gitignoreto avoid accidentally committing the locally-built binary artifact.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.github/workflows/release.yml |
Adds a workflow-level concurrency guard to serialize/cancel runs that mutate the latest release/tag. |
.gitignore |
Ignores the repo-root uping build output binary. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
The release workflow can run concurrently on rapid pushes/re-runs and interleave
latesttag/release mutation steps, causing incorrect or missing assets. This change ensures only one run at a time can updatelatest, with newer runs preempting older in-progress runs.Workflow concurrency guard
concurrencyto.github/workflows/release.yml:group: release-latestcancel-in-progress: truelatestand cancels stale in-flight updates.Repository hygiene (incidental)
.gitignoreentry for/upingto avoid tracking the local build artifact.