FYI for developers: I just merged a little python script in the ompi-scripts repo that watches for when CI on a PR is done. I find this very handy, especially because Open MPI's CI can take anywhere from 15 minutes to multiple hours. This script lets me file a PR and then move on to something else -- I'll get a notification when the CI on the PR completes (via a separate script -- see the PR description and the commit message for an example / more info).
Comments / improvements welcome. Begin forwarded message: From: Jeff Squyres <notificati...@github.com<mailto:notificati...@github.com>> Subject: [open-mpi/ompi-scripts] wait-for-pr-ci-completion.py: wait for Github PR CI (#18) Date: September 18, 2018 at 6:50:48 PM EDT To: open-mpi/ompi-scripts <ompi-scri...@noreply.github.com<mailto:ompi-scri...@noreply.github.com>> Cc: Jeff Squyres <jsquy...@cisco.com<mailto:jsquy...@cisco.com>>, Your activity <your_activ...@noreply.github.com<mailto:your_activ...@noreply.github.com>> Reply-To: open-mpi/ompi-scripts <reply+00096b6409dc3872a7fd141b4b0aafed3b008c317d39e99a92cf0000000117b9434892a169ce158c4...@reply.github.com<mailto:reply+00096b6409dc3872a7fd141b4b0aafed3b008c317d39e99a92cf0000000117b9434892a169ce158c4...@reply.github.com>> 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 j...@squyres.com<mailto:j...@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 ________________________________ You can view, comment on, or merge this pull request online at: https://github.com/open-mpi/ompi-scripts/pull/18 Commit Summary * wait-for-pr-ci-completion.py: wait for Github PR CI File Changes * A administrative/wait-for-pr-ci-completion.py<https://github.com/open-mpi/ompi-scripts/pull/18/files#diff-0> (296) Patch Links: * https://github.com/open-mpi/ompi-scripts/pull/18.patch * https://github.com/open-mpi/ompi-scripts/pull/18.diff — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub<https://github.com/open-mpi/ompi-scripts/pull/18>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAlrZEW9WRTfnffpeqzHF75WHMHSOgzzks5ucXjIgaJpZM4Wu95N>. -- Jeff Squyres jsquy...@cisco.com<mailto:jsquy...@cisco.com>
_______________________________________________ devel mailing list devel@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/devel