Repository navigation
Widen timing thresholds in 04053_merge_table_large_query_performance - #104275
alexey-milovidov merged 1 commit into
Conversation
The test asserts that the `Merge`-table query is no more than 10x slower than the equivalent single-table query, with a 10s `max_execution_time` on each timed run. Both bounds are too tight under parallel CI noise: the single-table run is fast (~250-400ms) so small absolute jitter produces large ratio swings, and 10s leaves no margin when the runner is loaded. Recent CI evidence (8 failures across 5 unrelated PRs + 1 master hit in 30 days) shows ratios ranging 10.3x-16x and merge-side timeouts of 11-13s — all just barely over the existing thresholds. Widen the ratio to 20x and the per-query `max_execution_time` to 30s. The original O(N * query_complexity) regression that this test was written to catch (issue ClickHouse#32465) would scale to ~100x-200x slowdown at N=200 underlying tables, so 20x still detects it comfortably. Session: cron:clickhouse-ci-task-worker:20260507-021500
|
Pre-PR validation gate (per worker policy):
Session: cron:clickhouse-ci-task-worker:20260507-021500 |
|
cc @alexey-milovidov — could you review this? It widens the 10x ratio and 10s timeout in 04053 to 20x / 30s after 8 documented failures across 5 unrelated PRs + 1 master hit, all just barely over the existing thresholds. Original |
|
Workflow [PR], commit [779607f] Summary: ✅ AI ReviewSummaryThis PR adjusts the flaky stateless performance test ClickHouse Rules
Final Verdict
|
The stateless test
04053_merge_table_large_query_performanceis chronically flaky. It asserts that aMerge-table query is no more than 10x slower than the equivalent single-table query, with a 10smax_execution_timeon each timed run. Both bounds are too tight under parallel CI noise: the single-table run is fast (~250-400ms) so small absolute jitter produces large ratio swings, and 10s leaves no margin when the runner is loaded.Recent CIDB evidence (30-day window, 8 failures across 5 unrelated PRs + 1 master hit on 2026-05-05) shows the test failing in two ways:
This PR widens the ratio threshold from 10x to 20x and the per-query
max_execution_timefrom 10s to 30s. The originalO(N * query_complexity)regression that this test catches (issue #32465) would scale to ~100x-200x slowdown atN=200underlying tables, so 20x still detects it comfortably and 30s easily catches the multi-tens-of-seconds runtime that bug produced.Sample failing CI report:
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes
Version info
26.5.1.412