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

contrib: extend checkpr.sh to watch for Smoke Tests completion #12058

Merged
merged 3 commits into from
Jun 17, 2020

Conversation

qmonnet
Copy link
Member

@qmonnet qmonnet commented Jun 12, 2020

Extend contrib/scripts/checkpr.sh with options, including a -s option to watch for the completion of Smoke Tests (from GitHub actions) instead of the Jenkins job for the given PR. This is so we can launch the Jenkins CI tests once the Smoke Tests are finished.

Usage: Check for Jenkins status as before:

./contrib/scripts/checkpr.sh <PR_ID>

Check for Smoke Tests instead with the -s option:

./contrib/scripts/checkpr.sh -s <PR_ID>

@qmonnet qmonnet added pending-review area/misc Impacts miscellaneous areas of the code not otherwise owned by another area. release-note/misc This PR makes changes that have no direct user impact. labels Jun 12, 2020
@qmonnet qmonnet requested review from joestringer, nebril and a team June 12, 2020 16:34
@qmonnet qmonnet requested a review from a team as a code owner June 12, 2020 16:34
@coveralls
Copy link

coveralls commented Jun 12, 2020

Coverage Status

Coverage increased (+0.02%) to 37.06% when pulling 40950f7 on pr/qmonnet/checkpr into f3b474a on master.

Copy link
Member

@nebril nebril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Use notify-send in addition to audio bell to tell users when Jenkins has
finished testing the PR.

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Add -m and -q options to checkpr.sh to silence audio and text
notifications, respectively.

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Add a -s option to checkpr.sh so we can watch for the completion of
Smoke Tests (from GitHub actions) instead of the Jenkins job. This is so
we can launch the Jenkins CI tests once the Smoke Tests are finished
(and succeeded, of course).

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
@qmonnet
Copy link
Member Author

qmonnet commented Jun 15, 2020

Fixed a leftover from development (oops!).

diff
diff --git a/contrib/scripts/checkpr.sh b/contrib/scripts/checkpr.sh
index 1cf7cf11d8e6..ebbd8f1abfec 100755
--- a/contrib/scripts/checkpr.sh
+++ b/contrib/scripts/checkpr.sh
@@ -82,7 +82,6 @@ check_smoke_test() {
 	PR_ID=$1
 
 	# Get branch (HEAD) for PR
-	BRANCH="pr/qmonnet/disable_fragtest_4.19"
 	BRANCH=$(curl -s "https://api.github.com/repos/cilium/cilium/pulls/$PR_ID" | jq -r '.head.ref')
 
 	# Get workflow ID for latest Smoke tests run for that branch

@aanm aanm merged commit 738afe4 into master Jun 17, 2020
@aanm aanm deleted the pr/qmonnet/checkpr branch June 17, 2020 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/misc Impacts miscellaneous areas of the code not otherwise owned by another area. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants