Skip to content

Cap CMake Build parallelism to avoid OOM-cancelled runners - #190

Merged
ryanmrichard merged 1 commit into
masterfrom
cap-build-parallelism
Aug 12, 2026
Merged

Cap CMake Build parallelism to avoid OOM-cancelled runners#190
ryanmrichard merged 1 commit into
masterfrom
cap-build-parallelism

Conversation

@ryanmrichard

Copy link
Copy Markdown
Member

Summary

  • The shared cmake_build composite action's Build step used unbounded cmake --build build --parallel (defaults to nproc concurrent compiler invocations).
  • On heavily-templated C++ (e.g. sigma's TaylorModel headers), 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.
  • Reproduced 3/3 times on NWChemEx/Integrals#171's 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.
  • Fix: cap build parallelism at half of nproc (minimum 1) instead of leaving it unbounded.

Test plan

  • pre-commit hooks pass locally
  • Once merged, rerun the previously-cancelled 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

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>
@ryanmrichard
ryanmrichard merged commit adb16c3 into master Aug 12, 2026
2 checks passed
@ryanmrichard
ryanmrichard deleted the cap-build-parallelism branch August 12, 2026 14:47
@github-actions

Copy link
Copy Markdown
Contributor

🚀 [bumpr] Bumped!
New version:v0.3.86
Changes:v0.3.85...v0.3.86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant