Repository navigation
[Wheel] Stage _structured_ranges.py into the combined wheel - #5030
Merged
staryxchen merged 1 commit intoOct 28, 2026
Merged
Conversation
kvcache-ai#3954 added the module and a hard import from structured_object_store, but the legacy wheel builder never copied it into mooncake-wheel, so test-wheel-ubuntu failed with ModuleNotFoundError. Co-authored-by: Cursor <cursoragent@cursor.com>
Aionw
approved these changes
Oct 28, 2026
7 of 23 tasks
huangxiaobai-ydmy
added a commit
to huangxiaobai-ydmy/Mooncake
that referenced
this pull request
Oct 28, 2026
…index On SIGTERM, skip walking metadata_shards_ via ExitAfterShutdown after stopping RPC, admin, worker pool, and HTTP metadata (kvcache-ai#4856). (Rebased onto main after kvcache-ai#5030; packaging commits dropped.)
huangxiaobai-ydmy
added a commit
to huangxiaobai-ydmy/Mooncake
that referenced
this pull request
Oct 28, 2026
… full BatchEvict now goes through MemoryEviction::OpLogReclaimer. Wait briefly for OpLog writer slots on TASK_PENDING_LIMIT_EXCEEDED instead of ending the whole eviction cycle (kvcache-ai#4818). (Rebased onto main after kvcache-ai#5030; packaging commits dropped.)
huangxiaobai-ydmy
added a commit
to huangxiaobai-ydmy/Mooncake
that referenced
this pull request
Oct 28, 2026
(Rebased onto main after kvcache-ai#5030; packaging commits dropped.)
huangxiaobai-ydmy
added a commit
to huangxiaobai-ydmy/Mooncake
that referenced
this pull request
Oct 28, 2026
Dummy-client exports record the exporter's CUDA device ordinal, which is relative to that process's CUDA_VISIBLE_DEVICES. Opening with cudaSetDevice(handle.device_id) maps every worker's buffer onto the real client's GPU 0 when CVD layouts differ. Match TENT NVLinkTransport: open on the current device with lazy peer access and remember that local ordinal for close. Fixes kvcache-ai#4980 Signed-off-by: YDMY_Kirito <202200820046@mail.sdu.edu.cn> (Rebased onto main after kvcache-ai#5030; packaging commits dropped.)
huangxiaobai-ydmy
added a commit
to huangxiaobai-ydmy/Mooncake
that referenced
this pull request
Oct 28, 2026
Exporter ordinals are relative to CUDA_VISIBLE_DEVICES and cannot be reused by the real client. Carry cudaDeviceGetPCIBusId in the handle and resolve with cudaDeviceGetByPCIBusId on open; keep device_id for logging and open on the caller device only for legacy empty pci_bus_id handles. (Rebased onto main after kvcache-ai#5030; packaging commits dropped.)
huangxiaobai-ydmy
added a commit
to huangxiaobai-ydmy/Mooncake
that referenced
this pull request
Oct 28, 2026
(Rebased onto main after kvcache-ai#5030; packaging commits dropped.)
huangxiaobai-ydmy
added a commit
to huangxiaobai-ydmy/Mooncake
that referenced
this pull request
Oct 28, 2026
Default host_ip is 127.0.0.1, so multi-node init_process_group without set_host_ip() publishes loopback and hangs rank 0. Resolve a local interface address toward MASTER_ADDR (or via hostname) when still on loopback; fail fast with a set_host_ip hint if MASTER_ADDR is clearly multi-node and resolution fails. Fixes kvcache-ai#4981 Signed-off-by: YDMY_Kirito <202200820046@mail.sdu.edu.cn> (Rebased onto main after kvcache-ai#5030; packaging commits dropped.)
huangxiaobai-ydmy
added a commit
to huangxiaobai-ydmy/Mooncake
that referenced
this pull request
Oct 28, 2026
Address review feedback on kvcache-ai#5007: keep the single-node loopback default when MASTER_ADDR is unset/loopback, and only run route/hostname derivation (or fail-fast) when MASTER_ADDR is a non-loopback host. Extract the policy into a testable helper and add unit coverage for loopback preservation, route preference, hostname fallback, explicit set_host_ip precedence, and fail-fast. Signed-off-by: YDMY_Kirito <202200820046@mail.sdu.edu.cn> (Rebased onto main after kvcache-ai#5030; packaging commits dropped.)
huangxiaobai-ydmy
added a commit
to huangxiaobai-ydmy/Mooncake
that referenced
this pull request
Oct 28, 2026
Debian/Ubuntu /etc/hosts maps the hostname to 127.0.1.1, which previously passed the string-only loopback check and could be published as host_ip. Parse with inet_pton, reject loopback discovery results, and cover the 127.0.1.1 hostname-fallback case in unit tests. (Rebased onto main after kvcache-ai#5030; packaging commits dropped.)
This was referenced Oct 28, 2026
12 of 15 tasks
10 of 12 tasks
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
#3954 added
python/mooncake/_structured_ranges.pyand a hard import frommooncake.structured_object_store, butscripts/build_wheel.shnever staged that module intomooncake-wheel.test-wheel-ubuntutherefore fails after installing the CI wheel:This PR only adds
_structured_ranges.pytoMIGRATED_PYTHON_MODULESand extends the packaging tests so the omission cannot regress. It does not change Store shutdown behavior or CUDA EP JIT packaging.Related: #3954 (introduced the missing staging). Overlaps with #4865, which also stages this file but mixes it with the standalone-master
ExitAfterShutdownchange and dropsCUDA_EP_JIT_DIRstaging relative to currentmain. This PR is the dedicated, minimal wheel fix.Suggested Merge Priority
After #3954,
test-wheel-ubuntufails on currentmainfor every PR that runs the wheel install check (for example #5012). There is no workaround other than packaging the missing module.Module
mooncake-transfer-engine)mooncake-store)mooncake-conductor)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?
Test commands:
Test results:
test_structured_object_storage_has_one_authoritative_sourcepassed. The installed-wheel smoke tests skipped locally becauseMOONCAKE_TEST_WHEEL/MOONCAKE_TEST_LEGACY_WHEELwere unset.test-wheel-ubuntuon this PR is the verification that the installed wheel canimport mooncake.structured_object_store.Checklist
./scripts/code_format.shAI Assistance Disclosure
Cursor Grok 4.6 diagnosed the
test-wheel-ubuntufailure from CI logs and applied the staging-list plus packaging-test changes. The submitter reviewed every changed line.Made with Cursor