Skip to content

Add ulimit to qemu tests - #95864

Merged
alexey-milovidov merged 3 commits into
masterfrom
add-ulimit-to-qemu-tests
Feb 4, 2026
Merged

alexey-milovidov merged 3 commits into
masterfrom
add-ulimit-to-qemu-tests

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Feb 2, 2026 •

Copy link
Copy Markdown
Member

Sanitized binaries (ASAN, MSAN, etc.) try to allocate ~20 TiB of virtual memory for shadow memory. When run under QEMU, this can cause the system to slowly consume all memory until OOM, even though these tests have no-asan tags.

Add ulimit -v 1048576 (1 GB) before QEMU invocations to fail fast if a sanitized binary somehow ends up running these tests.

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

We just recently enabled running all tests under Stress tests regardless of the sanitizer tags. But now it leads to sporadic failures even in unrelated jobs: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=95578&sha=e8d132c43e899f8100bc6fb92092c42eedf1809d&name_0=PR&name_1=Integration%20tests%20%28amd_asan%2C%20targeted%29
#95578

Because sometimes a process from the previous job on the same runner could be a leftover.

Version info

  • Merged into: 26.2.1.211

Sanitized binaries (ASAN, MSAN, etc.) try to allocate ~20 TiB of
virtual memory for shadow memory. When run under QEMU, this can
cause the system to slowly consume all memory until OOM, even
though these tests have `no-asan` tags.

Add `ulimit -v 1048576` (1 GB) before QEMU invocations to fail
fast if a sanitized binary somehow ends up running these tests.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Feb 2, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [c3115a9]

Summary: ❌

job_name test_name status info comment
Stateless tests (amd_asan, flaky check) failure
03590_simdjson_fallback FAIL cidb
03590_simdjson_fallback FAIL cidb
03590_simdjson_fallback FAIL cidb
03590_simdjson_fallback FAIL cidb
03590_simdjson_fallback FAIL cidb
03590_simdjson_fallback FAIL cidb
03590_simdjson_fallback FAIL cidb
03590_simdjson_fallback FAIL cidb
03590_simdjson_fallback FAIL cidb
03590_simdjson_fallback FAIL cidb
40 more test cases not shown
Stress test (arm_asan) failure
AddressSanitizer: stack-use-after-scope (STID: 0250-04e2) FAIL cidb

@alexey-milovidov
alexey-milovidov force-pushed the add-ulimit-to-qemu-tests branch from 31e23e0 to 9de4a84 Compare February 2, 2026 23:34
@clickhouse-gh clickhouse-gh Bot added the pr-ci label Feb 2, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member Author

Flaky check ignores tags, so the result is ok.

@alexey-milovidov
alexey-milovidov merged commit bc03e9c into master Feb 4, 2026
125 of 127 checks passed
@alexey-milovidov
alexey-milovidov deleted the add-ulimit-to-qemu-tests branch February 4, 2026 02:17
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants