Skip to content

Commit f2194fc

Browse files
committed
Add concurrency groups to all PR-triggered workflows
Add cancel-in-progress concurrency blocks to all 7 GitHub Actions workflows triggered by pull_request. This ensures that when a new commit is pushed to a PR, any already-queued or in-progress runs for that PR are cancelled, avoiding wasted resources and reducing queue delays for new commits.
1 parent 0f1fe18 commit f2194fc

7 files changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/bin-solr-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
- 'solr/core/src/java/org/apache/solr/cli/**'
1212
- 'solr/prometheus-exporter/**'
1313

14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
16+
cancel-in-progress: true
17+
1418
jobs:
1519
test:
1620
name: Run Solr Script Tests

.github/workflows/docker-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
- 'solr/docker/**'
1111
- 'solr/packaging/**'
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
test:
1519
name: Build and test Docker image

.github/workflows/gradle-extraction-check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
paths:
99
- 'solr/modules/extraction/**'
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
test:
1317
name: extraction module tests with docker

.github/workflows/gradle-precommit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- '*'
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
test:
1014
name: gradle check

.github/workflows/solrj-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
- '.github/workflows/solrj-test.yml'
99
- 'solr/solrj/**'
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
test:
1317
name: Run SolrJ Tests

.github/workflows/tests-via-crave.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- '*'
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
test:
1014
name: Run Solr Tests using Crave.io resources

.github/workflows/validate-changelog.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- '*'
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
validate-changelog:
1014
name: Check changelog entry

0 commit comments

Comments
 (0)