You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by da...@apache.org on 2022/09/08 17:34:25 UTC

[beam] branch master updated: Auto-cancel old unit test Actions Runs (#23095)

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

damccorm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 6da16cd461b Auto-cancel old unit test Actions Runs (#23095)
6da16cd461b is described below

commit 6da16cd461b90ddccc0fa92848a2bbe5684d6b94
Author: Yi Hu <ya...@google.com>
AuthorDate: Thu Sep 8 13:34:17 2022 -0400

    Auto-cancel old unit test Actions Runs (#23095)
    
    * Auto-cancel old unit test Actions Runs
    
    * Also auto-cancel old local_env_tests, build_wheels, and the playground workflowswq
---
 .github/workflows/build_playground_backend.yml  | 6 ++++++
 .github/workflows/build_playground_frontend.yml | 5 +++++
 .github/workflows/build_wheels.yml              | 5 +++++
 .github/workflows/go_tests.yml                  | 5 +++++
 .github/workflows/java_tests.yml                | 4 ++++
 .github/workflows/local_env_tests.yml           | 5 +++++
 .github/workflows/python_tests.yml              | 4 ++++
 .github/workflows/typescript_tests.yml          | 4 ++++
 8 files changed, 38 insertions(+)

diff --git a/.github/workflows/build_playground_backend.yml b/.github/workflows/build_playground_backend.yml
index 63f4158b7f8..4aa0fd29493 100644
--- a/.github/workflows/build_playground_backend.yml
+++ b/.github/workflows/build_playground_backend.yml
@@ -23,6 +23,12 @@ on:
     paths: ['playground/backend/**']
     branches: ['playground-staging']
   workflow_dispatch:
+
+# This allows a subsequently queued workflow run to interrupt previous runs
+concurrency:
+  group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
+  cancel-in-progress: true
+
 jobs:
   build_playground_backend_docker_image:
     name: Build Playground Backend App
diff --git a/.github/workflows/build_playground_frontend.yml b/.github/workflows/build_playground_frontend.yml
index 8b4d0953e6b..f71fc314b7a 100644
--- a/.github/workflows/build_playground_frontend.yml
+++ b/.github/workflows/build_playground_frontend.yml
@@ -24,6 +24,11 @@ on:
     branches: ['playground-staging']
   workflow_dispatch:
 
+# This allows a subsequently queued workflow run to interrupt previous runs
+concurrency:
+  group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
+  cancel-in-progress: true
+
 jobs:
   build_playground_frontend_docker_image:
     name: Build Playground Frontend App
diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml
index 33805d60ada..ae02bcaf27d 100644
--- a/.github/workflows/build_wheels.yml
+++ b/.github/workflows/build_wheels.yml
@@ -31,6 +31,11 @@ on:
     paths: ['sdks/python/**', 'model/**', 'release/**']
   workflow_dispatch:
 
+# This allows a subsequently queued workflow run to interrupt previous runs
+concurrency:
+  group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
+  cancel-in-progress: true
+
 env:
   GCP_PATH: "gs://${{ secrets.GCP_PYTHON_WHEELS_BUCKET }}/${GITHUB_REF##*/}/${GITHUB_SHA}-${GITHUB_RUN_ID}/"
 
diff --git a/.github/workflows/go_tests.yml b/.github/workflows/go_tests.yml
index 992a345da74..8ee8110ad41 100644
--- a/.github/workflows/go_tests.yml
+++ b/.github/workflows/go_tests.yml
@@ -30,6 +30,11 @@ on:
     tags: 'v*'
     paths: ['sdks/go/pkg/**', 'sdks/go.mod', 'sdks/go.sum']
 
+# This allows a subsequently queued workflow run to interrupt previous runs
+concurrency:
+  group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
+  cancel-in-progress: true
+
 jobs:
   build:
     runs-on: ubuntu-latest
diff --git a/.github/workflows/java_tests.yml b/.github/workflows/java_tests.yml
index eb4cb82b7b9..b8e64c3fdf4 100644
--- a/.github/workflows/java_tests.yml
+++ b/.github/workflows/java_tests.yml
@@ -36,6 +36,10 @@ on:
     paths: ['sdks/java/**', 'model/**', 'runners/**', 'examples/java/**',
             'examples/kotlin/**', 'release/**', 'buildSrc/**']
 
+# This allows a subsequently queued workflow run to interrupt previous runs
+concurrency:
+  group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
+  cancel-in-progress: true
 
 jobs:
   check_gcp_variables:
diff --git a/.github/workflows/local_env_tests.yml b/.github/workflows/local_env_tests.yml
index d785c323758..1c120f809df 100644
--- a/.github/workflows/local_env_tests.yml
+++ b/.github/workflows/local_env_tests.yml
@@ -28,6 +28,11 @@ on:
     tags: 'v*'
     paths: ['dev-support/**', 'buildSrc/**', '**/build.gradle', 'sdks/python/setup.py', 'sdks/python/tox.ini']
 
+# This allows a subsequently queued workflow run to interrupt previous runs
+concurrency:
+  group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
+  cancel-in-progress: true
+
 jobs:
   run_local_env_install_ubuntu:
     timeout-minutes: 25
diff --git a/.github/workflows/python_tests.yml b/.github/workflows/python_tests.yml
index b3b1ea051e9..b91556fbe96 100644
--- a/.github/workflows/python_tests.yml
+++ b/.github/workflows/python_tests.yml
@@ -35,6 +35,10 @@ on:
         description: 'Type "true" if you want to run Dataflow tests (GCP variables must be configured, check CI.md)'
         default: false
 
+# This allows a subsequently queued workflow run to interrupt previous runs
+concurrency:
+  group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
+  cancel-in-progress: true
 
 jobs:
 
diff --git a/.github/workflows/typescript_tests.yml b/.github/workflows/typescript_tests.yml
index 5b349d8e687..381a3076079 100644
--- a/.github/workflows/typescript_tests.yml
+++ b/.github/workflows/typescript_tests.yml
@@ -31,6 +31,10 @@ on:
     tags: 'v*'
     paths: ['sdks/typescript/**']
 
+# This allows a subsequently queued workflow run to interrupt previous runs
+concurrency:
+  group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
+  cancel-in-progress: true
 
 jobs: