mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Fix automatic bucket_prefix, exit 1 on failures
This commit is contained in:
parent
bfe0fbc701
commit
39097a4cfc
@ -5,6 +5,7 @@ import argparse
|
||||
import json
|
||||
import logging
|
||||
import subprocess
|
||||
import sys
|
||||
from os import path as p, makedirs
|
||||
from typing import List, Tuple
|
||||
|
||||
@ -292,7 +293,7 @@ def main():
|
||||
pr_info = None
|
||||
if CI:
|
||||
pr_info = PRInfo()
|
||||
release_or_pr = get_release_or_pr(pr_info, args.version)
|
||||
release_or_pr, _ = get_release_or_pr(pr_info, args.version)
|
||||
args.bucket_prefix = (
|
||||
f"https://s3.amazonaws.com/{S3_BUILDS_BUCKET}/"
|
||||
f"{release_or_pr}/{pr_info.sha}"
|
||||
@ -350,6 +351,8 @@ def main():
|
||||
)
|
||||
ch_helper = ClickHouseHelper()
|
||||
ch_helper.insert_events_into(db="default", table="checks", events=prepared_events)
|
||||
if status != "success":
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user