mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Fail fast test check
This commit is contained in:
parent
81942b8128
commit
b687d9515b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user