You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by an...@apache.org on 2023/07/13 15:43:55 UTC
[beam] branch master updated: Interrupt previous test runs when a new run kicks off (#27439)
This is an automated email from the ASF dual-hosted git repository.
anandinguva 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 7a9e9378799 Interrupt previous test runs when a new run kicks off (#27439)
7a9e9378799 is described below
commit 7a9e9378799e82209d0f122094102170c6e0566c
Author: Anand Inguva <34...@users.noreply.github.com>
AuthorDate: Thu Jul 13 11:43:46 2023 -0400
Interrupt previous test runs when a new run kicks off (#27439)
---
.github/workflows/beam_PreCommit_Go.yml | 4 ++++
.github/workflows/beam_PreCommit_Java_Examples_Dataflow.yml | 5 +++++
.github/workflows/beam_PreCommit_Typescript.yml | 5 +++++
.github/workflows/beam_PreCommit_Website.yml | 5 +++++
.github/workflows/beam_PreCommit_Whitespace.yml | 5 +++++
.github/workflows/job_PreCommit_Python.yml | 6 ++++++
.github/workflows/job_PreCommit_PythonAutoformatter.yml | 5 +++++
.github/workflows/job_PreCommit_PythonLint.yml | 5 +++++
.github/workflows/job_PreCommit_Python_Coverage.yml | 5 +++++
.github/workflows/job_PreCommit_Python_Dataframes.yml | 6 ++++++
.github/workflows/job_PreCommit_Python_DockerBuild.yml | 5 +++++
.github/workflows/job_PreCommit_Python_Examples.yml | 5 +++++
.github/workflows/job_PreCommit_Python_Runners.yml | 5 +++++
.github/workflows/job_PreCommit_Python_Transforms.yml | 5 +++++
14 files changed, 71 insertions(+)
diff --git a/.github/workflows/beam_PreCommit_Go.yml b/.github/workflows/beam_PreCommit_Go.yml
index 3e32873d6d8..211910c47f4 100644
--- a/.github/workflows/beam_PreCommit_Go.yml
+++ b/.github/workflows/beam_PreCommit_Go.yml
@@ -28,6 +28,10 @@ permissions:
security-events: read
statuses: read
+# 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:
beam_PreCommit_Go:
diff --git a/.github/workflows/beam_PreCommit_Java_Examples_Dataflow.yml b/.github/workflows/beam_PreCommit_Java_Examples_Dataflow.yml
index 04461af058f..af3b3106cc1 100644
--- a/.github/workflows/beam_PreCommit_Java_Examples_Dataflow.yml
+++ b/.github/workflows/beam_PreCommit_Java_Examples_Dataflow.yml
@@ -43,6 +43,11 @@ on:
schedule:
- cron: '* */6 * * *'
+# 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
+
#Setting explicit permissions for the action to avoid the default permissions which are `write-all` in case of pull_request_target event
permissions:
actions: write
diff --git a/.github/workflows/beam_PreCommit_Typescript.yml b/.github/workflows/beam_PreCommit_Typescript.yml
index 6d118525d1c..c415da70a0d 100644
--- a/.github/workflows/beam_PreCommit_Typescript.yml
+++ b/.github/workflows/beam_PreCommit_Typescript.yml
@@ -29,6 +29,11 @@ on:
types: [created]
schedule:
- cron: '* */6 * * *'
+
+ # 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
#Setting explicit permissions for the action to avoid the default permissions which are `write-all` in case of pull_request_target event
permissions:
diff --git a/.github/workflows/beam_PreCommit_Website.yml b/.github/workflows/beam_PreCommit_Website.yml
index a2a59c29431..88441fcb1b4 100644
--- a/.github/workflows/beam_PreCommit_Website.yml
+++ b/.github/workflows/beam_PreCommit_Website.yml
@@ -43,6 +43,11 @@ permissions:
security-events: read
statuses: read
+# 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:
beam_PreCommit_Website:
if: |
diff --git a/.github/workflows/beam_PreCommit_Whitespace.yml b/.github/workflows/beam_PreCommit_Whitespace.yml
index edb548fd6bc..1d85fd64cf3 100644
--- a/.github/workflows/beam_PreCommit_Whitespace.yml
+++ b/.github/workflows/beam_PreCommit_Whitespace.yml
@@ -42,6 +42,11 @@ permissions:
security-events: read
statuses: read
+# 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:
beam_PreCommit_Whitespace:
if: |
diff --git a/.github/workflows/job_PreCommit_Python.yml b/.github/workflows/job_PreCommit_Python.yml
index 49d095961b2..7e2c4a914ac 100644
--- a/.github/workflows/job_PreCommit_Python.yml
+++ b/.github/workflows/job_PreCommit_Python.yml
@@ -41,6 +41,12 @@ permissions:
repository-projects: read
security-events: read
statuses: read
+
+# 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:
beam_PreCommit_Python:
strategy:
diff --git a/.github/workflows/job_PreCommit_PythonAutoformatter.yml b/.github/workflows/job_PreCommit_PythonAutoformatter.yml
index f41e5be05d6..73c5a2202b2 100644
--- a/.github/workflows/job_PreCommit_PythonAutoformatter.yml
+++ b/.github/workflows/job_PreCommit_PythonAutoformatter.yml
@@ -41,6 +41,11 @@ permissions:
security-events: read
statuses: read
+# 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:
beam_PreCommit_PythonFormatter:
if: |
diff --git a/.github/workflows/job_PreCommit_PythonLint.yml b/.github/workflows/job_PreCommit_PythonLint.yml
index f75c860af19..2b3586bd37b 100644
--- a/.github/workflows/job_PreCommit_PythonLint.yml
+++ b/.github/workflows/job_PreCommit_PythonLint.yml
@@ -41,6 +41,11 @@ permissions:
security-events: read
statuses: read
+# 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:
beam_PreCommit_PythonLint:
if: |
diff --git a/.github/workflows/job_PreCommit_Python_Coverage.yml b/.github/workflows/job_PreCommit_Python_Coverage.yml
index c4821622322..8f4448cb79f 100644
--- a/.github/workflows/job_PreCommit_Python_Coverage.yml
+++ b/.github/workflows/job_PreCommit_Python_Coverage.yml
@@ -42,6 +42,11 @@ permissions:
security-events: read
statuses: read
+# 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:
beam_PreCommit_Python_Coverage:
if: |
diff --git a/.github/workflows/job_PreCommit_Python_Dataframes.yml b/.github/workflows/job_PreCommit_Python_Dataframes.yml
index 967bb65749f..d3329414844 100644
--- a/.github/workflows/job_PreCommit_Python_Dataframes.yml
+++ b/.github/workflows/job_PreCommit_Python_Dataframes.yml
@@ -40,6 +40,12 @@ permissions:
repository-projects: read
security-events: read
statuses: read
+
+# 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:
beam_PreCommit_Python_Dataframes:
strategy:
diff --git a/.github/workflows/job_PreCommit_Python_DockerBuild.yml b/.github/workflows/job_PreCommit_Python_DockerBuild.yml
index 2b0fe8a4100..beaf9a8dfd9 100644
--- a/.github/workflows/job_PreCommit_Python_DockerBuild.yml
+++ b/.github/workflows/job_PreCommit_Python_DockerBuild.yml
@@ -41,6 +41,11 @@ permissions:
security-events: read
statuses: read
+# 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:
beam_PreCommit_PythonDocker:
strategy:
diff --git a/.github/workflows/job_PreCommit_Python_Examples.yml b/.github/workflows/job_PreCommit_Python_Examples.yml
index 9e26188c4db..8cce583cfec 100644
--- a/.github/workflows/job_PreCommit_Python_Examples.yml
+++ b/.github/workflows/job_PreCommit_Python_Examples.yml
@@ -41,6 +41,11 @@ permissions:
security-events: read
statuses: read
+# 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:
beam_PreCommit_Python_Examples:
strategy:
diff --git a/.github/workflows/job_PreCommit_Python_Runners.yml b/.github/workflows/job_PreCommit_Python_Runners.yml
index 5325f32f3c1..394b9bf092c 100644
--- a/.github/workflows/job_PreCommit_Python_Runners.yml
+++ b/.github/workflows/job_PreCommit_Python_Runners.yml
@@ -42,6 +42,11 @@ permissions:
security-events: read
statuses: read
+# 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:
beam_PreCommit_Python_Runners:
strategy:
diff --git a/.github/workflows/job_PreCommit_Python_Transforms.yml b/.github/workflows/job_PreCommit_Python_Transforms.yml
index 3266ca6f3cc..893d8a9a730 100644
--- a/.github/workflows/job_PreCommit_Python_Transforms.yml
+++ b/.github/workflows/job_PreCommit_Python_Transforms.yml
@@ -42,6 +42,11 @@ permissions:
security-events: read
statuses: read
+# 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:
beam_PreCommit_Python_Transforms:
strategy: