Fail fast test check

This commit is contained in:
alesapin 2021-11-25 12:23:45 +03:00
parent 81942b8128
commit b687d9515b

View File

@ -14,6 +14,7 @@ from docker_pull_helper import get_image_with_version
from commit_status_helper import post_commit_status
from clickhouse_helper import ClickHouseHelper, mark_flaky_tests, prepare_tests_results_for_clickhouse
from stopwatch import Stopwatch
import sys
NAME = 'Fast test (actions)'
@ -142,3 +143,9 @@ if __name__ == "__main__":
prepared_events = prepare_tests_results_for_clickhouse(pr_info, test_results, state, stopwatch.duration_seconds, stopwatch.start_time_str, report_url, NAME)
ch_helper.insert_events_into(db="gh-data", table="checks", events=prepared_events)
# Refuse other checks to run if fast test failed
for test_result in test_results:
status = test_result[1]
if status != "OK":
sys.exit(1)