ci: limit stateless tests to 5G of RAM and fix tests that exceeds this limit#82361
Merged
azat merged 31 commits intoClickHouse:masterfrom Jan 7, 2026
Merged
ci: limit stateless tests to 5G of RAM and fix tests that exceeds this limit#82361azat merged 31 commits intoClickHouse:masterfrom
azat merged 31 commits intoClickHouse:masterfrom
Conversation
Contributor
|
Workflow [PR], commit [333b9dc] Summary: ❌
|
alexey-milovidov
approved these changes
Jun 23, 2025
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
2 similar comments
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Member
|
Looks outdated, better to open a new one. |
Member
|
Although I really want it to be done. |
d3769a9 to
578292f
Compare
Member
Author
|
After playing with this on and on, it looks like it finally works - https://pastila.nl/?048262d2/25f2b6db5891bc511142691744c99b29#qW7nSg2x1zmwYp/tsic5ww==GCM Though it will not work outside of docker (systemd does not allows to propagate |
578292f to
073d4db
Compare
Jobs with sanitizers shows lots of OOM, last time (ClickHouse#76143) it happened due to some test spawns tons of clients, and sanitizer binary takes 650MiB each in RAM This is resubmit of ClickHouse#76388, which did not work because address space limit, which is way different thing, especially for the binaries built with sanitizers Refs: ClickHouse#82036 v2: use cgroup v2
073d4db to
93536c2
Compare
Member
Author
|
And we already have tests that does not fit into 5G (at least with sanitizers) |
azat
commented
Jan 2, 2026
b72522d to
dcbf59c
Compare
…k writable permissions)
…_contrib_over_rust_crates Binary is heavy for sanitizers or debug builds
…lly_increasing_offsets
…y_increasing_offsets
…_offsets Previously SELECT can eat up to 20GiB!
Member
Author
|
Splitted out tests changes - #93362 (to avoid conflicts in case this will take sometime to merge #82361 (comment)) |
Merged
via the queue into
ClickHouse:master
with commit Jan 7, 2026
339c408
125 of 131 checks passed
azat
added a commit
to azat/ClickHouse
that referenced
this pull request
Jan 13, 2026
Now it always fails with
[2026-01-13 20:29:23] 2026-01-13 15:29:23 Running about 1 stateless tests (Process-3).
[2026-01-13 20:29:23] Failed to configure cgroup clickhouse-test-5281: [Errno 30] Read-only file system: '/sys/fs/cgroup/memory/clickhouse-test-5281'
[2026-01-13 20:29:23] 2026-01-13 15:29:23 03790_uniqTheta_error: [ UNKNOWN ] 0.14 sec.
[2026-01-13 20:29:23] 2026-01-13 15:29:23 Reason: Test internal error:
[2026-01-13 20:29:23] 2026-01-13 15:29:23 FileNotFoundError
[2026-01-13 20:29:23] 2026-01-13 15:29:23 [Errno 2] No such file or directory: '/home/ubuntu/actions-runner/_work/ClickHouse/ClickHouse/tests/queries/0_stateless/03790_uniqTheta_error.stdout'
Introduced in: ClickHouse#82361
This was referenced Jan 13, 2026
Merged
This was referenced Jan 21, 2026
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.
Jobs with sanitizers shows lots of OOM, last time (#76143) it happened due to some test spawns tons of clients, and sanitizer binary takes 650MiB each in RAM. But sanitizers was not the only problem.
After proper limit has been applied, multiple tests has been fixed:
clickhouse-clientin parallel - converted to use curlclickhouse-server- converted to integration testsMemory limits: 10 GiBcomment)02481_parquet_list_monotonically_increasing_offsets- this one may eat up to 16GiB with different randomizations, due to larger block size, pin some settings to avoid excessive memory usageAnd overall I think it should help with OOMs (maybe not entirely, but at least now we have memory usage under control), and continue investigate it if it will still be an issue
This is resubmit of #76388, which did not work because address space limit, which is way different thing, especially for the binaries built with sanitizers
Fixes: #86244
Refs: #82036
Changelog category (leave one):