mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-07 05:43:14 +00:00
refactor: remove RustFS owner compat bridges (#3743)
This commit is contained in:
@@ -5,17 +5,17 @@ Status values: `[ ]` not started, `[~]` in progress, `[x]` complete, `[!]` block
|
||||
## Current Context
|
||||
|
||||
- Issue: [`rustfs/backlog#660`](https://github.com/rustfs/backlog/issues/660)
|
||||
- Branch: `overtrue/arch-external-owner-compat-cleanup`
|
||||
- Baseline: completed `C-011/C-012/C-013/API-055/API-059/API-079/API-080/API-081/API-082/API-083/API-084/API-085/API-086/API-087/API-088/API-089/API-090/API-091/API-092/API-093/API-094/API-095/API-096/API-097/API-098/API-099/API-100/API-101/API-102/API-103/API-104/API-105/API-106/API-107/API-108/API-109/API-110/API-111/API-112/API-113/API-114/API-115/API-116/API-117/API-118/API-119/API-120/API-121/API-122/API-123/API-124/API-125/API-126`.
|
||||
- Based on: API-126 slice.
|
||||
- Branch: `overtrue/arch-rustfs-owner-compat-cleanup`
|
||||
- Baseline: completed `C-011/C-012/C-013/API-055/API-059/API-079/API-080/API-081/API-082/API-083/API-084/API-085/API-086/API-087/API-088/API-089/API-090/API-091/API-092/API-093/API-094/API-095/API-096/API-097/API-098/API-099/API-100/API-101/API-102/API-103/API-104/API-105/API-106/API-107/API-108/API-109/API-110/API-111/API-112/API-113/API-114/API-115/API-116/API-117/API-118/API-119/API-120/API-121/API-122/API-123/API-124/API-125/API-126/API-127`.
|
||||
- Based on: API-127 slice.
|
||||
- PR type for this branch: `pure-move`
|
||||
- Runtime behavior changes: none.
|
||||
- Rust code changes: remove external owner storage compatibility bridges from
|
||||
IAM root, heal, and scanner, then route their consumers directly through
|
||||
owner API definitions.
|
||||
- CI/script changes: allow migrated owner roots to import ECStore facade APIs
|
||||
directly and reject reintroduced IAM/heal/scanner bridge modules.
|
||||
- Docs changes: record the API-127 external owner bridge cleanup.
|
||||
- Rust code changes: remove RustFS runtime owner storage compatibility bridges
|
||||
from app, admin, and storage, then route consumers directly through owner API
|
||||
definitions.
|
||||
- CI/script changes: allow migrated RustFS owner roots to import ECStore facade
|
||||
APIs directly and reject reintroduced app/admin/storage bridge modules.
|
||||
- Docs changes: record the API-128 RustFS owner bridge cleanup.
|
||||
|
||||
## Phase 0 Tasks
|
||||
|
||||
@@ -791,6 +791,19 @@ Status values: `[ ]` not started, `[~]` in progress, `[x]` complete, `[!]` block
|
||||
- Verification: focused IAM/heal/scanner compile coverage, external owner
|
||||
bridge residual scan, migration and layer guards, formatting, diff hygiene,
|
||||
Rust risk scan, and three-expert review.
|
||||
- [x] `API-128` Remove RustFS owner compatibility bridges.
|
||||
- Completed slice: move app, admin, and storage bridge contracts into their
|
||||
owner modules, delete their local `storage_compat.rs` bridge modules, and
|
||||
update consumers to import owner APIs directly.
|
||||
- Acceptance: RustFS app, admin, and storage no longer route through local
|
||||
storage compatibility bridges; migration rules reject deleted files, module
|
||||
declarations, or bridge consumers.
|
||||
- Must preserve: app object/multipart/bucket behavior, admin route and
|
||||
config contracts, storage access/SSE/RPC behavior, object DTO aliases,
|
||||
bucket metadata helpers, and ECStore facade ownership.
|
||||
- Verification: focused RustFS compile coverage, RustFS owner bridge
|
||||
residual scan, migration and layer guards, formatting, diff hygiene, Rust
|
||||
risk scan, and three-expert review.
|
||||
- [x] `G-012` Inventory placement and repair invariants.
|
||||
- Acceptance:
|
||||
[`placement-repair-invariants.md`](placement-repair-invariants.md) records
|
||||
@@ -3824,14 +3837,27 @@ Status values: `[ ]` not started, `[~]` in progress, `[x]` complete, `[!]` block
|
||||
|
||||
| Expert | Status | Notes |
|
||||
|---|---|---|
|
||||
| Quality/architecture | pass | API-127 removes only external owner bridge modules and keeps call sites on explicit owner APIs. |
|
||||
| Migration preservation | pass | The migration guard now rejects deleted IAM-root, heal, and scanner bridge files, module declarations, and bridge consumers. |
|
||||
| Testing/verification | pass | Focused IAM/heal/scanner compile, residual scan, migration guard, layer guard, formatting, diff hygiene, and diff-only Rust risk scan passed. |
|
||||
| Quality/architecture | pass | API-128 removes only RustFS owner bridge modules and keeps call sites on explicit owner APIs. |
|
||||
| Migration preservation | pass | The migration guard now rejects deleted app, admin, and storage bridge files, module declarations, and bridge consumers. |
|
||||
| Testing/verification | pass | Focused RustFS compile, residual scan, migration guard, layer guard, formatting, diff hygiene, and diff-only Rust risk scan passed. |
|
||||
|
||||
## Verification Notes
|
||||
|
||||
Passed before push:
|
||||
|
||||
- Issue #660 API-128 current slice:
|
||||
- `cargo check --tests -p rustfs`: passed.
|
||||
- `cargo fmt --all`: passed.
|
||||
- `cargo fmt --all --check`: passed.
|
||||
- `git diff --check`: passed.
|
||||
- `./scripts/check_architecture_migration_rules.sh`: passed.
|
||||
- `./scripts/check_layer_dependencies.sh`: passed.
|
||||
- RustFS owner compatibility bridge residual scan: passed.
|
||||
- Rust risk scan: diff-only scan found path-rewritten existing test unwraps,
|
||||
test expects, and part-number casts only; no new risky behavior added.
|
||||
- `make pre-commit`: passed, including 6509 nextest tests passed and 111
|
||||
skipped.
|
||||
|
||||
- Issue #660 API-127 current slice:
|
||||
- `cargo check --tests -p rustfs-iam -p rustfs-heal -p rustfs-scanner`: passed.
|
||||
- `cargo fmt --all`: passed.
|
||||
|
||||
Reference in New Issue
Block a user