mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Trying to add debug info
This commit is contained in:
parent
a6e55b00e3
commit
84bccb83bd
@ -123,7 +123,12 @@ function run_tests()
|
|||||||
export -f run_tests
|
export -f run_tests
|
||||||
timeout "$MAX_RUN_TIME" bash -c run_tests ||:
|
timeout "$MAX_RUN_TIME" bash -c run_tests ||:
|
||||||
|
|
||||||
./process_functional_tests_result.py || echo -e "failure\tCannot parse results" > /test_output/check_status.tsv
|
echo "Files in current directory"
|
||||||
|
ls -la ./
|
||||||
|
echo "Files in root directory"
|
||||||
|
ls -la /
|
||||||
|
|
||||||
|
/process_functional_tests_result.py || echo -e "failure\tCannot parse results" > /test_output/check_status.tsv
|
||||||
|
|
||||||
grep -Fa "Fatal" /var/log/clickhouse-server/clickhouse-server.log ||:
|
grep -Fa "Fatal" /var/log/clickhouse-server/clickhouse-server.log ||:
|
||||||
|
|
||||||
|
@ -115,7 +115,12 @@ export -f run_tests
|
|||||||
|
|
||||||
timeout "$MAX_RUN_TIME" bash -c run_tests ||:
|
timeout "$MAX_RUN_TIME" bash -c run_tests ||:
|
||||||
|
|
||||||
./process_functional_tests_result.py || echo -e "failure\tCannot parse results" > /test_output/check_status.tsv
|
echo "Files in current directory"
|
||||||
|
ls -la ./
|
||||||
|
echo "Files in root directory"
|
||||||
|
ls -la /
|
||||||
|
|
||||||
|
/process_functional_tests_result.py || echo -e "failure\tCannot parse results" > /test_output/check_status.tsv
|
||||||
|
|
||||||
clickhouse-client -q "system flush logs" ||:
|
clickhouse-client -q "system flush logs" ||:
|
||||||
|
|
||||||
|
@ -94,7 +94,12 @@ def process_results(result_folder, server_log_path):
|
|||||||
additional_files = additional_files + [os.path.join(server_log_path, f) for f in server_log_files]
|
additional_files = additional_files + [os.path.join(server_log_path, f) for f in server_log_files]
|
||||||
|
|
||||||
status_path = os.path.join(result_folder, "check_status.tsv")
|
status_path = os.path.join(result_folder, "check_status.tsv")
|
||||||
logging.info("Found test_results.tsv")
|
if os.path.exists(status_path):
|
||||||
|
logging.info("Found check_status.tsv")
|
||||||
|
else:
|
||||||
|
logging.info("Files in result folder %s", os.listdir(result_folder))
|
||||||
|
raise Exception("File check_status.tsv not found")
|
||||||
|
|
||||||
with open(status_path, 'r', encoding='utf-8') as status_file:
|
with open(status_path, 'r', encoding='utf-8') as status_file:
|
||||||
status = list(csv.reader(status_file, delimiter='\t'))
|
status = list(csv.reader(status_file, delimiter='\t'))
|
||||||
|
|
||||||
@ -103,6 +108,13 @@ def process_results(result_folder, server_log_path):
|
|||||||
state, description = status[0][0], status[0][1]
|
state, description = status[0][0], status[0][1]
|
||||||
|
|
||||||
results_path = os.path.join(result_folder, "test_results.tsv")
|
results_path = os.path.join(result_folder, "test_results.tsv")
|
||||||
|
|
||||||
|
if os.path.exists(results_path):
|
||||||
|
logging.info("Found test_results.tsv")
|
||||||
|
else:
|
||||||
|
logging.info("Files in result folder %s", os.listdir(result_folder))
|
||||||
|
raise Exception("File test_results.tsv not found")
|
||||||
|
|
||||||
with open(results_path, 'r', encoding='utf-8') as results_file:
|
with open(results_path, 'r', encoding='utf-8') as results_file:
|
||||||
test_results = list(csv.reader(results_file, delimiter='\t'))
|
test_results = list(csv.reader(results_file, delimiter='\t'))
|
||||||
if len(test_results) == 0:
|
if len(test_results) == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user