Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ARM test suite trigger commands to mass comment script #27982

Merged
merged 8 commits into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.')