mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
5d8d9d250220f487fe20bd7ade3c8134e1b710e2
Review: T2 test spec ACCEPT per §8B.3 — no blockers; notes routed
to QA Owner (L2-OS env = m01; shared bridge = no generalization
needed; V2 port audit produced during porting).
This checkpoint lands the T2 foundation without any wire-protocol
code yet:
core/frontend/testback/ (NEW, sw-owned)
Shared test doubles for both iSCSI and NVMe suites:
- StaticProvider: returns a preconfigured frontend.Backend on every Open
- RecordingBackend: captures every Read/Write call (offset, data)
- StaleRejectingBackend: ErrStalePrimary on all I/O
4 unit tests pinning fake behavior so assertions don't silently drift.
core/frontend/iscsi/ (NEW, start of package)
- errors.go: SCSI status + sense constants, SCSIError type,
NewCheckConditionStaleLineage / NewCheckConditionIllegalRequest
constructors (single source for the stale-lineage mapping).
- errors_test.go: 4 L0 tests on the error shape.
- boundary_guard_test.go: T2.L0.i5 + i6 combined AST guard —
no core/authority import, no core/adapter import (T2 tightens
beyond T1 per sketch §3), no composite-literal minting, no
dot-import. Extends PCDD-STUFFING-001 coverage to iscsi pkg.
Not yet landed (planned, next sessions per review plan):
- PDU framing + login + session + target
- SCSI READ/WRITE dispatch to frontend.Backend
- L0.i1 CommandReadWrite + L0.i2 StaleWrite + L0.i3 StaleRead + L0.i4 InvalidInput
- L1 in-process route tests
- cmd/blockvolume --iscsi-* wiring + L2-harness
- NVMe/TCP symmetric slice
- L2-OS enablement on m01
Tests green:
core/frontend: 18s (T1 regression intact)
core/frontend/iscsi: errors 4 + boundary guard 1 = 5
core/frontend/memback: regression intact
core/frontend/testback: 4
Languages
Go
84.5%
Rust
7.9%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%