This is an automated email from the ASF dual-hosted git repository.
SteNicholas pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/celeborn.git
The following commit(s) were added to refs/heads/main by this push:
new 8c3108ddb [MINOR] Configure GitHub workflows to use concurrency
cancel-in-progress for pull requests
8c3108ddb is described below
commit 8c3108ddbfe0e260af6115fd087fc0a5b981704a
Author: Aurélien Pupier <[email protected]>
AuthorDate: Mon Jun 15 10:32:56 2026 +0800
[MINOR] Configure GitHub workflows to use concurrency cancel-in-progress
for pull requests
see recommended best practices at Apache
https://cwiki.apache.org/confluence/pages/viewpage.action?spaceKey=INFRA&title=GitHub+Actions+Recommended+Practices
### What changes were proposed in this pull request?
Configure GitHub workflows to use concurrency cancel-in-progress for pull
requests. it means that if a PR is modified before the end of the execution of
PR checks, the current runnign oe are cancelled to let more room for the new
needed one.
### Why are the changes needed?
It will help to reduce the usage of GitHub runners. The pool of github
runners is shared across whole Apache oganization, and the limit is regularly
reached these days.
### Does this PR resolve a correctness bug?
- [ ] Yes
### Does this PR introduce _any_ user-facing change?
- [ ] Yes
### How was this patch tested?
similar changes were applied to several other Apache repositories
Closes #3729 from
apupier/addConcurrencyCancelInProgressForPRGitHubWorkflows.
Authored-by: Aurélien Pupier <[email protected]>
Signed-off-by: Nicholas Jiang <[email protected]>
---
.github/workflows/cpp_integration.yml | 4 ++++
.github/workflows/grafana.yml | 4 ++++
.github/workflows/integration.yml | 4 ++++
.github/workflows/maven.yml | 4 ++++
.github/workflows/sbt.yml | 4 ++++
5 files changed, 20 insertions(+)
diff --git a/.github/workflows/cpp_integration.yml
b/.github/workflows/cpp_integration.yml
index ce288a923..ff52d41fc 100644
--- a/.github/workflows/cpp_integration.yml
+++ b/.github/workflows/cpp_integration.yml
@@ -27,6 +27,10 @@ on:
- main
- branch-*
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
celeborn_cpp_check_lint:
runs-on: ubuntu-22.04
diff --git a/.github/workflows/grafana.yml b/.github/workflows/grafana.yml
index ea8cf60ce..6cb232a0c 100644
--- a/.github/workflows/grafana.yml
+++ b/.github/workflows/grafana.yml
@@ -27,6 +27,10 @@ on:
- main
- branch-*
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
lint:
runs-on: ubuntu-latest
diff --git a/.github/workflows/integration.yml
b/.github/workflows/integration.yml
index b2b8288b4..e31f47e6d 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -30,6 +30,10 @@ env:
MINIKUBE_VERSION: v1.33.1
KUBERNETES_VERSION: v1.30.0
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
celeborn_integration_test:
runs-on: ubuntu-22.04
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 265e6d5b9..a6bdd2846 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -13,6 +13,10 @@ on:
- main
- branch-*
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
service:
runs-on: ubuntu-22.04
diff --git a/.github/workflows/sbt.yml b/.github/workflows/sbt.yml
index 4daff4409..0fa378d8a 100644
--- a/.github/workflows/sbt.yml
+++ b/.github/workflows/sbt.yml
@@ -28,6 +28,10 @@ on:
- main
- branch-*
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
service:
runs-on: ubuntu-22.04