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

tvalentyn 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 6d5048e0508 Add ARM test suite trigger commands to mass comment script 
(#27982)
6d5048e0508 is described below

commit 6d5048e05087ea54abc889ce402ae2a0abb9252b
Author: Celeste Zeng <61256376+celeste-z...@users.noreply.github.com>
AuthorDate: Fri Sep 1 16:01:05 2023 -0700

    Add ARM test suite trigger commands to mass comment script (#27982)
---
 release/src/main/scripts/github_actions_jobs.txt |  8 ++++++++
 release/src/main/scripts/mass_comment.py         | 20 ++++++++++++++++++--
 2 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/release/src/main/scripts/github_actions_jobs.txt 
b/release/src/main/scripts/github_actions_jobs.txt
new file mode 100644
index 00000000000..3ad16e555ef
--- /dev/null
+++ b/release/src/main/scripts/github_actions_jobs.txt
@@ -0,0 +1,8 @@
+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
diff --git a/release/src/main/scripts/mass_comment.py 
b/release/src/main/scripts/mass_comment.py
index 9a2d86ac77b..3fa60fcb3e1 100644
--- a/release/src/main/scripts/mass_comment.py
+++ b/release/src/main/scripts/mass_comment.py
@@ -125,6 +125,19 @@ def getRemainingComments(accessToken, pr, initialComments):
       remainingComments.append(comment)
   return remainingComments
 
+def getGithubActionsTriggerCommands(dirname):
+  '''
+  Returns all trigger commands that will start PostCommit Dataflow ARM Github 
Actions test suites.
+  '''
+  gha_trigger_commands = []
+  
+  with open(os.path.join(dirname, 'github_actions_jobs.txt')) as file:
+    comments = [line.strip() for line in file if len(line.strip()) > 0]
+
+  for i in range(len(comments)):
+    gha_trigger_commands.append(comments[i])
+
+  return gha_trigger_commands
 
 
################################################################################
 if __name__ == '__main__':
@@ -142,7 +155,10 @@ if __name__ == '__main__':
   for i in range(len(comments)):
     parts = comments[i].split(',')
     comments[i] = (parts[0], parts[1])
-  
+
+  gha_comments = getGithubActionsTriggerCommands(dirname)
+  comments.extend(gha_comments)
+
   if not probeGitHubIsUp():
     print("GitHub is unavailable, skipping fetching data.")
     exit()
@@ -173,4 +189,4 @@ if __name__ == '__main__':
       print(f'{len(remainingComments)} comments still must be reposted: 
{str(remainingComments)}')
       print('Trying to repost comments.')
 
-  print('Done.')
\ No newline at end of file
+  print('Done.')

Reply via email to