Cap CMake Build parallelism to avoid OOM-cancelled runners - #190
Merged
Conversation
Unbounded --parallel starts one compiler invocation per core; on heavily-templated C++ (e.g. sigma's TaylorModel headers) that can exceed a GitHub-hosted runner's RAM, OOM-killing the runner's own listener process. GitHub Actions then reports the job as cancelled (exit 143) instead of a normal build failure, which is what happened 3/3 times on Integrals#171's (ubuntu-latest, gcc-14) sigma job while every other matrix cell passed. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
|
🚀 [bumpr] Bumped! |
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.
Summary
cmake_buildcomposite action's Build step used unboundedcmake --build build --parallel(defaults to nproc concurrent compiler invocations).TaylorModelheaders), that can push memory use past what a GitHub-hosted runner has available, OOM-killing the runner's own listener process. GitHub Actions then reports the job as cancelled (exit 143 / "runner has received a shutdown signal") rather than a normal build failure.test_enable_sigma / test_cmake_build (ubuntu-latest, gcc-14)job, always dying mid-compile, while every other matrix cell (including the same sigma build on macos-14 and on ubuntu-latest/clang-18) passed cleanly.nproc(minimum 1) instead of leaving it unbounded.Test plan
test_enable_sigma / test_cmake_build (ubuntu-latest, gcc-14)job on Integrals#171 (it references this action via@master) and confirm it completes without cancellation🤖 Generated with Claude Code