Apache Lucene open-source search software
ci: add workflow concurrency groups (#16676)
Robert Muir360ee01f4a14
diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.ymlindex 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 zizmordiff --git a/.github/workflows/activity-report.yml b/.github/workflows/activity-report.ymlindex 790752ab05d..aae3deb07c1 100644--- a/.github/workflows/activity-report.yml+++ b/.github/workflows/activity-report.yml@@ -17,6 +17,10 @@ on:required: truedefault: "now"+# do not need to run more than one of these at a time+concurrency:+ group: ${{ github.workflow }}+jobs:generate:name: Project Activitydiff --git a/.github/workflows/backport.yml b/.github/workflows/backport.ymlindex 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.ymlindex ec678ca09a1..a2aca1207ff 100644--- a/.github/workflows/codeql.yml+++ b/.github/workflows/codeql.yml@@ -13,6 +13,11 @@ name: CodeQLpermissions: {}+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.ymlindex e1ec47bec08..73c92b820a1 100644--- a/.github/workflows/dependency-submission.yml+++ b/.github/workflows/dependency-submission.yml@@ -11,6 +11,10 @@ name: Dependency Submissionpermissions: {}+# publishes dependencies to github, only need one at a time+concurrency:+ group: ${{ github.workflow }}+jobs:dependency-submission:name: Submit gradle dependenciesdiff --git a/.github/workflows/label-pull-request.yml b/.github/workflows/label-pull-request.ymlindex 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 PRsdiff --git a/.github/workflows/mark-stale-PRs.yml b/.github/workflows/mark-stale-PRs.ymlindex 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 PRsdiff --git a/.github/workflows/run-checks-all.yml b/.github/workflows/run-checks-all.ymlindex 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.ymlindex 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.ymlindex 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.ymlindex 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.ymlindex 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 scriptsdiff --git a/.github/workflows/run-nightly-smoketester.yml b/.github/workflows/run-nightly-smoketester.ymlindex 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.ymlindex 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.ymlindex 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.ymlindex 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.ymlindex 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 itself-repository:disable: true