mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-07 05:43:14 +00:00
refactor: expose scanner ECStore owner symbols (#3749)
This commit is contained in:
@@ -5,17 +5,16 @@ 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-facade-symbols`
|
||||
- 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/API-128/API-129/API-130/API-131`.
|
||||
- Based on: API-131 slice.
|
||||
- Branch: `overtrue/arch-scanner-owner-facade-symbols`
|
||||
- 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/API-128/API-129/API-130/API-131/API-132`.
|
||||
- Based on: API-132 slice.
|
||||
- PR type for this branch: `pure-move`
|
||||
- Runtime behavior changes: none.
|
||||
- Rust code changes: replace completed external owner root ECStore module
|
||||
aliases for notify, Swift, and S3 Select with explicit local symbols and
|
||||
wrapper functions.
|
||||
- CI/script changes: reject restored `ecstore_*` module aliases in completed
|
||||
external owner roots while allowing explicit owner-root facade symbols.
|
||||
- Docs changes: record the API-132 external owner facade symbol cleanup.
|
||||
- Rust code changes: replace the scanner owner root ECStore module aliases with
|
||||
explicit local symbols, type aliases, constants, and wrapper functions.
|
||||
- CI/script changes: treat scanner as a completed external owner root and reject
|
||||
restored `ecstore_*` module aliases there.
|
||||
- Docs changes: record the API-133 scanner owner facade symbol cleanup.
|
||||
|
||||
## Phase 0 Tasks
|
||||
|
||||
@@ -3895,6 +3894,20 @@ Status values: `[ ]` not started, `[~]` in progress, `[x]` complete, `[!]` block
|
||||
risk scan, branch freshness check, pre-commit quality gate, and
|
||||
three-expert review.
|
||||
|
||||
- [x] `API-133` Replace scanner owner module aliases with symbols.
|
||||
- Do: replace scanner owner-root `ecstore_*` module aliases with explicit
|
||||
local ECStore symbols, type aliases, constants, and wrapper functions.
|
||||
- Acceptance: scanner no longer exposes broad `ecstore_*` module aliases,
|
||||
nested scanner modules continue to consume scanner-local symbols, and the
|
||||
migration guard prevents reintroducing scanner owner-root module aliases.
|
||||
- Must preserve: scanner lifecycle config reads, versioning/replication
|
||||
helper traits, disk metadata access, tier listing, erasure checks,
|
||||
replication-heal queueing, config persistence, raw list traversal, and
|
||||
bucket usage replacement behavior.
|
||||
- Verification: focused scanner compile, completed-owner alias residual scan,
|
||||
migration/layer guards, formatting, diff hygiene, Rust risk scan, branch
|
||||
freshness check, pre-commit quality gate, and three-expert review.
|
||||
|
||||
## Next PRs
|
||||
|
||||
1. `pure-move`: continue pruning remaining facade compatibility and owner boundaries.
|
||||
@@ -3903,14 +3916,27 @@ Status values: `[ ]` not started, `[~]` in progress, `[x]` complete, `[!]` block
|
||||
|
||||
| Expert | Status | Notes |
|
||||
|---|---|---|
|
||||
| Quality/architecture | pass | API-132 replaces completed notify, Swift, and S3 Select owner-root ECStore module aliases with explicit local symbols and wrappers. |
|
||||
| Migration preservation | pass | Notify config persistence, Swift bucket metadata access, and S3 Select object-store behavior keep the same ECStore call paths through owner roots. |
|
||||
| Testing/verification | pass | Focused notify/Swift/S3 Select compile, completed-owner alias residual scan, migration/layer guards, formatting, diff hygiene, full pre-commit, and diff-only Rust risk scan passed. |
|
||||
| Quality/architecture | pass | API-133 replaces scanner owner-root ECStore module aliases with explicit local symbols and wrappers. |
|
||||
| Migration preservation | pass | Scanner lifecycle, disk, replication, tier, config, raw-list, and data-usage call paths keep the same ECStore targets through scanner-local symbols. |
|
||||
| Testing/verification | pass | Focused scanner compile, completed-owner alias residual scan, migration/layer guards, formatting, diff hygiene, full pre-commit, and diff-only Rust risk scan passed. |
|
||||
|
||||
## Verification Notes
|
||||
|
||||
Passed before push:
|
||||
|
||||
- Issue #660 API-133 current slice:
|
||||
- `cargo check --tests -p rustfs-scanner`: 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.
|
||||
- `make pre-commit`: passed.
|
||||
- Scanner completed-owner module-alias residual scan: passed.
|
||||
- Rust risk scan: diff-only scan found explicit symbol imports and wrapper
|
||||
calls only; no new unwrap/expect, panic/todo/unsafe, or risky behavior
|
||||
added.
|
||||
|
||||
- Issue #660 API-132 current slice:
|
||||
- `cargo check --tests -p rustfs-notify -p rustfs-s3select-api -p rustfs-protocols --features rustfs-protocols/swift`: passed.
|
||||
- `cargo fmt --all`: passed.
|
||||
|
||||
Reference in New Issue
Block a user