Skip to content

fix: fix some disabled ut in FileStoreCommitImplTest#148

Merged
zjw1111 merged 7 commits intoalibaba:mainfrom
zjw1111:fix-commit-test
Feb 26, 2026
Merged

fix: fix some disabled ut in FileStoreCommitImplTest#148
zjw1111 merged 7 commits intoalibaba:mainfrom
zjw1111:fix-commit-test

Conversation

@zjw1111
Copy link
Collaborator

@zjw1111 zjw1111 commented Feb 25, 2026

Purpose

Linked issue: close #xxx

Tests

TEST_F(FileStoreCommitImplTest, TestCommitWithConflictSnapshotAndRetryTenTimes)
TEST_F(FileStoreCommitImplTest, TestCommitWithConflictSnapshotAndRetryOnce)
TEST_F(FileStoreCommitImplTest, TestCommitWithAtomicWriteSnapshotTimeoutAndActuallySucceed)

API and Format

Documentation

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request fixes disabled unit tests in FileStoreCommitImplTest by refactoring the mock filesystem setup approach and reorganizing includes to follow project conventions.

Changes:

  • Enabled three previously disabled tests related to commit conflict handling and atomic write timeout scenarios
  • Refactored mock filesystem setup to use WithFileSystem() instead of FILE_SYSTEM option, allowing direct access to the mock object
  • Reorganized include statements in multiple files to follow the project convention (system headers first, then project headers, both alphabetically sorted)
  • Added git lfs pull instructions to documentation

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/paimon/core/operation/file_store_commit_impl_test.cpp Enabled three disabled tests, refactored mock filesystem setup to use direct injection, changed lambda captures from reference to pointer, added wildcard EXPECT_CALL for ListDir
src/paimon/core/utils/tag_manager.cpp Reordered includes to follow convention (system headers before project headers)
src/paimon/core/catalog/renaming_snapshot_commit.h Reordered includes to follow convention
src/paimon/core/casting/string_to_timestamp_cast_executor.cpp Reordered includes to follow convention
docs/source/building.rst Added git lfs pull instruction to clone steps
README.md Added new section with git lfs pull instructions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Collaborator

@lxy-9602 lxy-9602 left a comment

Choose a reason for hiding this comment

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

+1

@zjw1111 zjw1111 merged commit ddeafbe into alibaba:main Feb 26, 2026
8 checks passed
lszskye pushed a commit to lszskye/paimon-cpp that referenced this pull request Feb 28, 2026
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.

3 participants