diff --git a/release/src/main/scripts/mass_comment.py b/release/src/main/scripts/mass_comment.py index 3d56225d90f6..99c1ac646d6e 100644 --- a/release/src/main/scripts/mass_comment.py +++ b/release/src/main/scripts/mass_comment.py @@ -17,8 +17,9 @@ """Script for mass-commenting Jenkins test triggers on a Beam PR.""" -import socket import requests +import socket +import time # This list can be found by querying the Jenkins API, see BEAM-13951 COMMENTS_TO_ADD = [ @@ -56,7 +57,6 @@ "Run Java Examples_Flink", "Run Java Examples_Spark", "Run Java Flink PortableValidatesRunner Streaming", - "Run Java Portability examples on Dataflow with Java 11", "Run Java PostCommit", "Run Java PreCommit", "Run Java Samza PortableValidatesRunner", @@ -223,6 +223,8 @@ def postComments(accessToken, subjectId): for commentBody in COMMENTS_TO_ADD: jsonData = fetchGHData(accessToken, subjectId, commentBody) + # Space out comments 30 seconds apart to avoid overwhelming Jenkins + time.sleep(30) print(jsonData) diff --git a/scripts/ci/release/comment_pr_trigger_phrases.sh b/scripts/ci/release/comment_pr_trigger_phrases.sh index 10479dd94dd8..f31b3054e70e 100755 --- a/scripts/ci/release/comment_pr_trigger_phrases.sh +++ b/scripts/ci/release/comment_pr_trigger_phrases.sh @@ -23,4 +23,5 @@ GITHUB_PR=$1 while IFS= read -r trigger_phrase do gh pr comment "$GITHUB_PR" --body "$trigger_phrase" + sleep 30 done <"$file"