Skip to content

Conversation

@scovich
Copy link
Collaborator

@scovich scovich commented Oct 29, 2025

What changes are proposed in this pull request?

A whole bunch of unit tests are async code masquerading as sync, by various hacks to obtain an executor and block on futures produced by object_store and parquet calls. Clean up the mess by plumbing async through as appropriate.

How was this change tested?

Test-only change.

LogPathFileType::MultiPartCheckpoint {
part_num,
num_parts,
} => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

NOTE: This PR is best review with whitespace ignored, so these big indentation changes don't clutter the diff.

Comment on lines +60 to +61
#[tokio::test]
async fn test_create_checkpoint_metadata_batch() -> DeltaResult<()> {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The changes in this PR are extremely mechanical: add async, .await, and #[tokio::test] annotations... plus cargo fmt and indentation noise.

@github-actions github-actions bot added the breaking-change Change that require a major version bump label Oct 29, 2025
@scovich scovich removed the breaking-change Change that require a major version bump label Oct 29, 2025
@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

❌ Patch coverage is 86.71096% with 40 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.32%. Comparing base (70143ca) to head (46d9b13).

Files with missing lines Patch % Lines
kernel/src/checkpoint/tests.rs 60.46% 0 Missing and 17 partials ⚠️
kernel/src/log_segment/tests.rs 93.22% 0 Missing and 13 partials ⚠️
kernel/src/listed_log_files.rs 77.41% 7 Missing ⚠️
kernel/src/snapshot/builder.rs 40.00% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1438      +/-   ##
==========================================
+ Coverage   84.85%   85.32%   +0.47%     
==========================================
  Files         119      119              
  Lines       30961    32336    +1375     
  Branches    30961    32336    +1375     
==========================================
+ Hits        26271    27590    +1319     
- Misses       3408     3413       +5     
- Partials     1282     1333      +51     

☔ 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.

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.

1 participant