Skip to content

ci: stop cancelling develop runs when merges land back to back - #50

Merged
artempartos merged 1 commit into
developfrom
ci/keep-push-runs
Aug 7, 2026
Merged

artempartos merged 1 commit into
developfrom
ci/keep-push-runs

Conversation

@artempartos

Copy link
Copy Markdown
Contributor

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 develop queue instead.

Why

Three merges landed on develop inside fifteen minutes today (#47, #49, #48). Each one cancelled the run before it, so all three finished as cancelled:

  • the README's CI badge reports the newest conclusion, so it showed a failing build for commits that were never actually tested
  • coverage-badges (added in ci: publish coverage badges from develop runs #49) never started, so the badges branch was never created and both coverage badges rendered as unavailable

A 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 badges branch.

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

  • actionlint clean (the one remaining warning is pre-existing, in images.yml)
  • docker compose exec -T web make check_all — all green

🤖 Generated with Claude Code

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]>
@artempartos
artempartos merged commit 3d8e187 into develop Aug 7, 2026
7 checks passed
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
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.

1 participant