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 000000000000..3ad16e555ef6 --- /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 9a2d86ac77b5..3fa60fcb3e18 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 @@ 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() @@ -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.') \ No newline at end of file + print('Done.')