From 0f3e801325c62abd8ba1d297cc4d32137c691e53 Mon Sep 17 00:00:00 2001 From: Yi Hu Date: Fri, 6 Oct 2023 15:24:43 -0400 Subject: [PATCH] Merge pull request #28665: Add GitHub Action workflows to mass_commit --- .github/workflows/beam_PostCommit_Python.yml | 2 +- .../src/main/scripts/github_actions_jobs.txt | 33 ++++++++++++++----- release/src/main/scripts/mass_comment.py | 3 +- 3 files changed, 28 insertions(+), 10 deletions(-) diff --git a/.github/workflows/beam_PostCommit_Python.yml b/.github/workflows/beam_PostCommit_Python.yml index 7dde6ed150df..1f76df1decd2 100644 --- a/.github/workflows/beam_PostCommit_Python.yml +++ b/.github/workflows/beam_PostCommit_Python.yml @@ -64,7 +64,7 @@ jobs: if: | github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || - github.event.comment.body == 'Run Python PostCommit' + startswith(github.event.comment.body, 'Run Python PostCommit 3.') steps: - uses: actions/checkout@v4 - name: Setup repository diff --git a/release/src/main/scripts/github_actions_jobs.txt b/release/src/main/scripts/github_actions_jobs.txt index 3ad16e555ef6..6f200454afe0 100644 --- a/release/src/main/scripts/github_actions_jobs.txt +++ b/release/src/main/scripts/github_actions_jobs.txt @@ -1,8 +1,25 @@ -Run Go PostCommit Dataflow ARM -Run Java_Examples_Dataflow_ARM PostCommit 8 -Run Java_Examples_Dataflow_ARM PostCommit 11 -Run Java_Examples_Dataflow_ARM PostCommit 17 -Run Python ValidatesContainer Dataflow ARM 3.8 -Run Python ValidatesContainer Dataflow ARM 3.9 -Run Python ValidatesContainer Dataflow ARM 3.10 -Run Python ValidatesContainer Dataflow ARM 3.11 \ No newline at end of file +Run PythonDocs PreCommit,beam_PreCommit_PythonDocs +Run PythonLint PreCommit,beam_PreCommit_PythonLint +Run RAT PreCommit,beam_PreCommit_RAT +Run Spotless PreCommit,beam_PreCommit_Spotless +Run Website PreCommit,beam_PreCommit_Website +Run Website_Stage_GCS PreCommit,beam_PreCommit_Website_Stage_GCS +Run Whitespace PreCommit,beam_PreCommit_Whitespace +Run PythonFormatter PreCommit,beam_PreCommit_PythonFormatter +Run Kotlin_Examples PreCommit,beam_PreCommit_Kotlin_Examples +Run Go PreCommit,beam_PreCommit_Go +Run GoPortable PreCommit,beam_PreCommit_GoPortable +Run GoPrism PreCommit,beam_PreCommit_GoPrism +Run Typescript PreCommit,beam_PreCommit_Typescript +Run CommunityMetrics PreCommit,beam_PreCommit_CommunityMetrics +Run Java_Flink_Versions PreCommit,beam_PreCommit_Java_Flink_Versions +Run It_Framework PreCommit,beam_PreCommit_ItFramework +Run Java examples on Dataflow,beam_PostCommit_Java_Examples_Dataflow +Run Go PostCommit Dataflow ARM,beam_PostCommit_Go_Dataflow_ARM +Run Java_Examples_Dataflow_ARM PostCommit 8,beam_PostCommit_Java_Examples_Dataflow_ARM +Run Java_Examples_Dataflow_ARM PostCommit 11,beam_PostCommit_Java_Examples_Dataflow_ARM +Run Java_Examples_Dataflow_ARM PostCommit 17,beam_PostCommit_Java_Examples_Dataflow_ARM +Run Python ValidatesContainer Dataflow ARM 3.8,beam_Python_ValidatesContainer_Dataflow_ARM +Run Python ValidatesContainer Dataflow ARM 3.9,beam_Python_ValidatesContainer_Dataflow_ARM +Run Python ValidatesContainer Dataflow ARM 3.10,beam_Python_ValidatesContainer_Dataflow_ARM +Run Python ValidatesContainer Dataflow ARM 3.11,beam_Python_ValidatesContainer_Dataflow_ARM diff --git a/release/src/main/scripts/mass_comment.py b/release/src/main/scripts/mass_comment.py index 3fa60fcb3e18..6d020f2af8e3 100644 --- a/release/src/main/scripts/mass_comment.py +++ b/release/src/main/scripts/mass_comment.py @@ -135,7 +135,8 @@ def getGithubActionsTriggerCommands(dirname): comments = [line.strip() for line in file if len(line.strip()) > 0] for i in range(len(comments)): - gha_trigger_commands.append(comments[i]) + parts = comments[i].split(',') + gha_trigger_commands.append((parts[0], parts[1])) return gha_trigger_commands