Repository navigation
Conversation
# Conflicts: # .github/workflows/ci_rocm.yml # .github/workflows/release-rocm.yaml
|
Thanks for the update. I reviewed the latest CI results. The root backend migration and the CUDA, CUDA13, EFA, wheel installation, CTest, formatting, and static checks are now passing, so the main migration path appears to be working as intended. I still have a few points I would like to clarify before merging:
These are mostly clarification and release-readiness points rather than concerns about the core design. Once the ROCm jobs are passing and the intended platform coverage is made explicit, I would be comfortable reassessing the PR for merge. |
- verify_rocm_wheel.py: resolve engine/store through the wheel RECORD by extension suffix, since the scikit-build backend no longer installs the bare engine.so/store.so names. Covered by the new python/tests/packaging/test_verify_rocm_wheel.py. - build_release_wheel.py: only forward cmake.build-type when the adopted CMake tree actually has one, so scikit-build-core keeps its Release default for trees configured without -DCMAKE_BUILD_TYPE. - test_release_build.py: hoist the failing build into a nested function so the assertion after pytest.raises is provably reachable, clearing the py/unreachable-statement finding on this PR.
Description
Move release wheel assembly to the repository-root scikit-build-core backend used by source installs.
scripts/build_wheel.shand the legacy setuptools project with a release configuration/metadata adapter plus an isolated auditwheel repair step.Related RFC: #3534 (also related to #3425 and build roadmap #3556). This implements the release-backend cutover/legacy assembly removal portion, not the complete RFC. Existing subsystem migration PRs such as #3628 and #3623 move Python modules; this PR instead changes wheel construction and its callers. It does not add cibuildwheel, centralize publication, or complete private native-module facades.
Module
mooncake-wheel)mooncake-integration)mooncake-store)Type of Change
Breaking change: legacy local packaging commands are removed; see the build migration documentation for replacements.
How Has This Been Tested?
Test commands:
Test results:
MOONCAKE_TEST_WHEELwas not supplied.The scoped hook run passed after auto-fixes. Unrelated pre-existing Python/CMake formatting rewrites were subsequently reverted to keep the PR focused, so the final tree is not claimed to pass all formatting hooks. Regression tests were rerun after those reversions and still pass. Local CUDA/non-CUDA native builds and installed-wheel checks were subsequently completed as described below; the full hardware release matrix remains unvalidated.
Local before/after wheel validation
Compared
140e1f43(before the packaging migration) withce6460bcusing independently built CUDA 12.8 and non-CUDA wheels in the same Ubuntu 22.04 / x86_64 / CPython 3.12.13 environment. The old revision used the legacy setuptools release script; the new revision used scikit-build-core and the new repair script. CUDA builds included EP/PG for one representative Torch ABI (2.13.0).For each variant, tested a fresh old installation, a fresh new installation, and an in-place
pip install --upgradefrom old to new. The new wheels used a test-only0.3.14.dev0version override to exercise pip's upgrade behavior; this does not change the proposed release version.This is 150 pytest test executions across six installation states, not 150 distinct tests. Store smoke tests disabled the same-host direct-copy shortcut with
MC_STORE_MEMCPY=0.Additional checks:
Compatibility observations: Standard imports and the tested operations showed no regression. The switch to the root package removes the legacy
pkgutil.extend_pathbehavior and changes generic native filenames: non-CUDA no longer includesengine.so, and neither variant includesstore.so(ABI-tagged extensions are installed instead). Constructed split-namespace imports and hardcoded native-path loads therefore differ. No actual downstream dependency on these behaviors was identified; they are compatibility boundaries, not demonstrated failures of normal wheel usage.Limits: These local wheels target manylinux_2_35, not the production manylinux_2_28 baseline. This A/B test does not cover CUDA 13, other Python versions, ARM64, RDMA/GPUDirect, multi-GPU/NVLink, distributed EP/PG kernels, the full Torch ABI matrix, or publication to PyPI. Local harnesses, artifacts and logs are retained under
build/pip-ab/(not committed).Checklist
./scripts/code_format.shAI Assistance Disclosure
OpenAI coding assistant in pi inspected the working-tree changes and related issues/PRs, ran checks, applied scoped formatting fixes, prepared the commit and PR, and performed the local before/after wheel builds and validation described above. Human line-by-line review and end-to-end ownership are still required; this PR is opened as a draft pending that review and full release-matrix validation.