Skip to content

test: hold Transaction V2 action sets to legacy conflict parity - #10159

Open
wjones127 wants to merge 5 commits into
will/transaction-v2-action-constructorsfrom
will/oss-2605-parity-harness
Open

wjones127 wants to merge 5 commits into
will/transaction-v2-action-constructorsfrom
will/oss-2605-parity-harness

Conversation

@wjones127

Copy link
Copy Markdown
Contributor

Summary

Adds a parity harness so each conflict-parity milestone can flip table cells instead of writing new tests. Transaction V2 action sets are staged as scenarios in #9220's end-to-end conflict matrix. Each one names the legacy scenarios it stands in for (Scenario::analogues). A new check fails any cell that is stricter than its legacy analogues' cells (Lands > Retryable > Incompatible), unless the cell is marked * as a known gap and has a reason in PARITY_GAPS.

                          | ap dl ... cf va vc v+
append                    | L  L  ... L  R* R* R*      <- legacy over action set
action_append             | R* R* ... R* L  L  L       <- action set over legacy / action
action_append_and_config  | R* R* ... R  L  R  R
  • Scenarios: action_append (AddFragment + AddDataFile, reusing the files a legacy append wrote), action_update_config (ConfigUpdate on the same schema-metadata key as update_config), and action_append_and_config (both in one commit, held to the stricter of Append and UpdateConfig).
  • The table is seeded with current behaviour. Action-vs-action pairs resolve as they do today. Every mixed pair fails closed in check_action_txn and is marked * wherever legacy does better.
  • Known gaps still run and assert today's verdict, so closing one means editing the grid. A * on a cell that is no longer a gap, or a PARITY_GAPS entry that no * cell uses, also fails.
  • Landed cells go through test: characterize legacy conflict resolution end to end #9220's invariant battery and oracle as before.
  • Renames test: characterize legacy conflict resolution end to end #9220's scenarios::Footprint to Placement so it doesn't clash with lance-table's Footprint.

The dataset-free footprint/verdict tier is left to conflict parity 1/5, which adds the APIs it would exercise.

Stacked: based on #8646 with #9220 merged in, so the diff also contains #9220's conflict_matrix module until that lands. This PR's own changes are the last two commits.

Evidence

cargo test -p lance --lib conflict_matrix: 53 tests pass in about 2s total. I checked that the reason check fails when a PARITY_GAPS entry is removed: (append over action_append_and_config) is marked * but neither side has a reason in PARITY_GAPS. Clippy was run on -p lance --tests, not the whole workspace.

Merge Risk

Door: two-way. Test-only.
Blast Radius: none.

🤖 Generated with Claude Code

@wjones127

Copy link
Copy Markdown
Contributor Author

Rebased onto current #8646 head (8a5f8fd). Re-merged #9220 (abde8dd) and added mem_wal_dir_id: None to its Update fixture. The action-append fixture is ported to UserStep/FieldRef, with AddDataFile.base and empty file.fields. No cell changes.

@wjones127
wjones127 force-pushed the will/oss-2605-parity-harness branch from 7c955f0 to e3a5eae Compare November 3, 2026 23:43
@wjones127
wjones127 force-pushed the will/oss-2605-parity-harness branch from e3a5eae to a594a8e Compare November 12, 2026 23:14
@wjones127
wjones127 force-pushed the will/oss-2605-parity-harness branch from e70e164 to becee80 Compare November 18, 2026 01:46
@lance-gatekeeper lance-gatekeeper Bot removed the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 19, 2026
@wjones127
wjones127 removed this pull request from stack #8647 November 19, 2026 02:01
@wjones127
wjones127 added this pull request to stack #11242 November 19, 2026 02:02
lance-gatekeeper[bot]

This comment was marked as outdated.

@lance-gatekeeper lance-gatekeeper Bot added K-approved Latest Gatekeeper recommendation permits acceptance. and removed K-approved Latest Gatekeeper recommendation permits acceptance. labels Nov 19, 2026
@wjones127
wjones127 force-pushed the will/oss-2605-parity-harness branch from ff2805d to e6ae452 Compare November 30, 2026 17:54
@lance-gatekeeper lance-gatekeeper Bot removed the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 30, 2026
lance-gatekeeper[bot]

This comment was marked as outdated.

@lance-gatekeeper lance-gatekeeper Bot added K-approved Latest Gatekeeper recommendation permits acceptance. and removed K-approved Latest Gatekeeper recommendation permits acceptance. labels Nov 30, 2026
lance-gatekeeper[bot]

This comment was marked as outdated.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 30, 2026
@wjones127
wjones127 removed this pull request from stack #11242 November 30, 2026 18:23
@wjones127
wjones127 added this pull request to stack #11653 November 30, 2026 18:23
@wjones127
wjones127 force-pushed the will/oss-2605-parity-harness branch from 1bee96c to 1426acf Compare November 30, 2026 18:32
@wjones127 wjones127 removed A-python Python bindings A-index Vector index, linalg, tokenizer labels Nov 30, 2026
lance-gatekeeper[bot]

This comment was marked as outdated.

wjones127 and others added 5 commits December 1, 2026 18:43
…the oracle

The oracle's metadata fingerprint claimed to cover which indices exist over
which fields but never read them, so a rebase that dropped an index matched
serial execution. Add one line per user index (system indices excluded), and
sort only the data rows so the schema and metadata headers stay first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Gate recommendation: approve.

No merge-blocking issues found in the rebased test-only diff. The focused conflict-matrix suite passes on this revision, including the index-presence regression.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants