mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Rename get_build_urls to read_build_urls
This commit is contained in:
parent
f3cf1069dc
commit
257c4328f7
@ -17,7 +17,7 @@ from env_helper import (
|
|||||||
from s3_helper import S3Helper
|
from s3_helper import S3Helper
|
||||||
from get_robot_token import get_best_robot_token
|
from get_robot_token import get_best_robot_token
|
||||||
from pr_info import PRInfo
|
from pr_info import PRInfo
|
||||||
from build_download_helper import get_build_name_for_check, get_build_urls
|
from build_download_helper import get_build_name_for_check, read_build_urls
|
||||||
from docker_pull_helper import get_image_with_version
|
from docker_pull_helper import get_image_with_version
|
||||||
from commit_status_helper import post_commit_status
|
from commit_status_helper import post_commit_status
|
||||||
from clickhouse_helper import ClickHouseHelper, prepare_tests_results_for_clickhouse
|
from clickhouse_helper import ClickHouseHelper, prepare_tests_results_for_clickhouse
|
||||||
@ -69,7 +69,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
build_name = get_build_name_for_check(check_name)
|
build_name = get_build_name_for_check(check_name)
|
||||||
print(build_name)
|
print(build_name)
|
||||||
urls = get_build_urls(build_name, reports_path)
|
urls = read_build_urls(build_name, reports_path)
|
||||||
if not urls:
|
if not urls:
|
||||||
raise Exception("No build URLs found")
|
raise Exception("No build URLs found")
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ def get_build_name_for_check(check_name):
|
|||||||
return CI_CONFIG["tests_config"][check_name]["required_build"]
|
return CI_CONFIG["tests_config"][check_name]["required_build"]
|
||||||
|
|
||||||
|
|
||||||
def get_build_urls(build_name, reports_path):
|
def read_build_urls(build_name, reports_path):
|
||||||
for root, _, files in os.walk(reports_path):
|
for root, _, files in os.walk(reports_path):
|
||||||
for f in files:
|
for f in files:
|
||||||
if build_name in f:
|
if build_name in f:
|
||||||
@ -111,7 +111,7 @@ def download_builds_filter(
|
|||||||
check_name, reports_path, result_path, filter_fn=lambda _: True
|
check_name, reports_path, result_path, filter_fn=lambda _: True
|
||||||
):
|
):
|
||||||
build_name = get_build_name_for_check(check_name)
|
build_name = get_build_name_for_check(check_name)
|
||||||
urls = get_build_urls(build_name, reports_path)
|
urls = read_build_urls(build_name, reports_path)
|
||||||
print(urls)
|
print(urls)
|
||||||
|
|
||||||
if not urls:
|
if not urls:
|
||||||
|
Loading…
Reference in New Issue
Block a user