Repository navigation
Run one release image publish at a time - #2698
Merged
Merged
Conversation
Layer: 1-serialize-release-publish
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.
Summary
Two release runs of
build_docker.ymlstarted together could both pass the publish checks before either pushed, because each release run had a concurrency group of its own. Every release run now shares one fixed group and waits for the run ahead of it, while snapshot builds keep replacing each other.User-facing: none
The release group leaves the ref out, so a release dispatched from a
3.3.xtag and one from amaintag also wait for each other.A third release run
GitHub keeps one running and one pending run per concurrency group (the default
queue: single). When a third release is dispatched while one runs and one waits, GitHub cancels the waiting one, before it checks or pushes anything, and the third takes its place. The cancelled release needs dispatching again. The workflow comment says so.GitHub also documents
queue: max, which would keep up to 100 pending runs. I left it out: it can't be combined withcancel-in-progress: true, and the docs don't say whether that check applies whencancel-in-progressis an expression, so trying it here could stop snapshot builds too.Evidence
Before: evaluating the concurrency expressions for two release dispatches gives groups ending in their run ids, both with
cancel-in-progress: true.After: both release dispatches get
Build Docker image and publish to ECR-releasewithcancel-in-progress: false; a push tomainand alatestdispatch both getBuild Docker image and publish to ECR-refs/heads/mainwithcancel-in-progress: true.Merge Danger
Door: two-way
Impact: CI
Only the
concurrencyblock and comments change. The3.3.xbranch needs the same change in its own PR, since a release dispatched from a3.3.xtag uses that branch's copy of the workflow.Related
🤖 Written by an AI agent on my behalf.