Repository navigation
Add pipelined artifact receivers - #562
haoweiyu-kumo wants to merge 1 commit into
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueNote
|
| Check name | Status | Explanation |
|---|---|---|
| Pr Size | The PR size check passes. The file count is 2, which does not exceed the threshold of 40. Evidence: - The local checkout is at HEAD fdf8ecd ("Add publication-scoped parallel artifact receivers"). Its … | |
| Public Resource Access | The check applies only to external resource references (URLs, repository locations, package source locations) added or modified by this pull request. I compared the checked-out head commit (fdf8ecd, "… |
Full details: Pr Size
-
Explanation
The PR size check passes. The file count is 2, which does not exceed the threshold of 40. Evidence: - The local checkout is at HEAD fdf8ecd ("Add publication-scoped parallel artifact receivers"). Its parent is 8498963 ("Add reusable remote node placement and worker ownership"), which matches the base PR's content (
#561). -git diff --name-status -M HEAD^ HEADlists two added files:packages/kumo-core/src/kumo_core/distributed/replication.pyandpackages/kumo-core/tests/distributed/test_replication.py. - The count is the same with rename detection disabled (--no-renames). Caveat: the base branchsplit/pr203-03-worker-placementis not present locally. The count assumes the local parent commit is the PR base. The provider-side diff was not checked, so this count could differ from the provider's file list. The result would change only if the provider diff exceeded 40 files, which is unlikely for a two-file local diff. Ignoring line counts, as the check requires.
Full details: Public Resource Access
-
Explanation
The check applies only to external resource references (URLs, repository locations, package source locations) added or modified by this pull request. I compared the checked-out head commit (fdf8ecd, "Add publication-scoped parallel artifact receivers") with its parent (8498963, "Add reusable remote node placement and worker ownership"). The parent matches the stack's base PR
#561. The diff touches only two files: packages/kumo-core/src/kumo_core/distributed/replication.py (+261) and packages/kumo-core/tests/distributed/test_replication.py (+170). A search of every added line for http(s) URLs, git/ssh URLs, package index or find-links settings, registry or artifact hosts, bucket URIs, and hosting domains found no matches. The only added lines that name external code are Python imports of ray, pyarrow, and kumo_core modules. Those are code dependencies, not URLs or package source locations, and the diff does not change any dependency manifest or lockfile. No external resource reference was added or modified, so the check passes.
Full details: Change Map Design Review
-
Explanation
The change map is the provider-reported comment with marker
<!-- kumo-pr-change-map -->on PR#562(NVIDIA/kumo-engine, author haoweiyu-kumo). It has two table rows:replication.py(Replicator; ArtifactReceiver) andtest_replication.py(focused regression coverage). The diff against base8498963adds 431 lines in those two files. Both files are new. The change size is under 1000 lines, so the map should describe function or scope-level changes. Substantive design issues: 1. Misattributed responsibility. The row says "Replicator; ArtifactReceiver: Queue verified downloads and drain publication state." Inreplication.py,Replicatoronly sendsbegin,receive,complete, andabortRPCs to peers. OnlyArtifactReceiver.receivecallsdownloads.pool.submit(...). The map gives the download queue to the wrong component. 2. Scope claims not reflected in the table. The Scope names "checksum verification," "inventory barriers," and "abort cleanup." The table does not describe any of them. The code does provide the first two.download_fileinkumo_core/io/artifact.pychecks size and SHA-256 beforeos.replace.ArtifactReceiver.sealraises when the scheduled files differ from the producer inventory. 3. "Abort cleanup" is not clearly supported by the code.ArtifactReceiver.abortpops the publication, then callspool.shutdown(wait=True, cancel_futures=True). It does not removeroot/downloads/<publication>. Files that finished before the abort stay on the node-local scratch root. This may be intended. The map should either state that files are retained, or the code should delete the publication directory on abort. This is an open design question, not a proven defect. 4. Material behavior omitted. -Replicator.__init__drops any peer whosebeginfails. It logs the error and continues with fewer peers. -Replicator.finishlogscompletefailures and returns. The producer does not raise. Recovery depends on a later readiness check against shared storage. The docstring states this, but the map does not. -Replicator.uploadedwaits onray.getfor pending notifications while it holdsself._lock(flush at 128 per peer). -ArtifactReceiver.sealremoves the publication from_downloadsbefore it validates the inventory. A failed seal cannot be retried. 5. No observed failure or inspected existing behavior. The "Requirement" line describes the whole stack. It names no observed failure in this layer. It does not explain why the existing kumo-engine artifact path (for example_artifact_io.py, which already callsdownload_file) cannot serve the receiver role. The map should state that comparison. 6. Vague test row. "focused regression coverage" and "Verify this layer and its compatibility boundaries" do not name the behavior covered. The five tests cover streaming overlap, inventory and checksum failure, unfinished-producer abort, notification failure not retried, and CPU budget. None is labeled as a compatibility test. "Catch failures without requiring subsequent PRs" is a stacking note, not a design reason. 7. Stopping condition and unwired layer. In this commit,ReplicatorandArtifactReceiverare referenced only bytest_replication.py. No production caller exists yet. The map does not say so. It also does not name the peer RPC contract (begin,receive,complete,abort) that the containing actor must provide in a later PR. That contract is the real compatibility boundary. Verified claims: the Replicator is free of Engine imports (it imports onlykumo_core,ray, andpyarrow). The "26 tests passed" claim was not reproduced, because build and test tools are not available in this sandbox. I could not retrieve the previous failure details, so I did not dispose of them. This FAIL rests on the current map and code.Resolution
Correct the change map comment (marker
<!-- kumo-pr-change-map -->, issuecomment-7295540654) as follows: 1. Split thereplication.pyrow by function or class member: -Replicator.__init__,uploaded,finish,__exit__: sends begin, receive, complete, and abort RPCs to peers. Notification batching is 128 per peer. Failed peers are dropped. Complete failures are logged and not raised. -ArtifactReceiver.begin,receive,_download: opens a publication-scoped pool and queues verified downloads. -ArtifactReceiver.seal: enforces the exact inventory barrier and returns the directory. -ArtifactReceiver.abort: drains the pool. State whether completed files are retained or removed. 2. Name the peer RPC contract (begin,receive,complete,abort) and say which later PR supplies the containing actor. 3. State that no production caller exists in this PR. Name the test that exercisesfinish. 4. Replace "focused regression coverage" with the five named behaviors fromtest_replication.py. Remove the stacking rationale. 5. Add the observed failure or the release requirement. State whykumo_core.io.artifact.download_fileand the existing_artifact_io.pypath are or are not sufficient. Then either change the code or change the Scope text so that "abort cleanup" matches the actualabortbehavior. Decide whetherabortshould removeroot/downloads/<publication>. Decide whether a failedsealshould keep the publication open for retry.
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Change mapRequirement: Share artifact publication across MLOps and compute workers through a stack of separately reviewable changes. Scope: Add a regular ArtifactReceiver component with publication-scoped download pools, checksum verification, inventory barriers, and abort cleanup. Replicator broadcasts completed uploads without introducing an Engine dependency. Verification: 26 distributed placement/receiver tests passed.
|
c6fc10b to
fdf8ecd
Compare
83ddf6f to
8498963
Compare
fdf8ecd to
b331339
Compare
8498963 to
abf8a15
Compare
Summary
Add a regular ArtifactReceiver component with publication-scoped download pools, checksum verification, inventory barriers, and abort cleanup. Replicator broadcasts completed uploads without introducing an Engine dependency.
Part 4/7 of the #203 stack. Review against the listed base; later PRs are not required for this layer.
Change map
Maintained file-by-file change map.
Testing Done
26 distributed placement/receiver tests passed.
Stack
#563 is consolidated into #559. Remote sampling remains in #483.