Repository navigation
Raise per-worker memory budget for --dist=each integration checks - #107529
Merged
Algunenano merged 1 commit intoJun 17, 2026
Merged
Conversation
Flaky and targeted integration checks run pytest with --dist=each, so every xdist worker runs the full set of changed modules concurrently, each in its own Docker cluster, instead of splitting modules across workers like the loadfile runs. The worker count still used the loadfile budget of 11 GB per worker, so a PR changing many memory-heavy modules (Spark JVMs plus several ASan server clusters) could start more concurrent workers than fit the container cgroup. The kernel OOM killer then fired and the `OOM in dmesg` check failed the job. Use a separate, larger memory budget of 20 GB per worker for the --dist=each path. On a 16 vCPU / 60 GB runner this drops the flaky check from 3 to 2 workers, cutting peak memory by about a third while keeping a meaningful flakiness signal (sequential repeats stay at max(3, workers)). CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=106855&sha=42de24e863b6181d0e1c88201f4acbf83905922d&name_0=PR&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20flaky%29 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Contributor
|
Workflow [PR], commit [a5098b8] Summary: ✅ AI ReviewSummaryThis PR raises the automatically computed memory budget for integration flaky and targeted jobs that run Final VerdictStatus: ✅ Approve |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The flaky and targeted integration checks run
pytestwith--dist=each, so everyxdist worker runs the full set of changed modules concurrently, each in its own Docker
cluster, instead of splitting modules across workers like the
--dist=loadfileruns.The worker count still used the loadfile budget of 11 GB per worker. A PR that changes
many memory-heavy modules (Spark JVMs plus several Address Sanitizer server clusters)
could therefore start more concurrent workers than fit the container memory cgroup. The
kernel OOM killer then fired and the
OOM in dmesgcheck failed the job, even though thevictim picked by
oom_score_adjwas an unrelated Sparkjavaprocess rather than thereal consumer (the ClickHouse servers).
This uses a separate, larger memory budget of 20 GB per worker for the
--dist=eachpath. On a 16 vCPU / 60 GB runner it drops the flaky check from 3 to 2 workers, cutting
peak memory by about a third while keeping a meaningful flakiness signal (sequential
repeats stay at
max(3, workers)). The--dist=loadfileruns are unchanged.CI report:
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=106855&sha=42de24e863b6181d0e1c88201f4acbf83905922d&name_0=PR&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20flaky%29
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Version info
26.6.1.905