Skip to content

Commit

Permalink
Add ARM test suite trigger commands to mass comment script (#27982)
Browse files Browse the repository at this point in the history
  • Loading branch information
celeste-zeng authored Sep 1, 2023
1 parent 6b3ce09 commit 6d5048e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
8 changes: 8 additions & 0 deletions release/src/main/scripts/github_actions_jobs.txt
Original file line number Diff line number Diff line change
@@ -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
20 changes: 18 additions & 2 deletions release/src/main/scripts/mass_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__':
Expand All @@ -142,7 +155,10 @@ def getRemainingComments(accessToken, pr, initialComments):
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()
Expand Down Expand Up @@ -173,4 +189,4 @@ def getRemainingComments(accessToken, pr, initialComments):
print(f'{len(remainingComments)} comments still must be reposted: {str(remainingComments)}')
print('Trying to repost comments.')

print('Done.')
print('Done.')

0 comments on commit 6d5048e

Please sign in to comment.