You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2026/09/16 03:46:20 UTC
(lucene) branch main updated: ci: add workflow concurrency groups (#16676)
This is an automated email from the ASF dual-hosted git repository.
rmuir pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/main by this push:
new 360ee01f4a1 ci: add workflow concurrency groups (#16676)
360ee01f4a1 is described below
commit 360ee01f4a14d6f54d999fad987aad724efa8627
Author: Robert Muir <rm...@apache.org>
AuthorDate: Tue Sep 15 23:46:15 2026 -0400
ci: add workflow concurrency groups (#16676)
Adds concurrency groups in a way that shouldn't be annoying or
confusing. These concurrency groups protect from intentional or
accidental waste of resources to keep the CI fast.
Within a group, there can be one active and one queued task.
For workflows that run on the pull request, when they are invoked on
a PR, if you do a new push, any in-progress jobs from the previous
commit will get cancelled, so that building on your latest commit can
proceed without queueing.
---
.github/workflows/actions.yml | 4 ++++
.github/workflows/activity-report.yml | 4 ++++
.github/workflows/backport.yml | 4 ++++
.github/workflows/codeql.yml | 5 +++++
.github/workflows/dependency-submission.yml | 4 ++++
.github/workflows/label-pull-request.yml | 4 ++++
.github/workflows/mark-stale-PRs.yml | 4 ++++
.github/workflows/run-checks-all.yml | 5 +++++
.github/workflows/run-checks-gradle-upgrade.yml | 5 +++++
.github/workflows/run-checks-mod-analysis-common-hunspell.yml | 5 +++++
.github/workflows/run-checks-mod-distribution.tests.yml | 5 +++++
.github/workflows/run-checks-python.yml | 5 +++++
.github/workflows/run-nightly-smoketester.yml | 4 ++++
.github/workflows/run-scheduled-hunspell.yml | 4 ++++
.github/workflows/run-scheduled-spotless-groovy.yml | 4 ++++
.github/workflows/run-special-checks-sandbox.yml | 5 +++++
.github/zizmor.yml | 3 ---
17 files changed, 71 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml
index fb00755998a..a46e5d7f02e 100644
--- a/.github/workflows/actions.yml
+++ b/.github/workflows/actions.yml
@@ -8,6 +8,10 @@ on:
permissions: {}
+# publishes SARIF to github, only need one at a time
+concurrency:
+ group: ${{ github.workflow }}
+
jobs:
zizmor:
name: Run zizmor
diff --git a/.github/workflows/activity-report.yml b/.github/workflows/activity-report.yml
index 790752ab05d..aae3deb07c1 100644
--- a/.github/workflows/activity-report.yml
+++ b/.github/workflows/activity-report.yml
@@ -17,6 +17,10 @@ on:
required: true
default: "now"
+# do not need to run more than one of these at a time
+concurrency:
+ group: ${{ github.workflow }}
+
jobs:
generate:
name: Project Activity
diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml
index a870800cd3f..975ab94f744 100644
--- a/.github/workflows/backport.yml
+++ b/.github/workflows/backport.yml
@@ -4,6 +4,10 @@ on:
pull_request:
types: [closed]
+# Don't need concurrent builds for the same PR
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
+
permissions: {}
jobs:
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index ec678ca09a1..a2aca1207ff 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -13,6 +13,11 @@ name: CodeQL
permissions: {}
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ # speed up feedback on pull request builds by cancelling outdated builds
+ cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
+
jobs:
analyze:
name: Analyze (${{ matrix.language }})
diff --git a/.github/workflows/dependency-submission.yml b/.github/workflows/dependency-submission.yml
index e1ec47bec08..73c92b820a1 100644
--- a/.github/workflows/dependency-submission.yml
+++ b/.github/workflows/dependency-submission.yml
@@ -11,6 +11,10 @@ name: Dependency Submission
permissions: {}
+# publishes dependencies to github, only need one at a time
+concurrency:
+ group: ${{ github.workflow }}
+
jobs:
dependency-submission:
name: Submit gradle dependencies
diff --git a/.github/workflows/label-pull-request.yml b/.github/workflows/label-pull-request.yml
index 659aaf69e52..0d4f45c1687 100644
--- a/.github/workflows/label-pull-request.yml
+++ b/.github/workflows/label-pull-request.yml
@@ -15,6 +15,10 @@ on:
permissions: {}
+# don't need to concurrently label same PR
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
+
jobs:
labeler:
name: Label PRs
diff --git a/.github/workflows/mark-stale-PRs.yml b/.github/workflows/mark-stale-PRs.yml
index 596ac19296c..ce9cf64aa4b 100644
--- a/.github/workflows/mark-stale-PRs.yml
+++ b/.github/workflows/mark-stale-PRs.yml
@@ -12,6 +12,10 @@ on:
permissions: {}
+# don't want to mark PRs as stale concurrently
+concurrency:
+ group: ${{ github.workflow }}
+
jobs:
stale:
name: Mark stale PRs
diff --git a/.github/workflows/run-checks-all.yml b/.github/workflows/run-checks-all.yml
index fdbd14f5adb..48557e50ded 100644
--- a/.github/workflows/run-checks-all.yml
+++ b/.github/workflows/run-checks-all.yml
@@ -17,6 +17,11 @@ on:
permissions: {}
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ # speed up feedback on pull request builds by cancelling outdated builds
+ cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
+
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
diff --git a/.github/workflows/run-checks-gradle-upgrade.yml b/.github/workflows/run-checks-gradle-upgrade.yml
index de96b3da004..613bfa7df52 100644
--- a/.github/workflows/run-checks-gradle-upgrade.yml
+++ b/.github/workflows/run-checks-gradle-upgrade.yml
@@ -27,6 +27,11 @@ on:
permissions: {}
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ # speed up feedback on pull request builds by cancelling outdated builds
+ cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
+
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
diff --git a/.github/workflows/run-checks-mod-analysis-common-hunspell.yml b/.github/workflows/run-checks-mod-analysis-common-hunspell.yml
index c8c29a3cf1b..56564917a42 100644
--- a/.github/workflows/run-checks-mod-analysis-common-hunspell.yml
+++ b/.github/workflows/run-checks-mod-analysis-common-hunspell.yml
@@ -21,6 +21,11 @@ on:
permissions: {}
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ # speed up feedback on pull request builds by cancelling outdated builds
+ cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
+
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
diff --git a/.github/workflows/run-checks-mod-distribution.tests.yml b/.github/workflows/run-checks-mod-distribution.tests.yml
index 6308a0d9cba..27f9417c23f 100644
--- a/.github/workflows/run-checks-mod-distribution.tests.yml
+++ b/.github/workflows/run-checks-mod-distribution.tests.yml
@@ -15,6 +15,11 @@ on:
permissions: {}
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ # speed up feedback on pull request builds by cancelling outdated builds
+ cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
+
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
diff --git a/.github/workflows/run-checks-python.yml b/.github/workflows/run-checks-python.yml
index 5dedf1dbeae..a4aa2a4a1b4 100644
--- a/.github/workflows/run-checks-python.yml
+++ b/.github/workflows/run-checks-python.yml
@@ -21,6 +21,11 @@ on:
permissions: {}
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ # speed up feedback on pull request builds by cancelling outdated builds
+ cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
+
jobs:
lint:
name: Lint python scripts
diff --git a/.github/workflows/run-nightly-smoketester.yml b/.github/workflows/run-nightly-smoketester.yml
index e39253fa096..e8cf82a8584 100644
--- a/.github/workflows/run-nightly-smoketester.yml
+++ b/.github/workflows/run-nightly-smoketester.yml
@@ -10,6 +10,10 @@ on:
permissions: {}
+# do not need to run more than one of these at a time
+concurrency:
+ group: ${{ github.workflow }}
+
jobs:
smokeTestRelease:
name: "Smoke test release on jdk ${{ matrix.java-version }}, ${{ matrix.os }}"
diff --git a/.github/workflows/run-scheduled-hunspell.yml b/.github/workflows/run-scheduled-hunspell.yml
index 48f4f798489..3848276b479 100644
--- a/.github/workflows/run-scheduled-hunspell.yml
+++ b/.github/workflows/run-scheduled-hunspell.yml
@@ -9,6 +9,10 @@ on:
permissions: {}
+# do not need to run more than one of these at a time
+concurrency:
+ group: ${{ github.workflow }}
+
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
diff --git a/.github/workflows/run-scheduled-spotless-groovy.yml b/.github/workflows/run-scheduled-spotless-groovy.yml
index b729aa9d919..3d3b764b96b 100644
--- a/.github/workflows/run-scheduled-spotless-groovy.yml
+++ b/.github/workflows/run-scheduled-spotless-groovy.yml
@@ -9,6 +9,10 @@ on:
permissions: {}
+# do not need to run more than one of these at a time
+concurrency:
+ group: ${{ github.workflow }}
+
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
diff --git a/.github/workflows/run-special-checks-sandbox.yml b/.github/workflows/run-special-checks-sandbox.yml
index 82d69c317bf..91975bf1f52 100644
--- a/.github/workflows/run-special-checks-sandbox.yml
+++ b/.github/workflows/run-special-checks-sandbox.yml
@@ -14,6 +14,11 @@ on:
permissions: {}
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ # speed up feedback on pull request builds by cancelling outdated builds
+ cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
+
jobs:
faiss-tests:
name: tests for the Faiss codec (v${{ matrix.faiss-version }} with JDK ${{ matrix.java }} on ${{ matrix.os }})
diff --git a/.github/zizmor.yml b/.github/zizmor.yml
index 33be51040cc..7774ae3025d 100644
--- a/.github/zizmor.yml
+++ b/.github/zizmor.yml
@@ -1,8 +1,5 @@
---
rules:
- # Setting these limits causes failed builds which can be confusing
- concurrency-limits:
- disable: true
# disable until all runners in the wild really support it
self-repository:
disable: true