Better checks

This commit is contained in:
alesapin 2021-10-27 11:02:30 +03:00
parent 300c18d329
commit f726bc0b8c
3 changed files with 5 additions and 2 deletions

View File

@ -114,7 +114,6 @@ if __name__ == "__main__":
logging.info("Got images %s", images) logging.info("Got images %s", images)
if 'clickhouse/fasttest' in images: if 'clickhouse/fasttest' in images:
docker_image += ':' + images['clickhouse/fasttest'] docker_image += ':' + images['clickhouse/fasttest']
break
logging.info("Got docker image %s", docker_image) logging.info("Got docker image %s", docker_image)
for i in range(10): for i in range(10):

View File

@ -88,6 +88,8 @@ def get_image_name(check_name):
return 'clickhouse/stateless-test' return 'clickhouse/stateless-test'
if 'stateful' in check_name.lower(): if 'stateful' in check_name.lower():
return 'clickhouse/stateful-test' return 'clickhouse/stateful-test'
else:
raise Exception(f"Cannot deduce image name based on check name {check_name}")
def dowload_build_with_progress(url, path): def dowload_build_with_progress(url, path):

View File

@ -136,7 +136,9 @@ def main(github_secret_key, github_app_id, push_to_cloudwatch):
if push_to_cloudwatch: if push_to_cloudwatch:
push_metrics_to_cloudwatch(group_runners, 'RunnersMetrics/' + group) push_metrics_to_cloudwatch(group_runners, 'RunnersMetrics/' + group)
else: else:
print(group, group_runners) print(group)
for runner in group_runners:
print('\t', runner)
if __name__ == "__main__": if __name__ == "__main__":