Repository navigation
Fix the Kumo Transaction DiskGraph example startup - #524
Conversation
Change mapThe Blueprint example failed at startup with current
|
|
Note
|
|
/ok to test dff4ff4 |
alan-kumo
left a comment
There was a problem hiding this comment.
Two follow-ups on the native smoke and the example quickstart.
|
/ok to test 3a1b17c |
alan-kumo
left a comment
There was a problem hiding this comment.
Before merging, the GCS check still needs attention. GitHub failed to fetch its workflow environment before any tests ran. The change-map check passed on rerun.
Summary
Restore the Kumo Transaction Blueprint v2 example on current
kumo-pytorch. The runner usedDiskGraphEngine(index=args.index or args.output / "index", ...). That meant every invocation passedindex=, including runs that omitted the--indexflag. The current constructor raises aTypeErrorbefore the runner can prepare data or start training.The runner came in through the Transaction source sync in #520. Its dependency file follows Kumo
main, which moved to managed DiskGraph storage in #403.Runner behavior
Datasettoprepare()with a currentDiskGraphEngine(). It still supplies the training cutoff for column statistics during ingest. Kumo assigns the build ID and stores the base under<scratch-dir>/indexes/<build-id>. The runner prints the completed index path.--index PATHopens the stored schema and build identity throughDiskGraphEngine.from_snapshot(). The index must be under the same configured scratch root. The runner prepares from that binding and reads the anchor Parquet separately, so training works after the original source tables are moved.kumo-settingsto the example's Git requirements alongsidekumo-pytorchanddiskgraph. The README now refreshes all three together. Pin each Git requirement to the same SHA for a reproducible setup.The example README and changelog explain the new options. The sync guide and inventory record the local adaptations so they can be carried forward during the next Transaction source sync.
Usage and compatibility
The example README now starts its quickstart with
cd packages/experimental/kumo-transactionso the install command can find the example requirements. With the example dependencies installed and seed data prepared, run the commands below from the Kumo Engine repository root. Use the index path printed by the first run as the--indexvalue in the second.cd packages/experimental/kumo-transaction python examples/kumo-engine/run.py --scratch-dir ./kumo-scratch python examples/kumo-engine/run.py \ --scratch-dir ./kumo-scratch \ --index ./kumo-scratch/indexes/BUILD_ID \ --anchors ./outputs/kumo-engine/data/anchors.parquet--scratch-dirdefaults to~/.cache/kumo-enginewhen omitted. Pass the storage root to--scratch-dirand the completed index directory beneath it to--index. Older indexes without a managed build ID need to be rebuilt from Parquet.Native CI
The
kumo-pytorch DiskGraphworkflow runs the example smoke in a separatekumo-transaction-diskgraph-smokejob using its existing DiskGraph wheel artifact. The job importsdiskgraphandkumo.pytorch.apibefore pytest so missing dependencies fail the check. Changes to the example, smoke test, smoke configuration, or Transaction package metadata trigger the workflow alongside the existing backend paths.After integrating
mainwith merged #399, a separate commit migrates the Parquet column-rename test torequest_batches(). The test binds Python requests and accounted for five failures in the native PyTorch suite onmain. Baseline CIChange map
File-by-file change map.
Testing Done
src/tfmfiles.mainsource tree. The local PyTorch suite had 2,935 passes and three CUDA-only skips, including all 13 Parquet column-rename tests.Checklist