Repository navigation
Conversation
The test failed on the private sync CI of ClickHouse#96844 with one extra TIMEOUT_EXCEEDED line after the geohash_skipindex marker. `grep -o -m1` is line-limited, not match-limited: `-m1` stops after the first matching line and `-o` then prints every match on that line, so a line rendering the error code twice emits two output lines. The reference is a strict two-lines-per-case alternation, so that is an output mismatch. It is not a cancellation-timing flake. Each case emits exactly two lines in all three outcomes, and timing only changes the label text, so no timing effect can add a line; every `stopped promptly` marker passed on the failing run. I have not established which input rendered the code name twice, and the change is deliberately independent of that: the oracle becomes a boolean test, so the match count no longer matters. Both call sites in the file are changed, including the direct-baseline loop, which carries the same defect two functions below the reported line. The reference is unchanged, so nothing is relaxed: the assertion that a TIMEOUT_EXCEEDED was raised is identical and only the counting is removed. No bound is widened and no tag is added. `grep -ow -m1 ... | head -1` was rejected: the pipeline returns head's status, so the `|| echo` fallback silently stops firing and a missing timeout would print nothing, which is worse than the present bug.
Internal second-model reviewTwo independent review passes over
Also checked and clean: the test still fails if the fix is reverted, and reverting either call site |
Pre-PR validation gatea-i self-check
Validation runs: the test passes end to end, and 50 randomized repeats pass 50/50 with zero output |
|
cc @george-larionov, could you review this? It is a test-only fix: the oracle used |
|
Workflow [PR], commit [6ca5e91] Summary: ✅ AI ReviewSummaryThis PR fixes a flaky oracle in Final Verdict✅ No findings. |
CI finish ledger - 118ac8dOne failure, owned, not PR-caused.
Gate detail: (a) 0 check-runs queued or in_progress across all 174 (fully paginated); (b) Why this is not PR-caused, although it is a I searched for an existing fixing PR before creating an owner and found none: the open PRs matching this test name are unrelated changes that merely mention it in CI output. Session id: cron:our-pr-ci-monitor:20260808-183000 |
|
@groeneai check the fast test failure |
|
@PedroTadim The Fast test red is
It is the flake already tracked in #109265, the one you handed to @ nickitat on 3 August for the cancel-semantics decision. I checked the mechanism against this run's own server log rather than matching on the test name: two follower replicas sit in Independent history, last 14 days: 5 further failures on four other pull requests, one of those through the merge queue. No fix PR exists (searched open and closed, with a control query), so this red will not clear on a re-run and it is not this PR's to clear. I have not merged master or re-run CI to hide it. Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=113943&sha=118ac8d29731210ea5cff8a687061689ed09b5a7&name_0=PR&name_1=Fast%20test |
Build profile diff (arm_release)Comparing Binary sizes
Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction. Compile time of recompiled translation units
|
CI finish ledger - 6ca5e91Every failure below has an owner: a fixing PR (ours or external), or a full-effort fix task CI is fully finished on this commit with no failed checks - every dispatched job Session id: cron:our-pr-ci-monitor:20260809-170000 |
|
I am removing the test myself |
Related: #96844
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Reported on the private sync CI of #96844: the test produced one extra
TIMEOUT_EXCEEDEDline after thegeohash_skipindexmarker.Root cause: a test-oracle defect, not a cancellation-timing flake.
grep -o -m1is line-limited, not match-limited:-m1stops after the first matching line, and-othen prints every match on that line. A line that renders the error code twice therefore emits two output lines, against a.referencethat is a strict two-lines-per-case alternation.Timing cannot produce that symptom: each case emits exactly two lines in all three outcomes (timeout under bound, over bound, no timeout) and timing only changes the label text. The only path emitting a bare token is the
grep -o, so it printed two lines for one query. Everystopped promptlymarker passed on the failing run, so cancellation itself worked.The change replaces the value-printing oracle with a boolean one at both call sites in the file, making the match count irrelevant:
.referenceis unchanged: the assertion (aTIMEOUT_EXCEEDEDwas raised) is identical, and only the counting is removed. No bound is widened and no tag is added.I have not established which input rendered the code name twice; the fix is deliberately independent of that.
Two sibling cancellation tests carry the same idiom. This PR stays at one file and one concern; I am happy to sweep the class separately if you want it.
Validation. GNU grep 3.11: a doubly-rendered line gives 2 lines before and 1 after; a single render and a no-match both give 1 in each form, so the fallback still fires. Reverting either call site alone reddens only that site.
[ OK ]end to end, and 50/50 randomized runs pass.