Repository navigation
Skip 01514_distributed_cancel_query_on_error under LLVM coverage builds - #103288
alexey-milovidov merged 2 commits into
Conversation
Pre-PR validation gate (session cron:clickhouse-ci-task-worker:20260421-184500)
Sibling PR #103226 ( |
|
cc @alexey-milovidov — could you review? Same coverage-timing pattern and same |
|
Workflow [PR], commit [69da2f9] Summary: ✅ AI ReviewSummaryThis PR adds the Final Verdict✅ No review findings. |
…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]>
8964c3d to
dd4c6b1
Compare
|
Rebased onto current master and force-pushed to refresh CI. The previously red Session: cron:clickhouse-worker-slot-6:20260610-231759 |
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 345 line(s), 18 function(s) across 131 file(s) · Details Top files
|
|
CI finished on
|
The test relies on a precise memory-tracking cadence between two distributed shards: the shard allocating
groupArray(repeat('a', 100000))per row must hitmax_memory_usage=1Gand emitQuery memory limit exceededbefore the other shard cancels. Underamd_llvm_coveragesource-based coverage instrumentation the per-branch profiling overhead perturbs this cadence and the expected exception occasionally does not surface on127.3before the query is cancelled, producing an emptygrepmatch and aFAIL.Reproducibility check from the runner: Failed 0/3 reruns - intermittent, timing-dependent.
30-day CIDB
Stateless tests (amd_llvm_coverage, 1/3)- 7 hits across 7 distinct PRs, including 1 master hit on 2026-04-21Stateless tests (amd_llvm_coverage, AsyncInsert, s3 storage, parallel)- 2 hits on 2 distinct PRsFast test- 3 hits on 2 PRs, but those PRs modify unrelated code (PR author responsibility)Same pattern as merged / open sibling fixes
03096_order_by_system_tables(Skip 03096_order_by_system_tables under LLVM coverage builds #103226, merged) - sameno-llvm-coveragetag for a coverage-timing race01473_event_time_microseconds(Skip 01473_event_time_microseconds under LLVM coverage builds #103219) - same fix directionThe test remains covered by every non-coverage configuration and by the
excluded-from-llvmrunner variant that specifically runs tests taggedno-llvm-coverage, so the code path (max_memory_usageexception propagation across distributed shards) keeps its 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
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
N/A - test-only change.
Documentation entry for user-facing changes
Version info
26.8.1.371(included in26.8and later)