Skip to content

Comments

refactor: Split lakefs service to new crate#7046

Merged
Xuanwo merged 5 commits intomainfrom
extract-lakefs-service
Dec 18, 2025
Merged

refactor: Split lakefs service to new crate#7046
Xuanwo merged 5 commits intomainfrom
extract-lakefs-service

Conversation

@koushiro
Copy link
Member

Which issue does this PR close?

Part of #6829
Closes #6905

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

AI Usage Statement

Zed with GPT-5.1 Codex-Max

Copilot AI review requested due to automatic review settings December 17, 2025 04:38
@koushiro koushiro requested a review from Xuanwo as a code owner December 17, 2025 04:38
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor" labels Dec 17, 2025
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 PR refactors the lakeFS service implementation by extracting it from the monolithic core module into a standalone crate (opendal-service-lakefs), following the pattern established by other service implementations like IPFS and memcached.

Key Changes:

  • Created new opendal-service-lakefs crate with its own Cargo.toml
  • Updated imports across all lakeFS source files to use opendal_core::* instead of crate::*
  • Modified feature flags and dependencies in parent crates to reference the new standalone crate

Reviewed changes

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

Show a summary per file
File Description
core/services/lakefs/Cargo.toml New Cargo manifest for the standalone lakefs service crate
core/services/lakefs/src/lib.rs Updated to serve as the crate root with proper module-level documentation and opendal_core registry integration
core/services/lakefs/src/backend.rs Updated imports from crate::* to opendal_core::*
core/services/lakefs/src/writer.rs Updated imports and added documentation comment for the writer struct
core/services/lakefs/src/lister.rs Updated imports and added documentation comment for the lister struct
core/services/lakefs/src/deleter.rs Updated imports and added documentation comment for the deleter struct
core/services/lakefs/src/core.rs Updated imports and added documentation comment for the core struct
core/services/lakefs/src/error.rs Updated imports in both main code and test module
core/services/lakefs/src/config.rs Updated imports and simplified error construction; improved test functions to return Result
core/services/lakefs/src/docs.md Updated example code to import from opendal_service_lakefs instead of opendal_core::services
core/core/src/services/mod.rs Removed lakefs module declaration (moved to separate crate)
core/core/Cargo.toml Removed services-lakefs feature flag from core crate
core/Cargo.toml Updated services-lakefs feature to depend on new opendal-service-lakefs crate and added crate dependency
core/src/lib.rs Added re-export of opendal_service_lakefs under services module
core/Cargo.lock Added new opendal-service-lakefs package with its dependencies

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

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 18, 2025
@Xuanwo Xuanwo merged commit 1928b61 into main Dec 18, 2025
701 of 707 checks passed
@Xuanwo Xuanwo deleted the extract-lakefs-service branch December 18, 2025 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor" size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[core split] Service: lakefs

2 participants