Fail Fast tests on next run if previous running has failed

This commit is contained in:
Mikhail f. Shiryaev 2023-04-20 14:51:53 +02:00
parent c80d8081d2
commit c28e8438e3
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -112,6 +112,9 @@ def main():
rerun_helper = RerunHelper(gh, pr_info, NAME)
if rerun_helper.is_already_finished_by_status():
logging.info("Check is already finished according to github status, exiting")
status = rerun_helper.get_finished_status()
if status is not None and status.state != "success":
sys.exit(1)
sys.exit(0)
docker_image = get_image_with_version(temp_path, "clickhouse/fasttest")