Repository navigation
Disable 04669_window_partitions_independently under MSan - #117833
alexey-milovidov merged 1 commit into
Conversation
The test (added in ClickHouse#114783) has 16 scenarios that each do INSERT + EXPLAIN, and the MSan slowdown pushes it past the per-test timeout when metadata is in Keeper and data is on S3. It was killed at 600.16 s in the private sync run of ClickHouse#100371. Adding `no-msan` since the test exercises pipeline planning, not memory correctness, so MSan adds little signal. This is the same change `a0c26d8ca5e65ca69a0b9115669d5ce45a8983ce` made to the sibling `04218_limit_by_partitions_independently`, and the same change ClickHouse#115050 makes to 307 tests including `04411_distinct_partitions_independently`. This test merged on 2026-08-24, after that pull request's set was computed, which is why it is absent from it; under ClickHouse#115050's own published criterion it is 1327 runs at 63.7 s mean, above its 60 s threshold. It has never timed out on public CI: 2044 executed runs on master since it merged, 0 failures, and the heaviest public variant peaks at 124 s of the 600 s budget. Only MSan is excluded, so ASan+UBSan, TSan and the s3-storage and Keeper-metadata arms keep running the test, stress-test jobs ignore `no-<build>` tags, and `.reference` is byte-identical. I did not also add `no-tsan`, `no-asan` or `no-s3-storage`, which is what the sibling ended up carrying, because no non-MSan arm is observed failing. CI report (private sync run of ClickHouse#100371): https://github.com/ClickHouse/clickhouse-private/actions/runs/33556271270/job/100030241449 Related: ClickHouse#100371 Related: ClickHouse#115050 Co-Authored-By: Claude Opus 5 <[email protected]>
Internal second-model reviewTwo cold passes over this diff: 6 findings, 5 applied, 1 declined. All five applied findings were in the description rather than the code, so the code is byte-identical to the first pass: three measured numbers were wrong and are corrected (the heaviest public run time, the Declined, noted not blocking: backticking |
|
Workflow [PR], commit [4361953] Summary: ✅ AI ReviewSummaryThis PR adds a Findings
Final VerdictChanges requested: the skip should match the failing CI dimension instead of removing all MSan coverage without stronger evidence. |
|
cc @nihalzp, could you review this? It tags |
| @@ -1,4 +1,5 @@ | |||
| -- Tags: long, no-random-settings, no-random-merge-tree-settings | |||
| -- Tags: long, no-msan, no-random-settings, no-random-merge-tree-settings | |||
There was a problem hiding this comment.
The only concrete timeout evidence in the PR is the private amd_msan, distributed cache, meta in keeper, s3 storage shard, but this tag disables the test in every MSan job. tests/clickhouse-test already has a dedicated no-distributed-cache gate, so no-msan drops sanitizer coverage for the normal planner path even though the same description says public MSan runs stay well under the timeout. Can we scope the skip to no-distributed-cache here unless there is data showing non-distributed cache MSan variants are also non-actionable?
There was a problem hiding this comment.
no-distributed-cache would not cover this failure mode.
The precedent this change follows is a0c26d8ca5e65ca69a0b9115669d5ce45a8983ce, which added the same tag and a byte-identical rationale line to the sibling 04218_limit_by_partitions_independently for the same pathology. The CI report named in its commit message is Stateless tests (amd_msan, meta in keeper, s3 storage, parallel, 2/2), a configuration with no distributed cache, so no-distributed-cache would have left that arm armed. That gate (tests/clickhouse-test:3042) has existed since 161e794618a86f3 (2024-07-29), about 22 months earlier, so the narrower option was available and was not the one chosen. Master's 04218 now reads long, no-tsan, no-asan, no-msan, no-s3-storage, so this family moved wider rather than narrower.
On the axis: no-distributed-cache is a fair cost lever when the cache is itself the cost driver, as in 04510_distributed_final_many_partitions.sh (84214a772cb9542, "each tiny part commit costs over a second ... through the cache"). Note that file keeps its debug-and-sanitizer cost on a separate tag rather than folding it into no-distributed-cache. Where a test has both problems it carries both tags: 13 of the 48 users of no-distributed-cache also carry a sanitizer tag, for instance 01201_read_single_thread_in_order.sql (long, no-msan, no-distributed-cache). Here the cache is not the driver, since the sibling blew the budget with the cache absent.
You are right that public MSan stays under budget (119 s max on the public form of the named shard, 152 s across all public MSan variants, against 600 s) and that no-distributed-cache would cost 0 executed public runs against 1500 for no-msan over 30 days. That is why I stopped at no-msan rather than the sibling's wider set: both arms observed failing in this family are amd_msan, so it is the smallest tag covering both. The only other tag covering both is no-s3-storage, at 3526 runs.
|
@groeneai should also disable the test under other slow sanitizers? |
|
@alexey-milovidov should the test be also disabled for other sanitizers such as tsan? That one may be slower than msan? |
|
MSan is the slowest and much slower than the others. |
|
Measured for this test alone, public CIDB over 30 days, true master only ( MSan 253 / 0 / 64.8 s / 124.0 s. TSan 520 / 0 / 26.9 s / 79.8 s. ASan+UBSan 534 / 0 / 17.0 s / 51.9 s. debug 537 / 0 / 5.7 s / 34.5 s. binary 269 / 0 / 2.6 s / 15.2 s. MSan averages 2.4x TSan and 3.8x ASan on this file, so the answer above holds for it specifically. The only public failures this test has are 33 rows from PR 114783, which added it: all on 2026-08-14, all That is why the tag is sized to MSan: |
9c1ba1d
Related: #100371
Related: #115050
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Tag
04669_window_partitions_independentlywithno-msan: it exceeds the per-test timeout under Memory Sanitizer when metadata is in Keeper and data is on S3.Description
In the private sync run of #100371 this test was killed at
[ FAIL ] 600.16 sec. Reason: Timeout!onStateless tests (amd_msan, distributed cache, meta in keeper, s3 storage, parallel, 2/3)(job: https://github.com/ClickHouse/clickhouse-private/actions/runs/33556271270/job/100030241449). It has never timed out on public CI: 2044 executed runs on master since it merged, 0 failures. The public form of that shard peaks at 119 s of the 600 s budget (n=131) and the heaviest public shard of any kind at 152 s (n=1328), both MSan.The test is statement-heavy and data-trivial: 16 scenarios, 16
CREATE TABLE, 30INSERT, 32EXPLAIN, largest insertnumbers_mt(480). Keeper metadata plus S3 data turns each into a network round trip, and MSan multiplies it again. Every assertion is anEXPLAINline filter or acityHash64equality, so it exercises query planning, not memory correctness.This is the same change #115050 makes to 307 tests, including the sibling
04411_distinct_partitions_independently.04669merged on 2026-08-24, after that PR's set was computed; under #115050's own criterion it is 1328 runs at 63.7 s mean, above the 60 s threshold.a0c26d8ca5e65ca69a0b9115669d5ce45a8983cemade the identical change to04218_limit_by_partitions_independentlyfor the same private-configuration timeout.no-msanis the smallest tag covering every arm observed failing:no-s3-storagecovers them too but costs 3508 executed runs against 1493 over 30 days, andno-distributed-cachewould be free yet misses the sibling's failing arm, which has none. ASan+UBSan, TSan, the s3-storage shards and four non-MSan flaky checks keep running the test, stress jobs ignoreno-<build>tags, and.referenceis byte-identical.I found no open issue for it.
04669_creating_set_partitions_independentlyaverages 119.9 s under the same criterion and is in neither PR, but it has no master failures, so I left it alone. Happy to fold this into #115050 instead if you would rather keep it in one place; your call.Workflow [PR]
Sync PR [sync-upstream/pr/117833]