Repository navigation
Conversation
The backport of PR ClickHouse#89429 to 25.8 (PR ClickHouse#92409) cherry-picked the test reference from master, which uses the post-fix indentation for `Ranges:` (6 spaces) produced by `ReadFromMergeTree::describeIndexes`. However, 25.8 was branched before commit `ed65cfdd3fc` ("Fix indent for Ranges output in EXPLAIN indexes=1", Sep 23 2025), so its C++ code still emits `Ranges:` at the double indent (8 spaces) — consistent with the reference in `01786_explain_merge_tree.reference` on 25.8. Result: every `Stateless tests (amd_asan, distributed plan, parallel, 1/2)` run on 25.8 failed after the backport merged, because actual output (8 spaces) did not match the reference (6 spaces). 23 consecutive master- branch 25.8 runs and 27 backport-PR runs were affected since 2026-03-31. This fixes the reference to match 25.8's C++ output (8 spaces), the minimal fix consistent with the other 25.8 reference files that already expect 8 spaces (e.g. `01786_explain_merge_tree.reference`). Not a backport of Azat's `ed65cfdd3fc` because that would require regenerating many reference files; the minimal fix is sufficient and safer for a release branch.
Pre-PR validation gate (TASK.md Phase 4 Step 9)(a) Deterministic repro? Yes. The test fails 100% of the time (23/23) on (b) Root cause explained? The backport of PR #89429 to 25.8 (PR #92409) (c) Fix matches root cause? Yes. The fix directly aligns the (d) Test intent preserved? Yes. The test still verifies the same invariant (e) Both directions demonstrated? CIDB documents the "fails without fix" (f) Fix is general, not a narrow patch? N/A — this isn't a code bug, |
|
cc @KochetovNicolai — could you review this? It fixes a whitespace mismatch between your 25.8 backport of PR #89429 (PR #92409) and 25.8's pre-indent-fix |
|
@groeneai do not try to fix flaky tests in release branches. And do not try to backport any changes manually - for that, we have a special label |
The backport of PR #89429 to 25.8 (PR #92409, merged 2026-03-31) cherry-picked
the test reference file from master. But master's reference uses the post-fix
indentation for
Ranges:(6 spaces) produced byReadFromMergeTree::describeIndexes, whereas 25.8 was branched beforecommit ed65cfd ("Fix indent for Ranges output in EXPLAIN indexes=1",
2025-09-23). So 25.8's C++ still emits
Ranges:at the double indent(8 spaces), consistent with every other 25.8 reference file that prints
Ranges:(e.g.01786_explain_merge_tree.reference).Impact
Every
Stateless tests (amd_asan, distributed plan, parallel, 1/2)run on25.8 has failed 100% (23/23 on 25.8 tip, 27/27 on 25.8 backport PRs) since
PR #92409 merged on 2026-03-31 — 50 total CI failures across 19+ backport
PRs to 25.8 in the last ~17 days. CIDB:
Fix
Change the one
Ranges:line in03707_set_index_bad_get_null_bug.referencefrom 6 to 8 leading spaces so it matches what 25.8's
describeIndexesactuallyemits. Minimal, consistent with 25.8's other references. Not backporting
ed65cfdd3fcitself because that would require regenerating many referencefiles on a release branch.
Verified
describeIndexesprintsprefix << indent << indent << "Ranges: "= 4 + 2 + 2 = 8 leading spaces.
prefix << indent << "Ranges: "= 4 + 2 = 6.01786_explain_merge_tree.referencealready uses8 leading spaces for
Ranges:— this PR brings03707in line.Cron session: cron:clickhouse-ci-task-worker:20260417-091500
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix reference for
03707_set_index_bad_get_null_bugon 25.8 (not required for changelog).Documentation entry for user-facing changes