This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 0f0025fff0 Reduce actions when we have a high commit rate.
0f0025fff0 is described below

commit 0f0025fff03da239810af55aa2d4d2a229d207ef
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Oct 23 12:40:47 2026 +0100

    Reduce actions when we have a high commit rate.
    
    Cancel actions that have been scheduled but not started when the same
    action has been scheduled for a newer commit on the same branch
---
 .github/workflows/ci-macos.yml    | 6 ++++++
 .github/workflows/ci-manager2.yml | 6 ++++++
 .github/workflows/ci.yml          | 6 ++++++
 .github/workflows/codeql.yml      | 6 ++++++
 .github/workflows/coverage.yml    | 6 ++++++
 .github/workflows/validate.yml    | 6 ++++++
 6 files changed, 36 insertions(+)

diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml
index 3aceec8df6..5f87108516 100644
--- a/.github/workflows/ci-macos.yml
+++ b/.github/workflows/ci-macos.yml
@@ -22,6 +22,12 @@ on:
     branches:
       - main
 
+# Only one run of the same workflow per branch or pull request runs at a time. 
A run that is still queued is
+# cancelled when the workflow is triggered for a newer commit, but a run that 
is already in progress is left to finish.
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
+  cancel-in-progress: false
+
 permissions:
   contents: read
 
diff --git a/.github/workflows/ci-manager2.yml 
b/.github/workflows/ci-manager2.yml
index 3780b7240d..ab7236d439 100644
--- a/.github/workflows/ci-manager2.yml
+++ b/.github/workflows/ci-manager2.yml
@@ -20,6 +20,12 @@ on:
     branches:
       - main
 
+# Only one run of the same workflow per branch or pull request runs at a time. 
A run that is still queued is
+# cancelled when the workflow is triggered for a newer commit, but a run that 
is already in progress is left to finish.
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
+  cancel-in-progress: false
+
 permissions:
   contents: read
 
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f805c78044..4365ab3ebf 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -23,6 +23,12 @@ on:
     branches:
       - main
 
+# Only one run of the same workflow per branch or pull request runs at a time. 
A run that is still queued is
+# cancelled when the workflow is triggered for a newer commit, but a run that 
is already in progress is left to finish.
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
+  cancel-in-progress: false
+
 permissions:
   contents: read
 
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index dc4bd87b90..fa2b247673 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -21,6 +21,12 @@ on:
     - cron: '16 14 * * 4'
   workflow_dispatch:
 
+# Only one run of the same workflow per branch or pull request runs at a time. 
A run that is still queued is
+# cancelled when the workflow is triggered for a newer commit, but a run that 
is already in progress is left to finish.
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
+  cancel-in-progress: false
+
 jobs:
   analyze:
     name: Analyze (${{ matrix.language }})
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index c74285e7dd..d839843b71 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -17,6 +17,12 @@ on:
     branches:
       - main
 
+# Only one run of the same workflow per branch or pull request runs at a time. 
A run that is still queued is
+# cancelled when the workflow is triggered for a newer commit, but a run that 
is already in progress is left to finish.
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
+  cancel-in-progress: false
+
 permissions:
   contents: read
 
diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml
index 3dacf8eca8..2fb0c04743 100644
--- a/.github/workflows/validate.yml
+++ b/.github/workflows/validate.yml
@@ -20,6 +20,12 @@ on:
     branches:
       - main
 
+# Only one run of the same workflow per branch or pull request runs at a time. 
A run that is still queued is
+# cancelled when the workflow is triggered for a newer commit, but a run that 
is already in progress is left to finish.
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
+  cancel-in-progress: false
+
 permissions:
   contents: read
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to