Skip to content

pixi: bound the parallel build on Linux - #1252

Merged
facontidavide merged 1 commit into
masterfrom
ci/pixi-bounded-parallel
Oct 24, 2026
Merged

facontidavide merged 1 commit into
masterfrom
ci/pixi-bounded-parallel

Conversation

@facontidavide

Copy link
Copy Markdown
Collaborator

pixi run build calls cmake --build . --parallel without a job count. With the Makefile generator on Linux, that becomes an unbounded make -j, which runs out of memory on the GitHub runner. The pixi_conda_build (ubuntu-latest) job then dies with "The runner has received a shutdown signal" and no compiler error. It happened on #1247, mid-compile of files that PR doesn't touch.

This adds a build override under [target.linux-64.tasks] that uses --parallel $(nproc). Windows keeps the shared task: the Visual Studio generator already caps --parallel at the core count, and nproc doesn't exist there. I checked that pixi's task shell expands $(nproc).

🤖 Generated with Claude Code

cmake --build --parallel without a number makes the Makefile generator run
an unbounded make -j, which exhausts the memory of the GitHub runners: the
ubuntu pixi job dies with 'The runner has received a shutdown signal' and
no compiler error. Override the build task on linux-64 to use $(nproc);
the Visual Studio generator on Windows is already bounded to the cores.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@facontidavide
facontidavide merged commit af878ef into master Oct 24, 2026
16 checks passed
@facontidavide
facontidavide deleted the ci/pixi-bounded-parallel branch October 24, 2026 13:54
@sonarqubecloud

Copy link
Copy Markdown

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