From 881d5ac44fdaf024be7a70676b2b598f7e0b28a5 Mon Sep 17 00:00:00 2001 From: alesapin Date: Wed, 23 Mar 2022 11:32:16 +0100 Subject: [PATCH] Don't put red cross if jepsen check couldn't wait for build --- tests/ci/keeper_jepsen_check.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/ci/keeper_jepsen_check.py b/tests/ci/keeper_jepsen_check.py index b0ec1e7ba8b..24d720e67ab 100644 --- a/tests/ci/keeper_jepsen_check.py +++ b/tests/ci/keeper_jepsen_check.py @@ -200,10 +200,8 @@ if __name__ == "__main__": head = requests.head(build_url) counter += 1 if counter >= 180: - post_commit_status( - gh, pr_info.sha, CHECK_NAME, "Cannot fetch build to run", "error", "" - ) - raise Exception("Cannot fetch build") + logging.warning("Cannot fetch build in 30 minutes, exiting") + sys.exit(0) with SSHKey(key_value=get_parameter_from_ssm("jepsen_ssh_key") + "\n"): ssh_auth_sock = os.environ["SSH_AUTH_SOCK"]