Repository navigation
Mark flaky 02932_refreshable_materialized_views_2 as long - #105156
alexey-milovidov merged 1 commit into
Conversation
This stateless test is fundamentally too heavy for the `Fast test` job's 60-second per-test budget. It exercises ~10 `SYSTEM WAIT VIEW` calls, multiple `REFRESH EVERY 1 SECOND` materialized views with `sleepEachRow(1)` source data, and ~11 polling loops, each of which spawns a fresh `clickhouse-client` process. CIDB shows the test passes 99% of `Fast test` runs (median 13s, p99 18s, max passing 48s) but the remaining ~1% spike past the 60s timeout under CI load and are killed at process-group level. The killed call site is typically the first `system wait view e;` after creating a `REFRESH EVERY 1 SECOND` view, where CI load delays scheduler progress past the budget. Recent timeline (chronic, not a regression): 30 days, `Fast test` job alone: 30 failures across 27 distinct PRs. 0 master failures with `head_ref = 'master'` (the 3 nominal master failures were `gh-readonly-queue/master/pr-*` merge-queue runs that also exercised `Fast test`). The `long` tag keeps this test out of `Fast test` (which is invoked with `--no-long` in `ci/jobs/fast_test.py`) while preserving coverage on all other stateless test configurations — including `amd_debug, parallel`, `amd_tsan, parallel`, `amd_msan, WasmEdge`, `amd_asan_ubsan, distributed plan`, `arm_binary`, `arm_asan_ubsan, azure`, `amd_llvm_coverage` and the various flaky-check variants. Each of these saw 500+ passing runs in 30 days with zero failures, so coverage on the actual test is not affected. A representative failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=100539&sha=ca588ac6d6dad5bfd61156a014a09e928cea8ed4&name_0=PR&name_1=Fast%20test (failure raised on ClickHouse#100539 by @alexey-milovidov) Co-Authored-By: Claude Opus 4.7 <[email protected]>
|
Pre-PR validation gate (session a) Deterministic repro? Yes — the test runner's tag parser is deterministic. b) Root cause explained? The test exercises ~10 c) Fix matches root cause? Yes. The mechanism is a budget mismatch between an intrinsically long comprehensive feature test and a 60-second quick-sanity-check job. The d) Test intent preserved? Yes. The test logic is byte-identical. Coverage is preserved on every other stateless test configuration — e) Both directions demonstrated? Yes. WITHOUT the tag: 30 f) Fix is general? N/A — this is a test classification change, not a code change. No bug class is being patched, so the "does the same bug exist elsewhere" question doesn't apply. Sibling test |
|
cc @al13n321 — could you review this? Test-only change: adds the |
|
Workflow [PR], commit [d9d3a22] Summary: ✅ AI ReviewSummaryThis PR reclassifies Final Verdict
|
Marks the stateless test
02932_refreshable_materialized_views_2.shwith thelongtag so theFast testjob (which is invoked with--no-longinci/jobs/fast_test.py) stops running it. The test still runs on every other stateless test configuration.The test exercises ~10
SYSTEM WAIT VIEWcalls, multipleREFRESH EVERY 1 SECONDmaterialized views withsleepEachRow(1)source data, and ~11 polling loops that each spawn a freshclickhouse-client. CIDB shows it passes 99% ofFast testruns (median 13s, p99 18s, max-passing 48s) but the remaining ~1% spike past the 60s per-test timeout under CI load and get killed at process-group level — typically on the firstsystem wait view e;after creating aREFRESH EVERY 1 SECONDview. Over the last 30 days: 30Fast testfailures across 27 distinct PRs; 0 failures onhead_ref = 'master'; the test passes 500+ times on every non-Fast testjob configuration we ran.Other stateless test jobs are unaffected —
amd_debug, parallel,amd_tsan, parallel,amd_msan, WasmEdge,amd_asan_ubsan, distributed plan,arm_binary,arm_asan_ubsan, azure,amd_llvm_coverage, and the variousflaky checkvariants all still cover this test.Issue: closes #97651 (auto-generated flaky test issue for this test name).
Reported on PR #100539 by @alexey-milovidov.
Representative failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=100539&sha=ca588ac6d6dad5bfd61156a014a09e928cea8ed4&name_0=PR&name_1=Fast%20test
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not for changelog.
Documentation entry for user-facing changes
Version info
26.5.1.721