From b83b7a7ab7fe695ceaa1efdf400a2acaa76c2ff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Mar=C3=ADn?= Date: Thu, 22 Feb 2024 12:59:12 +0100 Subject: [PATCH] Stress test: Include the first sanitizer block message in the report --- docker/test/stateless/stress_tests.lib | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker/test/stateless/stress_tests.lib b/docker/test/stateless/stress_tests.lib index 6e1834d6cde..7cd3f704be6 100644 --- a/docker/test/stateless/stress_tests.lib +++ b/docker/test/stateless/stress_tests.lib @@ -214,8 +214,7 @@ function check_server_start() function check_logs_for_critical_errors() { # Sanitizer asserts - rg -Fa "==================" /var/log/clickhouse-server/stderr.log | rg -v "in query:" >> /test_output/tmp - rg -Fa "WARNING" /var/log/clickhouse-server/stderr.log >> /test_output/tmp + sed -n '/==================/,/^$/p' /var/log/clickhouse-server/stderr.log | rg -v "Logging" | rg -v "in query:" >> /test_output/tmp rg -Fav -e "ASan doesn't fully support makecontext/swapcontext functions" -e "DB::Exception" /test_output/tmp > /dev/null \ && echo -e "Sanitizer assert (in stderr.log)$FAIL$(head_escaped /test_output/tmp)" >> /test_output/test_results.tsv \ || echo -e "No sanitizer asserts$OK" >> /test_output/test_results.tsv