diff --git a/tests/ci/fast_test_check.py b/tests/ci/fast_test_check.py index 2734102be3f..25c8001903c 100644 --- a/tests/ci/fast_test_check.py +++ b/tests/ci/fast_test_check.py @@ -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)