Repository navigation
ci: stop cancelling develop runs when merges land back to back - #50
Merged
Merged
Conversation
Superseding a pull request's run costs nothing — only the tip of a branch under review is worth a verdict. Superseding a develop push does cost something: that run is the record of whether an integrated commit was green, and it is the only thing that publishes the coverage badges. Three merges inside fifteen minutes cancelled all three develop runs. The README badge read the newest conclusion, "cancelled", and showed a failing build, while the coverage badges never appeared at all because the job that writes them never started. Pushes now queue on the concurrency group rather than cancelling each other, which also serialises the badge job's writes to the `badges` branch. Co-Authored-By: Claude Opus 5 <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
alex-astafyev
pushed a commit
to alex-astafyev/flow
that referenced
this pull request
Aug 19, 2026
* origin/develop: feat(resources): unify Agents/Wrappers/Repositories/Integrations tables (AixleHQ#51) feat(personal-mcp): add trigger, authoring and diagnostic tools (AixleHQ#52) ci: stop cancelling develop runs when merges land back to back (AixleHQ#50) fix(container-runtime): honor the timeout option on Docker exec fix(container-runtime): honor the timeout option on Docker exec (AixleHQ#48) ci: publish coverage badges from develop runs (AixleHQ#49) # Conflicts: # .github/workflows/ci.yml
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.
What
concurrency: group: ci-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name != 'push' }}Pull request runs still supersede each other. Pushes to
developqueue instead.Why
Three merges landed on
developinside fifteen minutes today (#47, #49, #48). Each one cancelled the run before it, so all three finished ascancelled:coverage-badges(added in ci: publish coverage badges from develop runs #49) never started, so thebadgesbranch was never created and both coverage badges rendered as unavailableA pull request's older run is genuinely worthless — only the tip of the branch under review needs a verdict. A develop run is not: it is the record of whether an integrated commit was green, and it is the only writer of the coverage badges.
Queueing also serialises the badge job, so two develop runs can never race on pushing to the
badgesbranch.Cost
A burst of merges now runs sequentially rather than in parallel, at roughly 13 minutes per run. That is the price of getting a verdict per integrated commit.
Verification
actionlintclean (the one remaining warning is pre-existing, inimages.yml)docker compose exec -T web make check_all— all green🤖 Generated with Claude Code