From 1b03a60e436a39bb691d6f60a4c350a0b789a656 Mon Sep 17 00:00:00 2001 From: Yatsishin Ilya <2159081+qoega@users.noreply.github.com> Date: Thu, 5 Jan 2023 13:53:45 +0000 Subject: [PATCH] Do not report status if we failed to pull images. --- tests/ci/integration_test_check.py | 5 +++++ tests/integration/ci-runner.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/ci/integration_test_check.py b/tests/ci/integration_test_check.py index 86f38a5b8b4..a6935e22091 100644 --- a/tests/ci/integration_test_check.py +++ b/tests/ci/integration_test_check.py @@ -247,6 +247,11 @@ if __name__ == "__main__": retcode = process.wait() if retcode == 0: logging.info("Run tests successfully") + elif retcode == 13: + logging.warning( + "There were issues with infrastructure. Not writing status report to restart job." + ) + sys.exit(1) else: logging.info("Some tests failed") diff --git a/tests/integration/ci-runner.py b/tests/integration/ci-runner.py index 89e8d6a2cf2..4bb830351ce 100755 --- a/tests/integration/ci-runner.py +++ b/tests/integration/ci-runner.py @@ -317,7 +317,8 @@ class ClickhouseIntegrationTestsRunner: logging.info("docker-compose pull failed: " + str(err)) continue logging.error("Pulling images failed for 5 attempts. Will fail the worker.") - exit(1) + # We pass specific retcode to to ci/integration_test_check.py to skip status reporting and restart job + exit(13) def _can_run_with(self, path, opt): with open(path, "r") as script: