Repository navigation
Prepare snapshots and ingested training tables on Ray - #584
haoweiyu-kumo wants to merge 1 commit into
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
Note
|
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Change Map Design Review | The change map comment (NVIDIA/kumo-engine PR #584, comment 7336936473, author haoweiyu-kumo, base tt_ingestion_preparation, head artifact_store_refactor) was retrieved and reviewed against the fetche… |
Revise the change map and, where needed, the code: 1. Re-run the map against the current PR head (c29d4a2 or its successor). Replace the commit list and verification statements that cite 3120d73, e696098, and 572302a. 2. Add rows or notes f… |

Passed checks: 2 passed
-
Check name Status Explanation Pr Size The PR (NVIDIA/kumo-engine #584, headartifact_store_refactor, basett_ingestion_preparation) changes 27 files. The local checkout is at c29d4a2, which is a single commit on top of f11dcdf ("Prepa…Public Resource Access The check applies only to external resource references added or modified by this PR. I diffed the PR head (c29d4a2) against its base (f11dcdf) and inspected the added lines in all 27 changed files. Ad… Full details: Pr Size
-
Explanation
The PR (NVIDIA/kumo-engine
#584, headartifact_store_refactor, basett_ingestion_preparation) changes 27 files. The local checkout is at c29d4a2, which is a single commit on top of f11dcdf ("Prepare training-table ingestion before fit"). I used f11dcdf as the base because the base branch ref is not present locally, and f11dcdf matches the#593work the PR description says it builds on.git diff f11dcdf HEADlists 27 files: 7 added and 20 modified. Rename detection is disabled and gives the same count of 27. The count is 27, which does not exceed the threshold of 40, so the check passes. Line counts were ignored, as the check requires. Caveat: the diff againstorigin/mainshows 181 files. That comparison does not match the PR's declared base, so I did not use it. The previous FAIL had no recoverable details. The current measured count is 27, which is under the limit. Prior failure refuted: The prior FAIL gave no details, so its specific claim cannot be checked. Current measurement against the declared base (f11dcdf, the parent of the PR head c29d4a2) shows 27 changed files (7 added, 20 modified, no renames), which is at or below the 40-file limit.
Full details: Public Resource Access
-
Explanation
The check applies only to external resource references added or modified by this PR. I diffed the PR head (c29d4a2) against its base (f11dcdf) and inspected the added lines in all 27 changed files. Added external references found: - uv.lock (about 231 added lines): package source and artifact URLs on https://pypi.org/simple and https://files.pythonhosted.org. These are public PyPI endpoints. Sampled URL checks returned HTTP 200 for pypi.org/simple/jsonschema/ and a files.pythonhosted.org jsonschema-4.26.0 sdist, both anonymous HEAD requests. The lock file has no git, editable, directory, or private-index sources. - pyproject.toml: adds only the optional dependency cluster=["ray>=2.40,<3"]. It adds no URL or index source. - README.md: kumo.MLOps("s3://my-bucket/kumo") is an illustrative example. - test/test_connector_serialization.py: s3://bucket/prefix and gs://bucket/prefix are test fixture values, not resources the code must reach. - docs/mlops.md: a repository-relative anchor link (../README.md#prepare-artifacts-on-ray). It is not an external reference. No added URL, repository location, or package source points to a non-public resource. The only externally reachable sources are public PyPI, and the sampled ones were confirmed accessible. The remaining s3:// and gs:// values are illustrative or test fixtures, which the check excludes.
-
Full details: Change Map Design Review
-
Explanation
The change map comment (NVIDIA/kumo-engine PR
#584, comment 7336936473, author haoweiyu-kumo, base tt_ingestion_preparation, head artifact_store_refactor) was retrieved and reviewed against the fetched PR head. Stale map. The comment cites verification at HEAD 3120d73 and commits e696098, 572302a, and 3120d73. The fetched PR head is c29d4a2 ("Add remote artifact preparation on shared ingested tables"). The 3120d73 commit is not in the local clone or on the PR ref. The file list in the map does exist at c29d4a2, so the map describes a different commit set than the current branch. Omitted or misleading behavior, verified in code at c29d4a2: 1. Graph.snapshot (graph.py) raises ValueError when callbacks are passed while a compute cluster is configured. The map does not mention this user-facing API change. 2. preparation_cluster (_compute_cluster.py) raises ValueError when mlops= or a kumo.mlops context is active while a cluster is configured. The map does not mention this. 3. PredictiveQuery.generate_training_table (predictive_query.py) returns cluster.table(...) before the driver-side _require_matching_snapshot call and the path-override checks. The map says behavior is preserved. The checks may still run on the producer against the reloaded snapshot. This is an uncertain design question, not a proven defect. 4. The PR description says earlier draft native caches "need rebuilding." The code does not rebuild them. ArtifactRepository.lookup calls manifest(), which raises ValueError when inventory.json is missing (_read_json returns None for a missing file). cached_table and _publish do not catch this. The map omits this migration behavior, and no README or mlops.md text describes it. 5. Connector reduce pickles the identity object into each worker payload. The map's Why says only "Keep sessions and cached clients local." It does not state that identity objects, including Snowflake passwords used in the serialization test, are sent to workers. The _SecretSerializationMixin secret path applies only in a special serializer context. Whether SecretStr values are written in plain pickle was not verified. This is an uncertain design question. Design gaps. Coalescing, backpressure, on-demand loading, and actor recovery are listed as core scope. The map does not separate optional refinements from required behavior. It does not state the existing behavior it inspected for each row, or why the smallest sufficient change is enough. The prior FAIL had no retrievable details. This run does not rely on it. The check fails on the stale map and the omitted behavior above.Resolution
Revise the change map and, where needed, the code: 1. Re-run the map against the current PR head (c29d4a2 or its successor). Replace the commit list and verification statements that cite 3120d73, e696098, and 572302a. 2. Add rows or notes for: callbacks rejected under a cluster (Graph.snapshot); mlops= or kumo.mlops rejected under a cluster (preparation_cluster); and the cluster branch bypassing driver-side snapshot and path-override validation in PredictiveQuery.generate_training_table. For each, state whether the behavior is intended. If it is not intended, add the driver-side checks before the cluster branch. 3. For draft native caches, either implement the rebuild the PR description promises (treat a missing or incompatible inventory.json as a cache miss) or change the PR description to state that users must delete the cache. Add a test for that path. 4. In the connector row, state what identity data is sent to workers. Verify SecretStr handling under plain pickle. If secrets are serialized, send identity by reference (resolve on the worker) or use the secret-aware serializer. Otherwise document the decision. 5. Separate required scope from optional refinements (coalescing, backpressure, on-demand loading, actor recovery). For each required row, state the observed failure or requirement, the existing behavior inspected, why this change is the smallest sufficient one, and the focused test that verifies it.
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
|
Requested behavior: prepare snapshots and sampling-ready tables on a remote Ray producer, preserve existing MLOps exports, and replicate native files to sampling nodes. This PR is stacked on #593, which supplies the shared local preparation and ingestion lifecycle. Implementation scope: add cluster routing, connector transport, producer/replica actors, bounded file notifications, committed native extension publication, and exact-build restoration. Keep the existing snapshot publisher and MLOps training-table row exports. The publisher consumes already-ingested tables; fit's ingestion-free behavior is provided by #593. Verification after restacking: artifact/connector/native/cluster tests, existing snapshot-format checks, and explicit local multi-node Ray smoke; scoped Ruff, five-source Mypy, and repository documentation checks. #593 separately validates standalone local exports, sampling, CPU fits, adapters, and core workflows against main. Live-cloud and separate-host integration remain unverified. Stopping condition: every targeted node validates its native files before preparation returns; producer recovery reuses compatible publications; workers restore without ingesting; shutdown preserves Ray and artifacts. Pinned snapshot handles reject replaced generations. Provisioning and distributed training orchestration are outside scope. Change map
|
2c1621a to
d269f12
Compare
…tion (#585) ## Summary Remove the process-global principal store and authenticate provider connections with explicit `Principal` values. Engine connectors normalize convenience identities once and pass the same principal to their backends. - Give each Snowflake/BigQuery connector a lazy connection owner shared by its source and sink. Serialize configuration only; close resources explicitly with `close()` or best effort through `__del__`. - Keep Snowflake stage filesystems' connection owner alive while they are in use. Reconnect even when closing a stale session fails. - Normalize omitted S3/GCS/ADLS/BigQuery identities into explicit ambient identities. Add `ADLSIdentity()` for local Azure credential discovery while preserving hosted workload identity requirements. - Remove registry APIs, authentication lookup/fallback, session adapter inheritance, and the unused `StageArtifactLocation`. Update consumers, examples, and tests. **Breaking changes:** direct Snowflake/BigQuery provider callers must supply `connection=SnowflakeConnection(principal)` or `connection=BigQueryConnection(principal)`. Object-store backend constructors require `identity=principal`, including for ambient authentication. Names, IDs, slugs, `IdentityRef`, and `DirectIdentity` no longer supply authentication; use `identity.principal` or construct a `Principal`. The BigQuery/Snowflake provider-global `close(name)` APIs and `StageArtifactLocation` export are removed; use the owning connector and its stage filesystem. Public engine convenience identity constructors, supported ambient authentication, and remote SDK identity-management APIs remain available. This is the prerequisite for #584. Ray execution and connector serialization remain in that stacked PR. ## Change map [File-by-file change map](#585 (comment)) ## Testing Done Non-live provider suites passed: BigQuery 187, Snowflake 242, ADLS 335, S3 49, GCS 62. API identity tests: 181; core principal tests: 8. Repository Flake8/isort, focused Ruff, scoped mypy (imports skipped), and repository documentation checks passed. Engine test collection is blocked by the available native environment lacking diskgraph.sampling_plan. Live-cloud tests were not run. ## Checklist - [x] Documented breaking changes for direct provider callers and removed registry APIs. - [x] Updated current-behavior authentication and lifecycle documentation. - [x] Added ambient-authentication, cleanup, recovery, serialization, and isolation regressions.
d269f12 to
572302a
Compare
3120d73 to
c29d4a2
Compare
Summary
Add optional remote Ray preparation and validated native replication on top of #593's shared training-table preparation lifecycle.
This PR targets
tt_ingestion_preparation(#593), which targetsmain. #593 owns moving ingestion out of fit; this PR adds remote execution and storage integration.native_training_tables/<id>/; workers restore them without ingesting again.Redacted snapshots have separate identities. Pinned snapshot handles fail if their export generation is replaced. Earlier draft native caches without preparation completion metadata need rebuilding. Existing snapshot and row-export formats remain unchanged.
Change map
File-by-file change map
Testing Done
Checklist