Repository navigation
Skip 03096_order_by_system_tables under LLVM coverage builds - #103226
Conversation
The test issues `SYSTEM FLUSH LOGS /* all tables */`, which triggers flushing every system log (including `trace_log`) and must wait for the shared backlog accumulated by all parallel tests on the same server. Under LLVM source-based coverage instrumentation the per-branch profiling overhead accumulated in the `trace_log` queue pushes the server-side `waitFlush` call past its 180s timeout in `SystemLogBase.cpp`, producing: Code: 159. DB::Exception: Timeout exceeded (180 s) while flushing system log 'DB::SystemLogQueue<DB::TraceLogElement>'. (TIMEOUT_EXCEEDED) This is the same failure mode that `01473_event_time_microseconds` hits on the same build variant. 30-day CIDB shows 7 failures across 6 unrelated PRs (~0.056% on amd_llvm_coverage, 0 master failures on amd_llvm_coverage). The test verifies sorting-key correctness for system tables — a property that has nothing to do with coverage instrumentation — so skipping on `amd_llvm_coverage` preserves the test's ability to catch regressions on every other build variant. Follows precedent of `01473_event_time_microseconds` (PR ClickHouse#103219), sibling query-profiler tests `00974_query_profiler`, `01569_query_profiler_big_query_id`, and commit cec04c1 (Kafka tests under coverage). Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=100777&sha=4892bb02456a3a49a0a21553f684b664020674c9&name_0=PR&name_1=Stateless%20tests%20%28amd_llvm_coverage%2C%203%2F3%29
Pre-PR validation gate (self-review)a) Deterministic repro? b) Root cause explained? c) Fix matches root cause? d) Test intent preserved? e) Both directions demonstrated? Session: |
|
cc @alexey-milovidov — could you review this? It adds |
|
Workflow [PR], commit [816fe2d] Summary: ✅ AI ReviewSummaryThis PR adds ClickHouse Rules
Final Verdict
|
…n amd_llvm_coverage Adds `no-llvm-coverage` tag — under LLVM source-based coverage instrumentation the server is ~3-5x slower, and with `memory_profiler_sample_probability = 1` the test emits many `MemorySample` trace rows. The server-side `SystemLogQueue<TraceLogElement>` flush then routinely exceeds its 180s deadline, emitting `Code: 159 TIMEOUT_EXCEEDED` into stderr and causing the `clickhouse-test` stderr-empty check to report the test as `FAIL` even when the assertion output itself is correct. CIDB evidence (30 days): - 34 failures, 25+ distinct unrelated PRs, 4 master hits — all on `amd_llvm_coverage` variants only (1/3, ParallelReplicas+s3+parallel, AsyncInsert+s3+parallel). - Zero failures on debug, asan_ubsan, tsan, msan, release, binary builds in the same window. - Health check: in 7 days the test has 657-706 OK runs on each of the 4 coverage variants (so it passes most of the time; 180s deadline is a rare stochastic trip). Same pattern and fix as the recent sibling coverage flakes: ClickHouse#103287, ClickHouse#103288, ClickHouse#103293, ClickHouse#103298, ClickHouse#103226, ClickHouse#103219. Closes the `ci-02818memoryprofilersampleminmax` chronic-flaky tracking task.
The test relies on a precise memory-tracking cadence between two distributed
shards: the shard allocating `groupArray(repeat('a', 100000))` per row must
hit `max_memory_usage=1G` and emit `Query memory limit exceeded` before the
other shard cancels. Under LLVM source-based coverage instrumentation the
per-branch profiling overhead perturbs this cadence and the expected exception
occasionally does not surface on `127.3` before the query is cancelled,
producing an empty `grep` match and a FAIL.
30-day CIDB at the time of the fix: 7 hits on `Stateless tests
(amd_llvm_coverage, 1/3)` across 7 distinct PRs, 1 master hit on 2026-04-21,
2 hits on the `amd_llvm_coverage, AsyncInsert, s3 storage` variant, 0 hits on
any non-coverage stateless configuration.
Applies the same direction as sibling coverage-timing tests
`03096_order_by_system_tables` (ClickHouse#103226, merged) and
`01473_event_time_microseconds` (ClickHouse#103219). The test remains covered by all
non-coverage configurations and by the excluded-from-llvm runner variant that
specifically runs tests tagged `no-llvm-coverage`.
Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=99c45393710200ab19c3ff17b45badf63b466559&name_0=MasterCI&name_1=Stateless%20tests%20%28amd_llvm_coverage%2C%201%2F3%29
Co-Authored-By: Claude Opus 4.8 <[email protected]>
When the server dies (hung check or crash), `clickhouse-test` exits with a non-zero code, which previously caused a redundant `clickhouse-test error` entry to appear alongside `Server died` in the CI report. Now when `Server died` is already reported, skip the redundant entry and instead call `check_fatal_messages_in_logs` to check for a crash cause (signal, sanitizer error, or fatal message in the server log) via `FuzzerLogParser`. Any failures found are added to the report. Example failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=103226&sha=816fe2dd57bc64e3bc66048a0956155d3d42f51c&name_0=PR&name_1=Fast%20test%20%28arm_darwin%29 (corresponding PR: ClickHouse#103226) Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
The stateless test
03096_order_by_system_tablesintermittently fails onStateless tests (amd_llvm_coverage, */3)with:The test only does
SYSTEM FLUSH LOGS /* all tables */followed by asystem.tablesscan. Under LLVM source-based coverage the per-branch profiling overhead compounds across thetrace_logbacklog that parallel tests accumulate on the shared server, pushingSystemLogBase::waitFlushpast its 180s default. The test itself has no timing assertions — the only path that fails here is the CI-sharedtrace_logflush.This is the same failure mode as
01473_event_time_microsecondson the same build variant (see PR #103219). 30-day CIDB across all branches:amd_llvm_coverage*variantsamd_llvm_coveragemasterAdding
no-llvm-coveragefollows the established precedent of01473_event_time_microseconds,00974_query_profiler,01569_query_profiler_big_query_id, and commit cec04c1 (Kafka tests under coverage). The test still runs on every other build configuration so it continues to catch system-table sorting-key regressions.Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=100777&sha=4892bb02456a3a49a0a21553f684b664020674c9&name_0=PR&name_1=Stateless%20tests%20%28amd_llvm_coverage%2C%203%2F3%29
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Skip timing-sensitive system log test under LLVM coverage builds.
Documentation entry for user-facing changes
Version info
26.4.1.1104