mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Export coverage to the CI database
This commit is contained in:
parent
fe952fb64c
commit
7662628393
@ -129,6 +129,19 @@ function setup_logs_replication
|
|||||||
debug_or_sanitizer_build=$(clickhouse-client -q "WITH ((SELECT value FROM system.build_options WHERE name='BUILD_TYPE') AS build, (SELECT value FROM system.build_options WHERE name='CXX_FLAGS') as flags) SELECT build='Debug' OR flags LIKE '%fsanitize%'")
|
debug_or_sanitizer_build=$(clickhouse-client -q "WITH ((SELECT value FROM system.build_options WHERE name='BUILD_TYPE') AS build, (SELECT value FROM system.build_options WHERE name='CXX_FLAGS') as flags) SELECT build='Debug' OR flags LIKE '%fsanitize%'")
|
||||||
echo "Build is debug or sanitizer: $debug_or_sanitizer_build"
|
echo "Build is debug or sanitizer: $debug_or_sanitizer_build"
|
||||||
|
|
||||||
|
# We will pre-create a table system.coverage_log.
|
||||||
|
# It is normally created by clickhouse-test rather than the server,
|
||||||
|
# so we will create it in advance to make it be picked up by the next commands:
|
||||||
|
|
||||||
|
clickhouse-client --query "
|
||||||
|
CREATE TABLE IF NOT EXISTS system.coverage_log
|
||||||
|
(
|
||||||
|
time DateTime,
|
||||||
|
test_name String,
|
||||||
|
coverage Array(UInt64)
|
||||||
|
) ENGINE = MergeTree ORDER BY test_name
|
||||||
|
"
|
||||||
|
|
||||||
# For each system log table:
|
# For each system log table:
|
||||||
echo 'Create %_log tables'
|
echo 'Create %_log tables'
|
||||||
clickhouse-client --query "SHOW TABLES FROM system LIKE '%\\_log'" | while read -r table
|
clickhouse-client --query "SHOW TABLES FROM system LIKE '%\\_log'" | while read -r table
|
||||||
|
Loading…
Reference in New Issue
Block a user