Skip to content

Add CI concurrency groups and fix spurious cancelled-run failures#77

Merged
Odrec merged 1 commit into
mainfrom
ci-concurrency-groups
Jun 16, 2026
Merged

Add CI concurrency groups and fix spurious cancelled-run failures#77
Odrec merged 1 commit into
mainfrom
ci-concurrency-groups

Conversation

@Odrec

@Odrec Odrec commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Problem

Each commit on a branch with an open PR triggers the Integration tests workflow twice (push and pull_request). When one run is superseded/cancelled (e.g. after a force-push), its if: always() debug steps still run, cat metrics on a file that was never written exits 1, and the run flips from cancelled to failure — a red X on the PR for the exact same SHA that the sibling run passed. (Observed on #69 during this branch's history.)

Fix

  • Add a concurrency group to all three workflows keyed by workflow + event + ref, with cancel-in-progress: true, so superseded runs cancel cleanly instead of lingering. push and pull_request runs for the same commit stay independent (different event_name).
  • Make the show metrics / show log debug steps tolerate a missing file (|| true) so a cancelled run is never reported as a failure.

YAML validated for all three workflows.

Follow-up to the CI work merged earlier in #73/#70/#71.

Superseded workflow runs (e.g. after a force-push) could linger and, in
the Integration tests workflow, surface as spurious failures: when a run
was cancelled mid-flight the always() debug steps still executed, ran
'cat metrics' on a file that was never written, and exited 1 — flipping
the run from cancelled to failure.

Add a concurrency group to each workflow so superseded runs of the same
event on the same ref cancel cleanly (push and pull_request runs for the
same commit remain independent). Make the 'show metrics'/'show log'
debug steps tolerate a missing file so a cancelled run is not reported
as a failure.
@Odrec Odrec merged commit d0cfa9d into main Jun 16, 2026
21 checks passed
@Odrec Odrec deleted the ci-concurrency-groups branch June 16, 2026 20:42
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