Skip to content

Commit 9d75411

Browse files
authored
Allow running TFT benchmarks from pr (#35334)
* Allow running TFT benchmarks from pr * Add trigger file
1 parent a50970b commit 9d75411

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"comment": "Modify this file in a trivial way to cause this test suite to run.",
3+
"modification": 1
4+
}

.github/workflows/beam_CloudML_Benchmarks_Dataflow.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ name: CloudML Benchmarks Dataflow
1818
on:
1919
schedule:
2020
- cron: '10 21 * * *'
21+
pull_request_target:
22+
paths: ['release/trigger_all_tests.json', '.github/trigger_files/beam_CloudML_Benchmarks_Dataflow.json']
2123
workflow_dispatch:
2224

2325
#Setting explicit permissions for the action to avoid the default permissions which are `write-all` in case of pull_request_target event
@@ -52,8 +54,7 @@ jobs:
5254
beam_CloudML_Benchmarks_Dataflow:
5355
if: |
5456
github.event_name == 'workflow_dispatch' ||
55-
(github.event_name == 'schedule' && github.repository == 'apache/beam') ||
56-
github.event.comment.body == 'Run TFT Criteo Benchmarks'
57+
(github.event_name == 'schedule' && github.repository == 'apache/beam')
5758
runs-on: [self-hosted, ubuntu-20.04, main]
5859
timeout-minutes: 360
5960
name: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
@@ -90,4 +91,4 @@ jobs:
9091
arguments: |
9192
-PpythonVersion=3.9 \
9293
-Prunner=DataflowRunner \
93-
'-Popts=${{ env.beam_CloudML_Benchmarks_Dataflow_test_arguments_1 }}'
94+
'-Popts=${{ env.beam_CloudML_Benchmarks_Dataflow_test_arguments_1 }}'

0 commit comments

Comments
 (0)