Repository navigation
Conversation
`01103_check_cpu_instructions_at_startup` and `03590_simdjson_fallback` both run `clickhouse-local` under `qemu-x86_64-static`. CPU emulation is purely interpreted, so each invocation is CPU-bound. When other parallel tests on the same runner saturate the CPU, qemu interpretation gets time-sliced and per-call wall time can grow by 100x or more. `01103` makes 5 sequential qemu calls, so a single slow run easily exceeds the 600s default test timeout. Over the last 60 days on `Stateless tests (amd_binary_excluded_from_llvm)`, the test had 14 timeouts at 600s against 5567 passing runs (avg 5s, p95 6.2s). The sibling `03590_simdjson_fallback` shows the same shape (15 timeouts at 600s) from its single qemu call. Use the same convention as `00097_long_storage_buffer_race_condition.sh` (`Tag no-parallel: FIXME start to timeout on bigger machines under high load`). The tag only changes scheduling: each test still runs the exact same qemu invocations and validates the same outputs. Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=103706&sha=ebef332dc9d425725e1fe4f906a4e52de719522c&name_0=PR&name_1=Stateless%20tests%20%28amd_binary_excluded_from_llvm%29
|
Pre-PR validation gate (session a) Deterministic repro? Partial. The failure is environmental (CPU contention on a CI runner), so it cannot be triggered on demand on a machine that is not under heavy load. CIDB shows the failure shape unambiguously: 14 timeouts at exactly 600s on b) Root cause explained? c) Fix matches root cause? Yes. d) Test intent preserved? Yes. The tests run the exact same qemu invocations and validate the same outputs; no assertions or settings were modified. Only the test scheduler placement changed. e) Both directions demonstrated? Indirect. I cannot easily reproduce the contention-induced 600s timeout on a 32-CPU host (only ~1.3x slowdown observed under 32
f) Fix is general, not a narrow patch? Yes. I grep'd |
|
cc @alexey-milovidov — could you take a look? You have been the canonical maintainer of these qemu-based tests (#95864, #96592, #96696). Test-only change, just adds |
|
Workflow [PR], commit [5a7ec6f] Summary: ✅ AI ReviewSummaryThis PR updates two qemu-based stateless shell tests to include Final Verdict
|
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 388 line(s), 19 function(s) across 130 file(s) · Details Top files
|
|
I'm planning on removing these tests in #105019, so keeping this as draft for now and I'll close it once that one is merged |
The two
qemu-x86_64-staticbased tests,01103_check_cpu_instructions_at_startupand03590_simdjson_fallback, occasionally time out at the 600s default test timeout onStateless tests (amd_binary_excluded_from_llvm).qemu user-mode emulation is purely interpreted, so each
clickhouse-localinvocation under qemu is CPU-bound. When other parallel tests on the same CI runner saturate the CPU, the qemu thread gets time-sliced and per-call wall time can grow by 100x or more.01103makes 5 sequential qemu calls, so even a moderate slowdown lands the whole test above the timeout.Over the last 60 days on
Stateless tests (amd_binary_excluded_from_llvm):01103_check_cpu_instructions_at_startup03590_simdjson_fallbackAll failures are clean 600s timeouts; reruns pass (e.g. one master hit had 19/19 reruns green).
--diagnose-random-settingsconsistently reports "test also fails without randomized settings", confirming this is not a randomization issue.The fix follows the same convention used by
tests/queries/0_stateless/00097_long_storage_buffer_race_condition.sh:The
no-paralleltag only changes scheduling: each test still runs the exact same qemu invocations and validates the same outputs. There is no semantic change.Report URL (latest hit, PR #103706): https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=103706&sha=ebef332dc9d425725e1fe4f906a4e52de719522c&name_0=PR&name_1=Stateless%20tests%20%28amd_binary_excluded_from_llvm%29
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
CI: stabilize
qemu-x86_64-static-based stateless tests (01103_check_cpu_instructions_at_startup,03590_simdjson_fallback) by marking themno-parallel, eliminating sporadic 600s timeouts onamd_binary_excluded_from_llvmunder host CPU load.Documentation entry for user-facing changes