Skip to content

Commit 96d6f2d

Browse files
prevent performance cdap on forks (#29194)
* prevent performance cdap on forks * update all scheduled runs to include fork prevention conditonal * add conditional to publish and release jobs --------- Co-authored-by: Vlado Djerek <djerek.vlado6@gmail.com>
1 parent d329a7e commit 96d6f2d

264 files changed

Lines changed: 276 additions & 282 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/README.md

Lines changed: 2 additions & 2 deletions

.github/workflows/beam_CancelStaleDataflowJobs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
job_name: [beam_CancelStaleDataflowJobs]
5959
job_phrase: [Run Cancel Stale Dataflow Jobs]
6060
if: |
61-
github.event_name == 'schedule' ||
61+
(github.event_name == 'schedule' && github.repository == 'apache/beam') ||
6262
github.event_name == 'workflow_dispatch' ||
6363
github.event.comment.body == 'Run Cancel Stale Dataflow Jobs'
6464
steps:

.github/workflows/beam_CleanUpDataprocResources.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
beam_CleanUpDataprocResources:
5151
if: |
5252
github.event_name == 'workflow_dispatch' ||
53-
github.event_name == 'schedule'
53+
(github.event_name == 'schedule' && github.repository == 'apache/beam')
5454
runs-on: [self-hosted, ubuntu-20.04, main]
5555
timeout-minutes: 100
5656
name: "beam_CleanUpDataprocResources"

.github/workflows/beam_CleanUpGCPResources.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
job_name: [beam_CleanUpGCPResources]
5959
job_phrase: [Run Clean GCP Resources]
6060
if: |
61-
github.event_name == 'schedule' ||
61+
(github.event_name == 'schedule' && github.repository == 'apache/beam') ||
6262
github.event_name == 'workflow_dispatch' ||
6363
github.event.comment.body == 'Run Clean GCP Resources'
6464
steps:

.github/workflows/beam_CleanUpPrebuiltSDKImages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
job_name: [beam_CleanUpPrebuiltSDKImages]
5959
job_phrase: [Run Clean Prebuilt Images]
6060
if: |
61-
github.event_name == 'schedule' ||
61+
(github.event_name == 'schedule' && github.repository == 'apache/beam') ||
6262
github.event_name == 'workflow_dispatch' ||
6363
github.event.comment.body == 'Run Clean Prebuilt Images'
6464
steps:

.github/workflows/beam_CloudML_Benchmarks_Dataflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
beam_CloudML_Benchmarks_Dataflow:
5555
if: |
5656
github.event_name == 'workflow_dispatch' ||
57-
github.event_name == 'schedule' ||
57+
(github.event_name == 'schedule' && github.repository == 'apache/beam') ||
5858
github.event.comment.body == 'Run TFT Criteo Benchmarks'
5959
runs-on: [self-hosted, ubuntu-20.04, main]
6060
timeout-minutes: 360

.github/workflows/beam_IODatastoresCredentialsRotation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
beam_IODatastoresCredentialsRotation:
5151
if: |
5252
github.event_name == 'workflow_dispatch' ||
53-
github.event_name == 'schedule'
53+
(github.event_name == 'schedule' && github.repository == 'apache/beam')
5454
runs-on: [self-hosted, ubuntu-20.04, main]
5555
timeout-minutes: 100
5656
name: ${{ matrix.job_name }}

.github/workflows/beam_Inference_Python_Benchmarks_Dataflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
beam_Inference_Python_Benchmarks_Dataflow:
5555
if: |
5656
github.event_name == 'workflow_dispatch' ||
57-
github.event_name == 'schedule' ||
57+
(github.event_name == 'schedule' && github.repository == 'apache/beam') ||
5858
github.event.comment.body == 'Run Inference Benchmarks'
5959
runs-on: [self-hosted, ubuntu-20.04, main]
6060
timeout-minutes: 900

.github/workflows/beam_Java_JMH.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
beam_Java_JMH:
5353
if: |
5454
github.event_name == 'workflow_dispatch' ||
55-
github.event_name == 'schedule'
55+
(github.event_name == 'schedule' && github.repository == 'apache/beam')
5656
runs-on: [self-hosted, ubuntu-20.04, main]
5757
timeout-minutes: 900
5858
name: "beam_Java_JMH"

.github/workflows/beam_Java_LoadTests_Combine_Smoke.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
beam_Java_LoadTests_Combine_Smoke:
5353
if: |
5454
github.event_name == 'workflow_dispatch' ||
55-
github.event_name == 'schedule' ||
55+
(github.event_name == 'schedule' && github.repository == 'apache/beam') ||
5656
github.event.comment.body == 'Run Java Load Tests Combine Smoke'
5757
runs-on: [self-hosted, ubuntu-20.04, main]
5858
timeout-minutes: 720

0 commit comments

Comments
 (0)