From d37451ea1fedb16a5e0354701e0b39c441bbae5d Mon Sep 17 00:00:00 2001 From: wzcheng99 Date: Thu, 23 Apr 2026 17:33:45 -0700 Subject: [PATCH] T4a-6 doc cleanup: retract overclaim + fix matrix wording in header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit QA round-22 noted the l2_integration_test.go file header still claimed the L2 test proves "all T4a landed commits compose correctly" and that walstore was "non-gating" — both stale after the f6ae662 follow-up. Body comments (runMatrix + walstoreFactory) were updated in that commit; the file header was missed. This is a documentation-only cleanup: - Scope claim: now explicitly scopes T4a-6 to T4a-1..T4a-4 + the StorageBackend WriteObserver hook. Adds a Scope note pointing at core/host/volume/apply_fact_test.go as the T4a-5 host-wire coverage. - Matrix wording: walstore described as a second gating row in the current harness; the earlier "non-gating per BUG-007" language removed. Matches runMatrix + walstoreFactory comments. No code change; tests unaffected. --- .../core/replication/l2_integration_test.go | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/seaweed-block/core/replication/l2_integration_test.go b/seaweed-block/core/replication/l2_integration_test.go index 30a9a26e21..e76a66e88c 100644 --- a/seaweed-block/core/replication/l2_integration_test.go +++ b/seaweed-block/core/replication/l2_integration_test.go @@ -2,16 +2,26 @@ package replication // T4a-6 L2 subprocess integration test. // -// Exercises the full frontend→storage→replication→transport→replica -// wire using real TCP between two in-process BlockExecutor + Replica -// Listener pairs. This is the T4a batch close gate per mini-plan -// §4, and the proof that all T4a landed commits (T4a-1 envelope bump, -// T4a-2 Ship, T4a-3 ReplicaPeer, T4a-4 ReplicationVolume, T4a-5 -// Host wire) compose correctly at the integration seam. +// Exercises the storage→replication→transport→replica wire using +// real TCP between two in-process BlockExecutor + ReplicaListener +// pairs. Covers T4a-1 through T4a-4 plus the T4a-6 StorageBackend +// WriteObserver hook added in this landing. // -// Matrix: smartwal is the sign-bearing substrate (MUST pass). -// walstore is reported non-gating per the T3 matrix discipline -// (may fail on replay-post-crash per BUG-007; non-blocking here). +// Scope note (T4a-6 follow-up): T4a-5's Host authority-callback +// ordering (install-or-refuse, fail-closed) is covered by +// core/host/volume/apply_fact_test.go, NOT by this file — the +// integration test here drives ReplicationVolume.UpdateReplicaSet +// directly and bypasses Host.applyFact. Both sets of tests +// together cover the T4a landing; see 2ed72bd for the honest +// separation. +// +// Matrix: smartwal is the sign-bearing substrate. walstore is a +// second row that also gates in this harness (QA finding #4 +// follow-up removed the earlier "non-gating" fiction; Go's testing +// framework has no clean demote-subtest-failure API, so pretending +// walstore could fail without failing the test was incorrect). If +// walstore ever regresses under BUG-007 the test fails honestly +// and we invest in a real demotion harness. // // Frontend is approximated via direct StorageBackend.Write calls. // The full iSCSI/NVMe PDU layer is NOT exercised (iSCSI and NVMe