mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Fix check names in the CI Logs database
This commit is contained in:
parent
bd3606dac4
commit
675afda172
@ -3,6 +3,7 @@ import fileinput
|
||||
import json
|
||||
import logging
|
||||
import time
|
||||
import os
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
@ -298,6 +299,11 @@ class CiLogsCredentials:
|
||||
def get_docker_arguments(
|
||||
self, pr_info: PRInfo, check_start_time: str, check_name: str
|
||||
) -> str:
|
||||
run_by_hash_total = int(os.getenv("RUN_BY_HASH_TOTAL", "0"))
|
||||
if run_by_hash_total > 1:
|
||||
run_by_hash_num = int(os.getenv("RUN_BY_HASH_NUM", "0"))
|
||||
check_name = f"{check_name} [{run_by_hash_num + 1}/{run_by_hash_total}]"
|
||||
|
||||
self.create_ci_logs_credentials()
|
||||
if not self.config_path.exists():
|
||||
logging.info("Do not use external logs pushing")
|
||||
|
Loading…
Reference in New Issue
Block a user