Skip to content

Commit 6a0a536

Browse files
authored
Merge pull request #626 from frstrtr/ci-steward/ci-concurrency-groups
ci: per-ref concurrency (cancel-in-progress) on build, CodeQL, coin-matrix
2 parents ff20c36 + ca39bac commit 6a0a536

3 files changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ on:
77
pull_request:
88
branches: [master, btc-embedded, dash-spv-embedded, dgb/**]
99

10+
# Concurrency: a newer run on the same ref cancels the stale in-progress
11+
# one, cutting concurrent load on the shared self-hosted pool (the OOM/
12+
# oversubscription root cause, not just queue depth). Per-ref group so
13+
# distinct PRs/branches never cancel each other.
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
18+
1019
jobs:
1120
# ════════════════════════════════════════════════════════════════════════════
1221
# Test-allowlist drift-guard (fast, no build): every per-coin test executable

.github/workflows/codeql-analysis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ on:
88
schedule:
99
- cron: '30 1 * * 1' # Weekly on Monday 01:30 UTC
1010

11+
# Concurrency: a newer run on the same ref cancels the stale in-progress
12+
# one, cutting concurrent load on the shared self-hosted pool (the OOM/
13+
# oversubscription root cause, not just queue depth). Per-ref group so
14+
# distinct PRs/branches never cancel each other.
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
1120
jobs:
1221
analyze:
1322
name: Analyze (${{ matrix.language }})

.github/workflows/coin-matrix.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ on:
1717
pull_request:
1818
branches: [master, btc-embedded, dash-spv-embedded, dgb/slice4-skeleton, dgb/pool-pillars-port]
1919

20+
# Concurrency: a newer run on the same ref cancels the stale in-progress
21+
# one, cutting concurrent load on the shared self-hosted pool (the OOM/
22+
# oversubscription root cause, not just queue depth). Per-ref group so
23+
# distinct PRs/branches never cancel each other.
24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.ref }}
26+
cancel-in-progress: true
27+
28+
2029
jobs:
2130
coin:
2231
name: ${{ matrix.coin }} smoke (Linux x86_64)

0 commit comments

Comments
 (0)