Repository navigation
Conversation
Pre-PR validation gate
Session id: cron:clickhouse-worker-slot-0:20260610-173000 |
|
cc @maxknv @leshikus — could you review this? CI-infra fix: route the heavy |
|
Workflow [PR], commit [e2a8a6f] Summary: ✅ AI ReviewSummaryThis PR adds a Final VerdictStatus: ✅ Approve |
|
CI fully finished (Finish Workflow passed) with no test failures. This PR (run heavy delta modules sequentially in the integration flaky check) is CI-clean. Ready for review. |
leshikus
left a comment
There was a problem hiding this comment.
- The flaky check itself is skipped on this PR, you better check your changes before committing them
- A separate, larger-memory job could run the 3 passes concurrently and off the critical path — clawing back that ~40 min.
- Parallel / sequential scheduling is guided by
TEST_CONFIGSfromci/jobs/scripts/integration_tests_configs.py, why not to set a test config instead of hardcoding the scheduling?
|
@leshikus thanks for the review. Addressing all three points. 1. Flaky check skipped on this PR. You are right that the
Both directions plus the normal-run invariant are pinned in 3. TEST_CONFIGS vs hardcoded scheduling. Good call, done in 2. Larger-memory job running the 3 passes concurrently. Real idea and it would claw back the ~40 min, but it is a bigger infra change (a new larger-memory runner pool plus workflow wiring, and the flaky check would then depend on that pool's availability). This PR is the minimal, reversible fix that removes the OOM driver now and is scoped to the |
Pre-PR validation gate (commit 9b6205f)
Session id: cron:clickhouse-worker-slot-4:20260611-081600 |
|
@maxknv done in 0bcbde5. I fixed a comment typo (reproted -> reported) in That touches a |
|
CI summary for HEAD Session: cron:our-pr-ci-monitor:20260612-033000 |
The flaky/targeted integration checks schedule the parallel bucket with
`-n {workers} --dist=each`, so every xdist worker runs every parallel module
at once. On AMD_MEDIUM (16 cpu, 61 GiB) workers = min(16//5, 61//11) = 3.
test_storage_delta/test.py starts a 5-node ClickHouse cluster plus a Spark JVM
in its module-scoped fixture; three concurrent copies meant ~15 ASan servers +
3 JVMs on 61 GiB and a kernel OOM that surfaced as an in-test hang. Reducing the
per-JVM heap (8g -> 2g, ClickHouse#106698) helped but did not remove the concurrency
driver.
Move the heavy delta modules (test_storage_delta/test.py,
test_storage_delta/test_cdf.py, test_storage_delta_disks/test.py) out of the
`--dist=each` parallel bucket into the looped sequential bucket (`-n 1`, repeated
>=3x) for the flaky/targeted path only. At most one delta cluster runs at a time,
so the OOM driver is gone while the flakiness signal is preserved. Normal runs
use `--dist=loadfile` (one file -> one worker -> one cluster) and never call this,
so they are unaffected.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Address review feedback: instead of a standalone prefix list, mark the heavy delta modules with a new TEST_CONFIGS flag dist_each_sequential. TEST_CONFIGS is the existing single source of truth for parallel vs sequential integration scheduling, so the policy now lives in one place. The flag is distinct from is_sequential on purpose. is_sequential makes a module sequential in every integration job (all ~140 normal --dist=loadfile jobs included), where the delta modules run fine with one cluster per file. The OOM only happens under the flaky/targeted --dist=each schedule, where each xdist worker starts its own 5-node cluster plus Spark JVM. So dist_each_sequential moves the module to the looped sequential bucket only on that path and leaves normal runs untouched. force_heavy_modules_sequential now derives its prefix list from the flag and a regression test asserts the two flags never coincide for these modules. Co-Authored-By: Claude Opus 4.8 <[email protected]>
The integration flaky/targeted check is skipped on a ci/-only PR because has_new_integration_tests is false, so the new dist_each_sequential scheduling change went unverified by CI. Touch a heavy delta module with a comment grammar fix (reproted -> reported) so the flaky/targeted check runs and exercises the sequential path on test_storage_delta itself. Co-Authored-By: Claude Opus 4.8 <[email protected]>
0bcbde5 to
b0f0378
Compare
|
Rebased onto current master to resolve a conflict in The conflict was additive: master added two fixed-port azure entries at the same
Resolution keeps both sets. The prefixes are distinct and the rationales do not overlap (port-bind collision vs concurrent-cluster OOM), so no logic changed. The New HEAD |
CI finish ledger - b0f0378CI fully finished on the rebased HEAD Per the finish-ledger rule every failure must link a fixing PR; there are no failures to link. The only non-green check is Session id: cron:our-pr-ci-monitor:20260624-130000 |
test_dns_cache pins fixed IPv6/IPv4 addresses on the single shared docker_compose_net.yml subnet (10.0.0.0/12 + 2001:3984:3989::/64), so ClickHouseCluster.start() holds the global /tmp/docker_net.lock for the whole cluster lifetime. Under the flaky/targeted --dist=each schedule every xdist worker starts its own copy at once; they serialize on that lock and exceed the 10-minute acquire budget, so cluster.start() raises in the cluster_start fixture and all test_dns_cache cases fail before their bodies run (0 failures on master). This is the same --dist=each self-contention the heavy delta modules already carry dist_each_sequential=True for; only the contended resource differs (global Docker-network lock vs host memory). Set the same flag on test_dns_cache so it runs on the looped sequential phase under --dist=each (one cluster at a time, lock never contended) while staying parallel in the ~140 normal --dist=loadfile jobs. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Head branch was pushed to by a user without write access
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 321 line(s), 7 function(s) across 115 file(s) · Details Top files
|
…elta-flaky-oom-concurrency Run heavy delta modules sequentially in the integration flaky check
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
The flaky/targeted integration checks schedule the parallel bucket with
-n {workers} --dist=each, so every xdist worker runs every parallel module concurrently. OnAMD_MEDIUM(16 cpu, 61 GiB)workers = min(16//5, 61//11) = 3.test_storage_delta/test.pystarts a 5-node ClickHouse cluster plus a Spark JVM in its module-scoped fixture. Three concurrent copies meant ~15 ASan servers + 3 JVMs on a 61 GiB host and a kernel OOM that surfaced as an in-test hang (e.g. run 27175604347/job 80226138143 hung attest_checkpoint[1-s3]and was SIGTERMed by the praktika timeout). Reducing the per-JVM heap (8g -> 2g, #106698) helped but did not remove the concurrency driver.This moves the heavy delta modules (
test_storage_delta/test.py,test_storage_delta/test_cdf.py,test_storage_delta_disks/test.py) out of the--dist=eachparallel bucket into the looped sequential bucket (-n 1, repeated >=3x) for the flaky/targeted path only. At most one delta cluster runs at a time, so the OOM driver is removed while the flakiness signal is preserved. Normal master/PR runs use--dist=loadfile(one file -> one worker -> one cluster) and never take this path, so they are unaffected.The move is done by a small
force_heavy_modules_sequentialhelper inci/jobs/scripts/integration_tests_configs.py, gated onis_flaky_check or is_targeted_checkinci/jobs/integration_test_job.py. A regression test inci/tests/test_force_heavy_modules_sequential.pypins the behavior.Version info
26.7.1.152(included in26.7and later)