Skip to content

test: add VersionTarget::AtTimestamp and IncrementalFrom to TestTableBuilder#2652

Open
DrakeLin wants to merge 3 commits into
delta-io:mainfrom
DrakeLin:drake/test-builder-at-timestamp-incremental-from
Open

test: add VersionTarget::AtTimestamp and IncrementalFrom to TestTableBuilder#2652
DrakeLin wants to merge 3 commits into
delta-io:mainfrom
DrakeLin:drake/test-builder-at-timestamp-incremental-from

Conversation

@DrakeLin

@DrakeLin DrakeLin commented May 29, 2026

Copy link
Copy Markdown
Collaborator

What changes are proposed in this pull request?

Adds two new VersionTarget variants to the TestTableBuilder framework and wires them into the default cross-product sweep:

  • AtTimestamp(i64) - timestamp time travel via history_manager::latest_version_as_of.
  • IncrementalFrom { from: u64, to: u64 } - build a base snapshot at from, then incrementally update to a specific target to (vs IncrementalToLatest which always goes to latest).

Two canonical sweep rows are added:

  • version_at_timestamp_max() uses i64::MAX so the call resolves to the latest version uniformly across ICT-enabled and file-modification-timestamp tables.
  • version_incremental_from_mid_to_pre_latest() goes from mid to latest - 1 to exercise the partial-replay path to a non-latest target.

Tracking issue: #2526

How was this change tested?

  • test_version_targets in test-utils/src/table_builder.rs extended with the two new variants.

@codecov

codecov Bot commented May 29, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.70%. Comparing base (c2b654c) to head (9fe9304).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
test-utils/src/table_builder.rs 75.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2652      +/-   ##
==========================================
- Coverage   88.71%   88.70%   -0.01%     
==========================================
  Files         193      193              
  Lines       63257    63269      +12     
  Branches    63257    63269      +12     
==========================================
+ Hits        56116    56125       +9     
- Misses       4966     4969       +3     
  Partials     2175     2175              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@scottsand-db

Copy link
Copy Markdown
Collaborator

@DrakeLin does this need review?

@DrakeLin DrakeLin requested review from rliao147 and scottsand-db June 3, 2026 00:37

@scottsand-db scottsand-db left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Some comments / questions

Comment thread kernel/tests/integration/cross_product/mod.rs Outdated
Comment thread test-utils/src/lib.rs
Comment thread test-utils/src/lib.rs
@DrakeLin DrakeLin requested a review from scottsand-db June 7, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants