Commit cb862c0
authored
ci: supersede in-progress runs on push to main (#1167)
The concurrency group fell back to github.run_id when github.head_ref
was empty, which is every push to main. A unique run_id per run meant no
two runs ever shared a group, so cancel-in-progress never fired on main.
A burst of merges then stacked CI and Docker runs that all ran to
completion, saturating the shared (especially macOS) runner pool and
pushing wall-clock into the hours through queue contention.
Fall back to github.ref instead, so every push to a branch shares one
group and the newer run supersedes the older one. Pull requests are
unchanged: head_ref is still set there and keys the group by source
branch.1 parent 9264fe6 commit cb862c0
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments