Repository navigation
Conversation
The test wraps `clickhouse-client --database nonexistent` in `timeout 5` and greps for `UNKNOWN_DATABASE`. On `amd_llvm_coverage` builds under parallel test load the coverage-instrumented client can take longer than 5 s to start and emit the error, causing the grep to find nothing and the test to print `FAIL`. 30-day CIDB: all 19 failures are `amd_llvm_coverage` variants; 0 on regular builds. Same timing pattern as 04078_native_protocol_input_validation (PR ClickHouse#103210), where the fix was to raise a 5 s socket timeout to 60 s. Raising `timeout 5` to `timeout 60` keeps the test fast on happy paths (runs in milliseconds normally) while giving enough headroom for slow CI startup, and still catches a genuinely hung client. Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=1b90aee2d24bd44c14d55c9b27d06012177a1bb6&name_0=MasterCI&name_1=Stateless%20tests%20%28amd_llvm_coverage%2C%201%2F3%29
Collaborator
Author
Pre-PR validation gate
Session: |
Collaborator
Author
|
cc @alexey-milovidov — same pattern and fix direction as merged #103226 and open #103210 (LLVM-coverage timing). Could you review? |
This was referenced Apr 21, 2026
Contributor
|
Workflow [PR], commit [25f3c49] Summary: ✅ AI ReviewSummaryThis PR updates ClickHouse Rules
Final VerdictStatus: ✅ Approve |
1 task
evillique
approved these changes
Apr 23, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Apr 23, 2026
Merged
1 task
subkanthi
pushed a commit
to subkanthi/ClickHouse
that referenced
this pull request
Apr 24, 2026
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
03258_nonexistent_db.shwrapsclickhouse-client --database nonexistentintimeout 5and greps forUNKNOWN_DATABASE. Onamd_llvm_coveragebuilds under parallel test load the coverage-instrumented client can take longer than 5 s to start and emit the error, thetimeoutkills it first,grepfinds nothing and the test printsFAIL.The
timeoutis only a safety net against a genuinely stuck client; the happy path completes in milliseconds. Raising it to 60 s accommodates LLVM coverage overhead while still catching a real hang, and preserves coverage of this client code path (no newno-*tag).30-day CIDB: all 19 failures are
amd_llvm_coverage*variants, including 3 master hits on 2026-04-21. 0 failures on regular builds.This is the same symptom and fix direction as
04078_native_protocol_input_validationin #103210, which raised a 5 s socket timeout to 60 s for the same reason.Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=1b90aee2d24bd44c14d55c9b27d06012177a1bb6&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.5.1.36