Repository navigation
Align keyless tests with ordering and relation guarantees - #314
Conversation
Change mapSiyang requested two non-blocking test changes in his review of #267. The existing subset test imposes an equal-time tie-order promise excluded by G-KEYLESS-001 / G-SERVING-001; DiskGraph already refuses relations without exactly one PK side, but the keyless cases lacked direct negative coverage.
Focused verification: keyless and DiskGraph unsupported suites with Stopping condition: both requested test changes are covered. Runtime behavior, guarantees, and unrelated tests remain unchanged. |
|
Note
|
Victsm
left a comment
There was a problem hiding this comment.
The tests now match the documented preparation-local keyless identity and ordering contract, while retaining early refusal for unsupported keyless relationships. Focused regression tests passed.
|
/ok to test 7efee31 |
Summary
Follow-up to Siyang's review of #267, addressing both non-blocking test comments.
The serving-subset test asserted that an equal-timestamp, limited keyless history must choose the same row before and after rebuilding from a subset. G-KEYLESS-001 and G-SERVING-001 deliberately leave keyless IDs and equal-time tie ordering local to each preparation. Remove this test so the suite does not promise behavior the API and DiskGraph do not guarantee. Existing occurrence-preservation and serving graph checks remain.
Add parameterized DiskGraph coverage for relations joining two keyless tables and relations joining a keyless column to a keyed table's non-PK column. Both shapes lack the one primary-key side DiskGraph requires. Assert that public
check()reportsDG-RELATION-KEYSat the offending relation andprepare()refuses the contract before opening the engine. The in-memory positive test remains because its reference joins support these relation columns.This changes one test file; runtime behavior and published guarantees are unchanged.
Change map
File-by-file change map and scope.
Testing Done
From
packages/experimental/kumo-pytorch, using the workspace environment andPYTHONPATH=src CUDA_VISIBLE_DEVICES='':python -m pytest -q tests/test_keyless_tables.py tests/test_diskgraph_unsupported.py --require-imports— 56 passed, including DiskGraph coverage.ruff check tests/test_keyless_tables.pyandruff format --check tests/test_keyless_tables.py— passed.git diff --check— passed.Checklist