Repository navigation
Conversation
The test hardcodes `curl --max-time 10` together with `max_execution_time=2` and relies on the server producing an `X-ClickHouse-Summary` header (with a non-zero `read_rows` value) and an `HTTP/1.1 408 Request Time-out` response within that 10-second window. Under `amd_llvm_coverage` builds, source-based coverage instrumentation slows the server enough that `curl` sometimes times out before any summary header is emitted. When that happens `READ_ROWS` becomes an empty string, and line 27's integer comparison `if [ "$READ_ROWS" -ne 0 ]` fails with `[: : integer expression expected`. The runner successfully reruns the test (`Failed 0 out of 3 reruns`), so this is a single-shot timing flake confined to coverage builds. CIDB confirms the pattern: over the last 30 days all 10 failures are on `amd_llvm_coverage` variants (`2/3`, `AsyncInsert s3 storage parallel`, `ParallelReplicas s3 storage parallel`), across 10 unrelated PRs, with zero master hits. Same failure family as 01473, 03096, 03258, 04078, and 01514. Add `no-llvm-coverage` to skip the test on coverage builds, matching the established pattern used by PRs ClickHouse#103287, ClickHouse#103288, ClickHouse#103219, and ClickHouse#103226.
|
cc @alexey-milovidov — could you review this? It adds the |
Pre-PR validation gate self-reviewa) Deterministic repro signal? Yes — the CIDB correlation is the deterministic signal: 100% of 30-day failures (10/10) are on b) Root cause explained? LLVM source-based coverage instrumentation slows the server's HTTP request handling. The test hardcodes c) Fix matches root cause? Yes. The test fundamentally depends on HTTP-level timing that the coverage build cannot meet; the correct action is to exclude it from coverage runs. Same conclusion reached for sibling tests 01473, 03096, 03258, 04078, and 01514. d) Test intent preserved? Yes. The test still runs on all normal build flavors (debug, release, asan, ubsan, tsan, msan, release with sanitizers) and continues to validate the e) Both directions demonstrated? The correlation is demonstrated in both directions via CIDB: 10 failures on coverage / 0 elsewhere without the fix; with the fix the test is no longer executed on coverage so the failure mode is eliminated, while non-coverage runs continue passing unchanged. Session: |
|
Workflow [PR], commit [05117a9] Summary: ❌
AI ReviewSummaryThis PR adds the 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.
|
Superseded by PR #103248 (merged 2026-04-25 by @alexey-milovidov), which already added Tracking task: 2026-04-21-ci-p2-02293httpheaderfullsummarywi (closing in parallel). |
The test hardcodes
curl --max-time 10together withmax_execution_time=2and relies on the server producing anX-ClickHouse-Summaryheader (with a non-zeroread_rowsvalue) and anHTTP/1.1 408 Request Time-outresponse within that 10-second window.Under
amd_llvm_coveragebuilds, source-based coverage instrumentation slows the server enough thatcurlsometimes times out before any summary header is emitted. When that happensREAD_ROWSbecomes an empty string, and line 27's integer comparisonif [ "$READ_ROWS" -ne 0 ]fails with[: : integer expression expected. The runner successfully reruns the test (Failed 0 out of 3 reruns), so this is a single-shot timing flake confined to coverage builds.CIDB evidence (30 days)
amd_llvm_coveragevariants (2/3,AsyncInsert s3 storage parallel,ParallelReplicas s3 storage parallel)Same failure family as 01473, 03096, 03258, 04078, and 01514.
Add
no-llvm-coverageto skip the test on coverage builds, matching the established pattern used by PRs #103287, #103288, #103219, and #103226.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not for changelog.
Documentation entry for user-facing changes