From a95a26edd2341b8e06ed0081253f37d7a069ac1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Mon, 8 Jun 2026 15:15:40 +0200 Subject: [PATCH] Configure GitHub workflows to use concurrency cancel-in-progress for pull requests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit see recommended best practices at Apache https://cwiki.apache.org/confluence/pages/viewpage.action?spaceKey=INFRA&title=GitHub+Actions+Recommended+Practices Signed-off-by: Aurélien Pupier --- .github/workflows/build.yml | 4 ++++ .github/workflows/documentation.yml | 4 ++++ .github/workflows/javaCodestyle.yml | 4 ++++ .github/workflows/javaTests.yml | 4 ++++ .github/workflows/license.yml | 4 ++++ .github/workflows/monitoringUITests.yml | 4 ++++ .github/workflows/python.yml | 4 ++++ .github/workflows/pythonFormatting.yml | 4 ++++ 8 files changed, 32 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d401263bb7d..77d492a2e22 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,6 +41,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: build: name: ${{ matrix.os }} Java ${{ matrix.java }} ${{ matrix.javadist }} diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 75b74228f67..78b5ce0458e 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -35,6 +35,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: doc1: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/javaCodestyle.yml b/.github/workflows/javaCodestyle.yml index 50c970023c1..2649edcbd0c 100644 --- a/.github/workflows/javaCodestyle.yml +++ b/.github/workflows/javaCodestyle.yml @@ -41,6 +41,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: java_codestyle: name: Java Checkstyle diff --git a/.github/workflows/javaTests.yml b/.github/workflows/javaTests.yml index da1ceeca23d..0d6ac02fb82 100644 --- a/.github/workflows/javaTests.yml +++ b/.github/workflows/javaTests.yml @@ -43,6 +43,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: java_tests: runs-on: ubuntu-24.04 diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index 4f7b02ee42f..d42e073c77b 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -41,6 +41,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: build: name: ${{ matrix.os }} diff --git a/.github/workflows/monitoringUITests.yml b/.github/workflows/monitoringUITests.yml index 9389b394828..2fcfc90651b 100644 --- a/.github/workflows/monitoringUITests.yml +++ b/.github/workflows/monitoringUITests.yml @@ -43,6 +43,10 @@ on: # enable manual workflow trigger workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: build: runs-on: ubuntu-24.04 diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 035965cf550..ee4e771937d 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -42,6 +42,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: test: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/pythonFormatting.yml b/.github/workflows/pythonFormatting.yml index cbdd5e84578..aca79c10f41 100644 --- a/.github/workflows/pythonFormatting.yml +++ b/.github/workflows/pythonFormatting.yml @@ -33,6 +33,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: black: runs-on: ubuntu-latest