Skip to content

ci: use default Nix parallelism in the Python check jobs - #118

Open
ncaq wants to merge 1 commit into
utensils:mainfrom
ncaq:ci-default-parallelism
Open

ncaq wants to merge 1 commit into
utensils:mainfrom
ncaq:ci-default-parallelism

Conversation

@ncaq

@ncaq ncaq commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Drop --max-jobs 1 --cores 2 from python-runtime-deps and extra-python-packages.

The cap was introduced in 909f18e for the CUDA Docker image build,
where it works around OOM.
It was later copied to these check jobs without a recorded OOM there.

Hosted runners have 4 cores,
and the cap makes the source builds of torch and onnxruntime the bottleneck.
In run 42780073869 the CPU extra-python-packages job hit the 6 hour job limit,
with torch alone taking 154 minutes at -j2.

The uncapped lint job already builds the same torch and onnxruntime concurrently at -j4 each.
It finished in 4h49m without OOM in run 42500297518 on main.

The cap on the CUDA Docker image build is kept.

Drop `--max-jobs 1 --cores 2` from `python-runtime-deps` and `extra-python-packages`.

The cap was introduced in 909f18e for the CUDA Docker image build,
where it works around OOM.
It was later copied to these check jobs without a recorded OOM there.

Hosted runners have 4 cores,
and the cap makes the source builds of torch and onnxruntime the bottleneck.
In run 42780073869 the CPU `extra-python-packages` job hit the 6 hour job limit,
with torch alone taking 154 minutes at `-j2`.

The uncapped `lint` job already builds the same torch and onnxruntime concurrently at `-j4` each.
It finished in 4h49m without OOM in run 42500297518 on main.

The cap on the CUDA Docker image build is kept.
Copilot AI balanced review requested due to automatic review settings November 10, 2026 14:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the Python CI parallelism change.

No open issues 🎉

What changed in this PR

Restores default Nix parallelism in the Python CI check jobs to reduce source-build bottlenecks and avoid timeouts.

Changes:

  • Removes --max-jobs 1 --cores 2 from python-runtime-deps and extra-python-packages.
  • Keeps the CUDA Docker image build’s resource cap unchanged.
File Description
.github/​workflows/​build.yml Removes explicit parallelism limits from both Python check jobs.

Review effort: Balanced

This branch has not been deployed

No deployments
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.

2 participants