Skip to content

[CI/Build] Limit ROCm wheel builds to two parallel jobs - #4190

Merged
ykwd merged 2 commits into
kvcache-ai:mainfrom
Aionw:ci/rocm-max-jobs-2
Sep 18, 2026
Merged

ykwd merged 2 commits into
kvcache-ai:mainfrom
Aionw:ci/rocm-max-jobs-2

Conversation

@Aionw

@Aionw Aionw commented Sep 17, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Set MAX_JOBS=2 for the ROCm wheel build step and pass it explicitly to cmake --build, replacing -j$(nproc). The environment variable alone does not limit a regular CMake/Ninja build. This bounds total native build parallelism to two jobs while preserving the existing Ninja pools and retry behavior.

Motivated by the ROCm Python 3.10 CI failure, which ended with exit 137 and a runner shutdown signal. OOM is not confirmed; the equivalent Python 3.12 job succeeded with the same existing limits. This is a conservative resource cap, not a claim to fix a proven root cause.

Overlap: #3970 migrates release wheel packaging, including this workflow; this PR only caps the current native build step and does not migrate packaging.

Module

  • Transfer Engine (mooncake-transfer-engine)
  • Mooncake Store (mooncake-store)
  • Mooncake Conductor (mooncake-conductor)
  • Reshard (mooncake-reshard)
  • Mooncake EP (mooncake-ep)
  • Mooncake PG (mooncake-pg)
  • Integration (mooncake-integration)
  • P2P Store (mooncake-p2p-store)
  • Python Wheel (mooncake-wheel)
  • Common (mooncake-common)
  • Mooncake RL (mooncake-rl)
  • CI/CD
  • Docs
  • Other

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Breaking change
  • Documentation update
  • Performance improvement
  • Other

How Has This Been Tested?

Scoped hygiene/YAML checks passed. The ROCm build itself was not run locally; CI validation remains pending.

Test commands:

prek run --files .github/workflows/release-rocm.yaml
git diff --check

Test results:

  • Unit tests pass
  • Integration tests pass (if applicable)
  • Manual testing done: reviewed the complete four-line diff and confirmed the build command consumes the explicit limit.

Checklist

  • I have performed a self-review of my own code
  • I have formatted my code using ./scripts/code_format.sh
  • I have run pre-commit on the files changed in this PR and all hooks pass (using prek)
  • I have updated the documentation (if applicable)
  • I have added tests to prove my changes are effective
  • For changes >500 LOC: I have filed an RFC issue

AI Assistance Disclosure

  • No AI tools were used
  • AI tools were used (specify below)

OpenAI coding assistant in pi investigated the CI logs, prepared this change, and ran scoped checks. Opened as a draft pending human line-by-line review and end-to-end ownership.

@Aionw
Aionw marked this pull request as ready for review September 17, 2026 10:03
@Icedcoco

Copy link
Copy Markdown
Collaborator

Could you please confirm whether the intended target was .github/workflows/ci_rocm.yml rather than .github/workflows/release-rocm.yaml?

The exit-137 failure mentioned in the description came from the build-wheel-rocm CI job, which currently uses ci_rocm.yml and still runs cmake --build . -j"$(nproc)". The current change only affects the release workflow, so it would not change the reported CI path. Would it make sense to apply the limit there as well, or clarify if the release workflow is the intended scope?

@Icedcoco Icedcoco left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM pending CI

@ykwd
ykwd merged commit 24bfb98 into kvcache-ai:main Sep 18, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants