Do not report status if we failed to pull images.

This commit is contained in:
Yatsishin Ilya 2023-01-05 13:53:45 +00:00
parent 932a2f9e09
commit 1b03a60e43
2 changed files with 7 additions and 1 deletions

View File

@ -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")

View File

@ -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: