← Back to issue list

ci: cancel superseded runs across PR workflows

View original Github issue

Metadata

Project
charmcraft
Number
#2904
Type
pull request
State
merged
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #2904 adds GitHub Actions concurrency groups with cancel-in-progress true, preventing superseded CI runs from consuming runner capacity. Fixes #2903.

Resolution: closed resolved

Reason: The PR was merged, implementing workflow concurrency groups to cancel superseded CI runs. This resolves #2903 by optimizing runner capacity usage across PR and push workflows.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Add top-level workflow concurrency groups with `cancel-in-progress: true` keyed by `${{ github.workflow }}-${{ github.ref }}` across PR and push workflows (`spread`, `spread-docs`, `tests`, `qa`, `schema`, `tics`). This prevents superseded runs from tying up self-hosted and hosted runner capacity when new commits are pushed. Fixes #2903 --- - [x] I've followed the [contribution guidelines](https://github.com/canonical/charmcraft/blob/main/CONTRIBUTING.md). - [x] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/). - [ ] I've successfully run `make lint && make test`. - [ ] I've added or updated any relevant documentation. - [ ] In documents I changed, I [added a meta description](https://canonical-starflow.readthedocs-hosted.com/how-to/add-a-page-meta-description/) if one was missing. - [ ] I've updated the relevant release notes.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b — closed resolved Merged PR #2904 adds GitHub Actions concurrency groups with cancel-in-progress true, preventing superseded CI runs from consuming runner capacity. Fixes #2903.
stealth/space-bunny-alpha
Impact: 58
Quick Win: 29
Complexity: 20
Confidence: 89
Actionability: 62
needs review Adds per-workflow/ref GitHub Actions cancellation across six CI workflows to free superseded runs; approved with no unresolved comments, but several checks remain failing or pending.
stealth/space-bunny-alpha
Impact: 52
Quick Win: 23
Complexity: 28
Confidence: 86
Actionability: 62
needs review Adds per-ref cancellation to six PR/push workflows, including self-hosted Spread tests, addressing #2903; approved without comments, but CI remains mixed.
stealth/space-bunny-alpha
Impact: 35
Quick Win: 24
Complexity: 15
Confidence: 80
Actionability: 80
needs review CI-only change: adds top-level `concurrency` groups with `cancel-in-progress: true` keyed by workflow+ref to six workflows (spread, spread-docs, tests, qa, schema, tics). Approved by 2 reviewers, 0 unresolved comments; some failing checks appear pre-existing.
stealth/space-bunny-alpha
Impact: 32
Quick Win: 19
Complexity: 12
Confidence: 74
Actionability: 68
needs review Adds top-level concurrency groups (cancel-in-progress: true) keyed by workflow+ref to spread, spread-docs, tests, qa, schema and tics workflows so superseded runs are cancelled. Maintainer PR, approved by 2 reviewers, but several CI checks (snap-tests, snap-store-tests, lint/files, OSV) are failing.

Update history

Date Change
merged
updated
updated
created

Related work

Related issues

Issue Project State Summary Similarity
#2903 Cancel superseded 'Spread tests for source' runs to avoid exhausting self-hosted runners charmcraft closed Fixed in #2904 by adding a concurrency group with cancel-in-progress to .github/workflows/spread.yaml, preventing stale runs from exhausting self-hosted runners.
73%