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

wait-for-pr-ci-completion.py: wait for Github PR CI #18

Merged
merged 1 commit into from
Sep 19, 2018

Conversation

jsquyres
Copy link
Member

As the script name implies, wait for a Github PR's CI to complete.
This script does no notification; it just waits -- when the CI
completes, this script completes. You'll typically want to execute
another command after this script completes, for example:

$ ./wait-for-pr-ci-completion.py \
    --pr https://github.com/open-mpi/ompi/pull/5731; \
    pushover CI for PR5731 is done

where pushover is a script I use to send push notifications to my
phone.

See the comments at the beginning of this script to see its
requirements and how to use it.

This script may get copied out of the Open MPI script repo, so I took
the liberty of including the license in the file.

Signed-off-by: Jeff Squyres jeff@squyres.com


Here's a sample output from running this script:

$ ./wait-for-pr-ci-completion.py --pr https://github.com/open-mpi/ompi/pull/5731 ; pushover PR 5731 done
2018-09-18 17:22:33,106 INFO: PR 5731: opal_config_asm.m4: fix typo in new C11 atomic code
2018-09-18 17:22:33,106 INFO: PR 5731 is open
2018-09-18 17:22:33,638 INFO: Found new pending CI: IBM CI (PGI Compiler) (Build started)
2018-09-18 17:22:33,638 INFO: Found new pending CI: IBM CI (GNU Compiler) (Build started)
2018-09-18 17:22:33,638 INFO: Found new pending CI: IBM CI (XL Compiler) (Build started)
2018-09-18 17:22:33,639 INFO: Found new pending CI: Pull Request Build Checker (Build started for merge commit.)
2018-09-18 17:22:33,639 INFO: Found new success CI: Signed-off-by checker (Commit is signed off.  Yay!)
2018-09-18 17:22:33,639 INFO: Found new success CI: Commit email checker (Good email address.  Yay!)
2018-09-18 17:23:34,417 INFO: Found new pending CI: Mellanox (Build started sha1 is merged.)
2018-09-18 17:24:35,156 INFO: Found update pending CI: IBM CI (PGI Compiler) (Build started...)
2018-09-18 17:29:38,226 ERROR: Got Connection error.  Sleeping and trying again...
2018-09-18 17:29:43,927 INFO: Found update pending CI: IBM CI (XL Compiler) (Build started...)
2018-09-18 17:31:46,507 INFO: Found update pending CI: IBM CI (GNU Compiler) (Build started...)
2018-09-18 17:42:56,214 ERROR: Got Connection error.  Sleeping and trying again...
2018-09-18 17:46:04,160 INFO: Found update pending CI: IBM CI (XL Compiler) ([6/7] Running Run Examples...)
2018-09-18 17:47:04,962 INFO: Found update pending CI: IBM CI (GNU Compiler) ([6/7] Running Run Examples...)
2018-09-18 17:47:04,962 INFO: Found update success CI: IBM CI (XL Compiler) (All Tests Passed!)
2018-09-18 17:48:05,860 INFO: Found update success CI: IBM CI (GNU Compiler) (All Tests Passed!)
2018-09-18 17:50:07,405 INFO: Found update pending CI: IBM CI (PGI Compiler) (Building Tests...)
2018-09-18 17:51:08,152 INFO: Found update success CI: IBM CI (PGI Compiler) (All Tests Passed!)
2018-09-18 18:01:16,773 INFO: Found update success CI: Mellanox (Build finished. )
2018-09-18 18:07:21,745 INFO: Found update success CI: Pull Request Build Checker (All Tests Passed!
 )
2018-09-18 18:07:21,745 INFO: All CI statuses are complete:
2018-09-18 18:07:21,746 INFO: PASSED IBM CI (PGI Compiler): All Tests Passed!
2018-09-18 18:07:21,746 INFO: PASSED IBM CI (GNU Compiler): All Tests Passed!
2018-09-18 18:07:21,746 INFO: PASSED IBM CI (XL Compiler): All Tests Passed!
2018-09-18 18:07:21,746 INFO: PASSED Pull Request Build Checker: All Tests Passed!
2018-09-18 18:07:21,746 INFO: PASSED Signed-off-by checker: Commit is signed off.  Yay!
2018-09-18 18:07:21,746 INFO: PASSED Commit email checker: Good email address.  Yay!
2018-09-18 18:07:21,746 INFO: PASSED Mellanox: Build finished.
*** Message sent to pushover successfully:
PR 5731 done

As the script name implies, wait for a Github PR's CI to complete.
This script does no notification; it just waits -- when the CI
completes, this script completes.  You'll typically want to execute
another command after this script completes, for example:

```
$ ./wait-for-pr-ci-completion.py \
    --pr open-mpi/ompi#5731; \
    pushover CI for PR5731 is done
```

where `pushover` is a script I use to send push notifications to my
phone.

See the comments at the beginning of this script to see its
requirements and how to use it.

This script may get copied out of the Open MPI script repo, so I took
the liberty of including the license in the file.

Signed-off-by: Jeff Squyres <jeff@squyres.com>
@jsquyres jsquyres merged commit bce5ef8 into open-mpi:master Sep 19, 2018
@jsquyres jsquyres deleted the pr/wait-for-ci-completion branch September 19, 2018 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant