From f6f459c12edfc66afd57f5053af06b539b59eef1 Mon Sep 17 00:00:00 2001 From: Alexander Tokmakov Date: Tue, 14 Feb 2023 13:12:53 +0100 Subject: [PATCH] fix stress tests statuses --- docker/test/stateful/run.sh | 6 +++--- docker/test/stateless/run.sh | 6 +++--- docker/test/stress/run.sh | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docker/test/stateful/run.sh b/docker/test/stateful/run.sh index 80a43799914..e7a400b8216 100755 --- a/docker/test/stateful/run.sh +++ b/docker/test/stateful/run.sh @@ -155,7 +155,7 @@ if [[ -n "$USE_DATABASE_REPLICATED" ]] && [[ "$USE_DATABASE_REPLICATED" -eq 1 ]] sudo clickhouse stop --pid-path /var/run/clickhouse-server2 ||: fi -rg -Fa "Fatal" /var/log/clickhouse-server/clickhouse-server.log ||: +rg -Fa "" /var/log/clickhouse-server/clickhouse-server.log ||: zstd --threads=0 < /var/log/clickhouse-server/clickhouse-server.log > /test_output/clickhouse-server.log.zst ||: # FIXME: remove once only github actions will be left @@ -166,8 +166,8 @@ if [[ -n "$WITH_COVERAGE" ]] && [[ "$WITH_COVERAGE" -eq 1 ]]; then tar --zstd -c -h -f /test_output/clickhouse_coverage.tar.zst /profraw ||: fi if [[ -n "$USE_DATABASE_REPLICATED" ]] && [[ "$USE_DATABASE_REPLICATED" -eq 1 ]]; then - rg -Fa "Fatal" /var/log/clickhouse-server/clickhouse-server1.log ||: - rg -Fa "Fatal" /var/log/clickhouse-server/clickhouse-server2.log ||: + rg -Fa "" /var/log/clickhouse-server/clickhouse-server1.log ||: + rg -Fa "" /var/log/clickhouse-server/clickhouse-server2.log ||: zstd --threads=0 < /var/log/clickhouse-server/clickhouse-server1.log > /test_output/clickhouse-server1.log.zst ||: zstd --threads=0 < /var/log/clickhouse-server/clickhouse-server2.log > /test_output/clickhouse-server2.log.zst ||: # FIXME: remove once only github actions will be left diff --git a/docker/test/stateless/run.sh b/docker/test/stateless/run.sh index 8e7d0ef55b9..ade59224035 100755 --- a/docker/test/stateless/run.sh +++ b/docker/test/stateless/run.sh @@ -169,7 +169,7 @@ if [[ -n "$USE_DATABASE_REPLICATED" ]] && [[ "$USE_DATABASE_REPLICATED" -eq 1 ]] sudo clickhouse stop --pid-path /var/run/clickhouse-server2 ||: fi -rg -Fa "Fatal" /var/log/clickhouse-server/clickhouse-server.log ||: +rg -Fa "" /var/log/clickhouse-server/clickhouse-server.log ||: zstd --threads=0 < /var/log/clickhouse-server/clickhouse-server.log > /test_output/clickhouse-server.log.zst & # Compress tables. @@ -215,8 +215,8 @@ fi tar -chf /test_output/coordination.tar /var/lib/clickhouse/coordination ||: if [[ -n "$USE_DATABASE_REPLICATED" ]] && [[ "$USE_DATABASE_REPLICATED" -eq 1 ]]; then - rg -Fa "Fatal" /var/log/clickhouse-server/clickhouse-server1.log ||: - rg -Fa "Fatal" /var/log/clickhouse-server/clickhouse-server2.log ||: + rg -Fa "" /var/log/clickhouse-server/clickhouse-server1.log ||: + rg -Fa "" /var/log/clickhouse-server/clickhouse-server2.log ||: zstd --threads=0 < /var/log/clickhouse-server/clickhouse-server1.log > /test_output/clickhouse-server1.log.zst ||: zstd --threads=0 < /var/log/clickhouse-server/clickhouse-server2.log > /test_output/clickhouse-server2.log.zst ||: # FIXME: remove once only github actions will be left diff --git a/docker/test/stress/run.sh b/docker/test/stress/run.sh index 78f45667a15..29c65d1840e 100644 --- a/docker/test/stress/run.sh +++ b/docker/test/stress/run.sh @@ -718,7 +718,7 @@ mv /var/log/clickhouse-server/stderr.log /test_output/ # Write check result into check_status.tsv # Try to choose most specific error for the whole check status -clickhouse-local --structure "test String, res String" -q "SELECT 'failure', test FROM table WHERE res != 'OK' order by +clickhouse-local --structure "test String, res String, time Nullable(Float32), desc String" -q "SELECT 'failure', test FROM table WHERE res != 'OK' order by (test like 'Backward compatibility check%'), -- BC check goes last (test like '%Sanitizer%') DESC, (test like '%Killed by signal%') DESC, @@ -732,7 +732,7 @@ clickhouse-local --structure "test String, res String" -q "SELECT 'failure', tes (test like '%Error message%') DESC, (test like '%previous release%') DESC, rowNumberInAllBlocks() -LIMIT 1" < /test_output/test_results.tsv > /test_output/check_status.tsv +LIMIT 1" < /test_output/test_results.tsv > /test_output/check_status.tsv || echo "failure\tCannot parse test_results.tsv" > /test_output/check_status.tsv [ -s /test_output/check_status.tsv ] || echo -e "success\tNo errors found" > /test_output/check_status.tsv # Core dumps