ci: key concurrency groups on PR number or ref, not head_ref

github.head_ref is empty on tag pushes and manual runs (every run then
shares one group and cancels the last) and collides across forks when
two PRs share a branch name. pull_request.number is unique per PR;
github.ref covers push/tag/dispatch. Applied to all workflows using the
pattern, including pre-existing ones.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Chris LuandDevin committed 2026-10-23 03:44:35 -07:00
1 parent 57ae00aa51
commit a0b514c521
38 files changed
+38 -38

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ on:
- '.github/workflows/codeql.yml'
concurrency:
group: ${{ github.head_ref }}/codeql
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
+1 -1
View File
@@ -9,7 +9,7 @@ on:
branches: [master]
concurrency:
group: ${{ github.head_ref }}/codespell
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -14,7 +14,7 @@ on:
- '.github/workflows/container_dev.yml'
concurrency:
group: ${{ github.head_ref }}/container_dev
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
@@ -25,7 +25,7 @@ on:
default: ''
concurrency:
group: ${{ github.head_ref }}/container_foundationdb_version
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -31,7 +31,7 @@ on:
default: false
concurrency:
group: ${{ github.head_ref }}/container_latest
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
@@ -12,7 +12,7 @@ on:
default: ''
concurrency:
group: ${{ github.head_ref }}/container_release_foundationdb
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -2,7 +2,7 @@ name: 'Dependency Review'
on: [pull_request]
concurrency:
group: ${{ github.head_ref }}/depsreview
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -19,7 +19,7 @@ on:
- '.github/workflows/e2e.yml'
concurrency:
group: ${{ github.head_ref }}/e2e
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -19,7 +19,7 @@ on:
- '.github/workflows/ec-integration-tests.yml'
concurrency:
group: ${{ github.head_ref }}/ec-integration-tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -17,7 +17,7 @@ on:
- '.github/actions/fix-fusermount-setuid/**'
concurrency:
group: ${{ github.head_ref }}/fuse-integration
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -17,7 +17,7 @@ on:
- '.github/workflows/go.yml'
concurrency:
group: ${{ github.head_ref }}/go
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -9,7 +9,7 @@ on:
paths: ['k8s/**', '.github/workflows/helm_ci.yml', '.github/scripts/helm_jwt_keys.py']
concurrency:
group: ${{ github.head_ref }}/helm_ci
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -15,7 +15,7 @@ on:
- '.github/workflows/java_integration_tests.yml'
concurrency:
group: ${{ github.head_ref }}/java_integration_tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
+1 -1
View File
@@ -13,7 +13,7 @@ on:
- '.github/workflows/java_unit_tests.yml'
concurrency:
group: ${{ github.head_ref }}/java_unit_tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
+1 -1
View File
@@ -24,7 +24,7 @@ on:
workflow_dispatch: # Allow manual trigger
concurrency:
group: ${{ github.head_ref }}/kafka-quicktest
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -23,7 +23,7 @@ on:
- '.github/workflows/kafka-tests.yml'
concurrency:
group: ${{ github.head_ref }}/kafka-tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
# Force different runners for better isolation
@@ -25,7 +25,7 @@ on:
- '.github/workflows/metadata-subscribe-tests.yml'
concurrency:
group: ${{ github.head_ref }}/metadata-subscribe-tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -19,7 +19,7 @@ on:
- '.github/workflows/plugin-workers.yml'
concurrency:
group: ${{ github.head_ref }}/plugin-workers
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -23,7 +23,7 @@ on:
- '.github/workflows/postgres-tests.yml'
concurrency:
group: ${{ github.head_ref }}/postgres-tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
@@ -13,7 +13,7 @@ on:
- '.github/workflows/s3-example-integration-tests.yml'
concurrency:
group: ${{ github.head_ref }}/s3-integration-tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -12,7 +12,7 @@ on:
- '.github/workflows/s3-filer-group-tests.yml'
concurrency:
group: ${{ github.head_ref }}/s3-filer-group-tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -12,7 +12,7 @@ on:
- '.github/workflows/s3-go-tests.yml'
concurrency:
group: ${{ github.head_ref }}/s3-go-tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -20,7 +20,7 @@ on:
- '.github/workflows/s3-iam-tests.yml'
concurrency:
group: ${{ github.head_ref }}/s3-iam-tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -16,7 +16,7 @@ on:
- '.github/workflows/s3-keycloak-tests.yml'
concurrency:
group: ${{ github.head_ref }}/s3-keycloak-tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
@@ -12,7 +12,7 @@ on:
- '.github/workflows/s3-mutation-regression-tests.yml'
concurrency:
group: ${{ github.head_ref }}/s3-mutation-regression-tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -24,7 +24,7 @@ env:
BUCKET_NAME: test-parquet-bucket
concurrency:
group: ${{ github.head_ref }}/s3-parquet-tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
+1 -1
View File
@@ -24,7 +24,7 @@ on:
- '.github/workflows/s3-policy-tests.yml'
concurrency:
group: ${{ github.head_ref }}/s3-policy-tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -11,7 +11,7 @@ on:
workflow_dispatch:
concurrency:
group: ${{ github.head_ref }}/s3-spark-tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -23,7 +23,7 @@ on:
- 'test/s3/sse/**'
concurrency:
group: ${{ github.head_ref }}/s3-sse-tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -13,7 +13,7 @@ on:
- '.github/workflows/s3-tables-tests.yml'
concurrency:
group: ${{ github.head_ref }}/s3-tables-tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -25,7 +25,7 @@ on:
- '.github/workflows/s3tests.yml'
concurrency:
group: ${{ github.head_ref }}/s3tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -17,7 +17,7 @@ on:
- '.github/workflows/sftp-tests.yml'
concurrency:
group: ${{ github.head_ref }}/sftp-tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
@@ -16,7 +16,7 @@ on:
workflow_dispatch:
concurrency:
group: ${{ github.head_ref }}/spark-integration-tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -15,7 +15,7 @@ on:
- '.github/workflows/telemetry-integration.yml'
concurrency:
group: ${{ github.head_ref }}/telemetry-integration
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
+1 -1
View File
@@ -9,7 +9,7 @@ on:
paths: ['terraform/**', '.github/workflows/terraform_ci.yml']
concurrency:
group: ${{ github.head_ref }}/terraform_ci
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
@@ -28,7 +28,7 @@ defaults:
working-directory: weed
concurrency:
group: ${{ github.head_ref }}/test-s3-over-https-using-awscli
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
+1 -1
View File
@@ -19,7 +19,7 @@ on:
- '.github/workflows/tls-rotation-tests.yml'
concurrency:
group: ${{ github.head_ref }}/tls-rotation-tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
@@ -19,7 +19,7 @@ on:
- '.github/workflows/vacuum-integration-tests.yml'
concurrency:
group: ${{ github.head_ref }}/vacuum-integration-tests
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions: