Repository navigation
Conversation
Aionw
requested review from
Ann-1024,
ShangmingCai,
luketong777,
stmatengss,
ykwd and
zxpdemonio
as code owners
August 24, 2026 08:37
15 of 31 tasks
12 of 31 tasks
16 of 20 tasks
Conflict resolutions, all of the same shape: main landed the sibling Phase-2 migrations (async_store, CLI, EP, SSD) after this branch forked, so the PG change had to fold into the generalized machinery main grew instead of standing alone. - .github/CODEOWNERS: keep main's full /python/... block, re-add the two PG entries next to the EP ones. - .github/labeler.yml: main widened Tests to 'python/tests/**/*', which subsumes the PR's 'python/tests/pg/**/*'. - mooncake-integration/CMakeLists.txt: union of the two migrations; all four EP/PG modules now install from ../python/mooncake/. - scripts/build_wheel.sh: main replaced the one-off PG staging with a MIGRATED_PYTHON_MODULES array; pg.py joins that array. - python/tests/packaging/test_project.py: keep both new "one authoritative source" tests. Also drop "pg.py" from the legacy-tree module list in test_scikit_build_consumes_unified_python_sources -- that assertion was written against a tree where the file had not moved yet, and would fail as of this merge. - python/tests/packaging/test_installed_wheel.py: union of the smoke script assertions. The PG block runs last so its "torch was never imported" check also covers main's imports and its stub torch module cannot leak into them; it now reuses main's import_module.
The rule this exclusion guarded globs the legacy mooncake-wheel/mooncake source tree, and pg.py no longer lives there after the move to python/mooncake, so the pattern never matches anything. main already settled the convention for this on the sibling EP migration: ep.py, mooncake_ep_buffer.py and mooncake_elastic_buffer.py moved the same way and added no exclusion. Follow it, which drops python/CMakeLists.txt from this change entirely.
This reverts commit 2e26e67.
Conflict resolution: - .github/CODEOWNERS: kept both sides. The /python/mooncake/pg.py and /python/tests/pg/ entries stay grouped after /python/tests/ep/ (same owners), followed by main's /python/tests/services/test_http_metadata_server.py entry from kvcache-ai#3632. All other files merged cleanly. .github/workflows/ci_rocm.yml now matches main (including kvcache-ai#4266's setup-python change).
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implement the Mooncake PG Python loader increment of Phase 2 in #3534.
mooncake.pgfrommooncake-wheel/mooncake/pg.pyto the canonicalpython/mooncake/pg.pysource tree;mooncake.pgis imported;Overlap review:
mooncake-pg; it does not modify the Python loader. This PR only migrates that loader and does not include any of [PG][1/N] Initialize the new collective framework #3484's native collective feature work.main; this branch includes them through itsmainsyncs, most recently the 2026-09-28 merge ofmain(d9152a4). [Reshard] Migrate to unified Python package #3585 (Reshard) is still open and remains out of scope. This branch does not duplicate any of those migrations.mooncake-wheel/mooncake/pg.pyand will need to targetpython/mooncake/pg.pyif this PR merges first. [Misc] Apply ruff-format to Python sources and clear ruff check debt #4008 (open) applies the sameruff formatchange to the legacypg.pythat this PR carries in the moved file.Closes no issue; contributes to #3534.
Module
mooncake-transfer-engine)mooncake-store)mooncake-reshard)mooncake-ep)mooncake-pg)mooncake-integration)mooncake-p2p-store)mooncake-wheel)mooncake-common)mooncake-rl)Type of Change
How Has This Been Tested?
Original submission (before merging
mainon 2026-09-28; superseded by "After mergingmain" below):Test commands:
Test results:
python -I, and installedmooncake.pgABI-loader smoke test)twine checkpassed and the wheel manifest contains exactly onemooncake/pg.py)After merging
main(d9152a4, 2026-09-28):PYTHONPATH=python:mooncake-wheel python -m pytest -q python/tests/pg python/tests/packaging pre-commit run --files $(git diff --name-only --diff-filter=ACMR origin/main...HEAD)MOONCAKE_TEST_WHEEL/MOONCAKE_TEST_LEGACY_WHEEL..github/CODEOWNERSwere resolved by keeping both sides.ruff checkplusscripts/ci/check_changed_python_format.py, ruff 0.6.9) passes.cmake-format, which only rewrites thetent_metricsblock inmooncake-integration/CMakeLists.txtinherited frommain;mainat d9152a4 fails the same way, and this PR's own CMake lines pass.twine check, and installed-wheel smoke runs from the original submission were not repeated after the merge. CI does not run them either (it builds only the legacyscripts/build_wheel.shwheel and runsscripts/test_installation.sh), so they still need a rerun.Checklist
main, except the pre-existingcmake-formatissue noted under "After mergingmain")main)AI Assistance Disclosure
OpenAI Codex assisted with the module migration, build-path audit, test coverage,
validation, and PR preparation. The human submitter remains responsible for
understanding and defending every changed line.
Claude Code (Anthropic) merged
maininto this branch on 2026-09-28, resolved the conflicts, re-ran the focused tests listed under "After mergingmain", and updated this description.