mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
Merge pull request #73 from seaweedfs/phase162-nvme-rdma-standalone-listener-skeleton-gate
phase162: add nvme rdma listener start skeleton
This commit is contained in:
commit
1881dc772b
12 files changed
+302
-40
No files matched your search
@@ -71,21 +71,61 @@ func TestNVMeFrontendCapabilitiesExposeRDMAUnsupportedNoListener(t *testing.T) {
|
||||
t.Fatalf("capabilities=%d want 2", len(caps))
|
||||
}
|
||||
tcp := caps[0]
|
||||
if tcp.Protocol != "nvme" || tcp.Transport != "tcp" || !tcp.Supported || !tcp.ListenerImplemented || !tcp.ListenerStarted {
|
||||
if tcp.Protocol != "nvme" || tcp.Transport != "tcp" || !tcp.Supported || !tcp.ListenerImplemented || !tcp.ListenerStarted || !tcp.StartAllowed {
|
||||
t.Fatalf("tcp capability unexpected: %+v", tcp)
|
||||
}
|
||||
rdma := caps[1]
|
||||
if rdma.Protocol != "nvme" || rdma.Transport != "rdma" || rdma.Supported || rdma.ListenerImplemented || rdma.ListenerStarted {
|
||||
if rdma.Protocol != "nvme" || rdma.Transport != "rdma" || rdma.Supported || rdma.ListenerImplemented || rdma.ListenerStarted || rdma.StartAllowed {
|
||||
t.Fatalf("rdma capability must stay unsupported with no listener: %+v", rdma)
|
||||
}
|
||||
if rdma.Reason != "nvme_rdma_transport_unsupported" {
|
||||
t.Fatalf("rdma reason=%q want nvme_rdma_transport_unsupported", rdma.Reason)
|
||||
}
|
||||
if rdma.StartReason != "nvme_rdma_listener_disabled" {
|
||||
t.Fatalf("rdma startReason=%q want nvme_rdma_listener_disabled", rdma.StartReason)
|
||||
}
|
||||
if len(rdma.Preflight) != 1 || rdma.Preflight[0].Name != "nvme_rdma_module" || rdma.Preflight[0].Available {
|
||||
t.Fatalf("rdma preflight unexpected: %+v", rdma.Preflight)
|
||||
}
|
||||
}
|
||||
|
||||
func TestNVMERDMAListenerStartDecisionDisabledByDefault(t *testing.T) {
|
||||
got := nvmeRDMAListenerStartDecision(false, nil)
|
||||
if got.allowed || got.reason != "nvme_rdma_listener_disabled" {
|
||||
t.Fatalf("start decision=%+v want disabled refusal", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestNVMERDMAListenerStartDecisionMapsPreflightFailure(t *testing.T) {
|
||||
got := nvmeRDMAListenerStartDecision(true, []volume.FrontendTransportPreflightFact{{
|
||||
Name: "rdma_device",
|
||||
Available: false,
|
||||
Reason: "rdma_device_missing",
|
||||
}})
|
||||
if got.allowed || got.reason != "rdma_device_missing" {
|
||||
t.Fatalf("start decision=%+v want rdma_device_missing", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestNVMERDMAListenerStartDecisionStillUnsupportedAfterPreflight(t *testing.T) {
|
||||
got := nvmeRDMAListenerStartDecision(true, []volume.FrontendTransportPreflightFact{{
|
||||
Name: "nvme_rdma_module",
|
||||
Available: true,
|
||||
Reason: "nvme_rdma_module_loaded",
|
||||
}, {
|
||||
Name: "rdma_device",
|
||||
Available: true,
|
||||
Reason: "rdma_device_present",
|
||||
}, {
|
||||
Name: "rdma_bind_address",
|
||||
Available: true,
|
||||
Reason: "rdma_bind_address_candidate",
|
||||
}})
|
||||
if got.allowed || got.reason != "nvme_rdma_transport_unsupported" {
|
||||
t.Fatalf("start decision=%+v want unsupported implementation", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestRDMABindAddressFactRejectsLoopback(t *testing.T) {
|
||||
got := rdmaBindAddressFact("127.0.0.1:4420")
|
||||
if got.Name != "rdma_bind_address" || got.Available || got.Reason != "rdma_bind_address_invalid" {
|
||||
|
||||
@@ -1008,6 +1008,7 @@ func nvmeFrontendCapabilities(nvmeListen string, listenerStarted bool) []volume.
|
||||
|
||||
func nvmeFrontendCapabilitiesWithRDMAPreflight(nvmeListen string, listenerStarted bool, rdmaFacts []volume.FrontendTransportPreflightFact) []volume.FrontendTransportCapability {
|
||||
tcpStarted := listenerStarted && nvmeListen != ""
|
||||
rdmaStart := nvmeRDMAListenerStartDecision(false, rdmaFacts)
|
||||
return []volume.FrontendTransportCapability{
|
||||
{
|
||||
Protocol: "nvme",
|
||||
@@ -1015,6 +1016,8 @@ func nvmeFrontendCapabilitiesWithRDMAPreflight(nvmeListen string, listenerStarte
|
||||
Supported: true,
|
||||
ListenerImplemented: true,
|
||||
ListenerStarted: tcpStarted,
|
||||
StartAllowed: true,
|
||||
StartReason: "implemented",
|
||||
Reason: "implemented",
|
||||
},
|
||||
{
|
||||
@@ -1023,12 +1026,31 @@ func nvmeFrontendCapabilitiesWithRDMAPreflight(nvmeListen string, listenerStarte
|
||||
Supported: false,
|
||||
ListenerImplemented: false,
|
||||
ListenerStarted: false,
|
||||
StartAllowed: rdmaStart.allowed,
|
||||
StartReason: rdmaStart.reason,
|
||||
Reason: "nvme_rdma_transport_unsupported",
|
||||
Preflight: append([]volume.FrontendTransportPreflightFact(nil), rdmaFacts...),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
type nvmeRDMAListenerStart struct {
|
||||
allowed bool
|
||||
reason string
|
||||
}
|
||||
|
||||
func nvmeRDMAListenerStartDecision(enabled bool, facts []volume.FrontendTransportPreflightFact) nvmeRDMAListenerStart {
|
||||
if !enabled {
|
||||
return nvmeRDMAListenerStart{allowed: false, reason: "nvme_rdma_listener_disabled"}
|
||||
}
|
||||
for _, fact := range facts {
|
||||
if !fact.Available {
|
||||
return nvmeRDMAListenerStart{allowed: false, reason: fact.Reason}
|
||||
}
|
||||
}
|
||||
return nvmeRDMAListenerStart{allowed: false, reason: "nvme_rdma_transport_unsupported"}
|
||||
}
|
||||
|
||||
func nvmeRDMAPreflightFacts(nvmeListen string) []volume.FrontendTransportPreflightFact {
|
||||
return []volume.FrontendTransportPreflightFact{
|
||||
nvmeRDMAModuleFact(),
|
||||
|
||||
@@ -103,6 +103,8 @@ type FrontendTransportCapability struct {
|
||||
Supported bool `json:"supported"`
|
||||
ListenerImplemented bool `json:"listenerImplemented"`
|
||||
ListenerStarted bool `json:"listenerStarted"`
|
||||
StartAllowed bool `json:"startAllowed"`
|
||||
StartReason string `json:"startReason,omitempty"`
|
||||
Reason string `json:"reason"`
|
||||
Preflight []FrontendTransportPreflightFact `json:"preflight,omitempty"`
|
||||
}
|
||||
|
||||
@@ -71,6 +71,8 @@ func TestStatusServer_FrontendCapabilitiesReportsTransportBoundary(t *testing.T)
|
||||
Supported: true,
|
||||
ListenerImplemented: true,
|
||||
ListenerStarted: true,
|
||||
StartAllowed: true,
|
||||
StartReason: "implemented",
|
||||
Reason: "implemented",
|
||||
},
|
||||
{
|
||||
@@ -79,6 +81,8 @@ func TestStatusServer_FrontendCapabilitiesReportsTransportBoundary(t *testing.T)
|
||||
Supported: false,
|
||||
ListenerImplemented: false,
|
||||
ListenerStarted: false,
|
||||
StartAllowed: false,
|
||||
StartReason: "nvme_rdma_listener_disabled",
|
||||
Reason: "nvme_rdma_transport_unsupported",
|
||||
Preflight: []FrontendTransportPreflightFact{{
|
||||
Name: "nvme_rdma_module",
|
||||
@@ -115,11 +119,11 @@ func TestStatusServer_FrontendCapabilitiesReportsTransportBoundary(t *testing.T)
|
||||
t.Fatalf("frontend transport count=%d want 2", len(body.FrontendTransports))
|
||||
}
|
||||
tcp := body.FrontendTransports[0]
|
||||
if tcp.Protocol != "nvme" || tcp.Transport != "tcp" || !tcp.Supported || !tcp.ListenerImplemented || !tcp.ListenerStarted {
|
||||
if tcp.Protocol != "nvme" || tcp.Transport != "tcp" || !tcp.Supported || !tcp.ListenerImplemented || !tcp.ListenerStarted || !tcp.StartAllowed {
|
||||
t.Fatalf("tcp capability unexpected: %+v", tcp)
|
||||
}
|
||||
rdma := body.FrontendTransports[1]
|
||||
if rdma.Protocol != "nvme" || rdma.Transport != "rdma" || rdma.Supported || rdma.ListenerImplemented || rdma.ListenerStarted || rdma.Reason != "nvme_rdma_transport_unsupported" {
|
||||
if rdma.Protocol != "nvme" || rdma.Transport != "rdma" || rdma.Supported || rdma.ListenerImplemented || rdma.ListenerStarted || rdma.StartAllowed || rdma.StartReason != "nvme_rdma_listener_disabled" || rdma.Reason != "nvme_rdma_transport_unsupported" {
|
||||
t.Fatalf("rdma capability unexpected: %+v", rdma)
|
||||
}
|
||||
if len(rdma.Preflight) != 1 || rdma.Preflight[0].Name != "nvme_rdma_module" || rdma.Preflight[0].Available {
|
||||
|
||||
@@ -78,6 +78,12 @@ explain why RDMA cannot start on the current host while preserving
|
||||
`supported=false`, `listenerStarted=false`, and the stable
|
||||
`nvme_rdma_transport_unsupported` reason.
|
||||
|
||||
Phase 162 adds the disabled-by-default listener start decision skeleton. The
|
||||
capability surface now carries `startAllowed=false` and a stable `startReason`
|
||||
for RDMA: default-disabled first, preflight failures when explicitly evaluated,
|
||||
and still `nvme_rdma_transport_unsupported` after preflight passes because no
|
||||
listener implementation exists yet.
|
||||
|
||||
## Product Gap
|
||||
|
||||
The missing product work is a real NVMe-oF/RDMA target path:
|
||||
@@ -125,6 +131,6 @@ NVMe/TCP: source-gated supported-lab product path.
|
||||
NVMe/RDMA/RoCE: host capability and external-library evidence only; product non-claim.
|
||||
```
|
||||
|
||||
The next useful product step is a standalone listener skeleton gate: keep the
|
||||
implementation disabled by default while defining the exact start path, failure
|
||||
mapping, and cleanup proof before live RDMA I/O.
|
||||
The next useful product step is a standalone listener implementation spike that
|
||||
can be tested only by the standalone live I/O gate; Kubernetes publish/attach
|
||||
and performance claims remain out of scope.
|
||||
@@ -103,6 +103,7 @@ The supported-lab claim is intentionally narrow:
|
||||
| 159 | NVMe/RDMA standalone listener design gate rejects fake TCP-over-RDMA path | PASS |
|
||||
| 160 | NVMe/RDMA transport adapter seam isolates TCP PDU wire path | PASS |
|
||||
| 161 | NVMe/RDMA standalone preflight/refusal facts surface module/device/bind evidence | PASS |
|
||||
| 162 | NVMe/RDMA listener start decision skeleton stays disabled by default | PASS |
|
||||
|
||||
Key QA sign-offs:
|
||||
|
||||
@@ -148,6 +149,7 @@ Key QA sign-offs:
|
||||
- `internal/docs/qa-assignments/phase159-nvme-rdma-standalone-listener-design-qa-signoff.md`
|
||||
- `internal/docs/qa-assignments/phase160-nvme-rdma-transport-adapter-seam-qa-signoff.md`
|
||||
- `internal/docs/qa-assignments/phase161-nvme-rdma-standalone-preflight-refusal-qa-signoff.md`
|
||||
- `internal/docs/qa-assignments/phase162-nvme-rdma-standalone-listener-skeleton-qa-signoff.md`
|
||||
|
||||
## Performance Baseline
|
||||
|
||||
|
||||
@@ -152,6 +152,9 @@ Seaweed Block can already demonstrate a narrow Kubernetes block-storage loop:
|
||||
unsupported reason.
|
||||
- Phase 161 adds read-only RDMA preflight facts for module, RDMA device, and
|
||||
bind-address evidence while preserving `supported=false` and no RDMA listener.
|
||||
- Phase 162 adds a disabled-by-default RDMA listener start decision skeleton:
|
||||
the product can report why start is not allowed, but still does not start an
|
||||
RDMA listener or claim live I/O.
|
||||
- Kubernetes NVMe/TCP mounted reconnect is source-gated through changed
|
||||
desired path-set evidence: CSI-node can connect a newly published desired
|
||||
NVMe path, prune the stale old host path for the same NQN, preserve pod
|
||||
|
||||
@@ -1,30 +1,8 @@
|
||||
# Current Plan: Phase 162 NVMe/RDMA Standalone Listener Skeleton Gate
|
||||
# Current Plan: Phase 163 NVMe/RDMA Standalone Listener Implementation Spike
|
||||
|
||||
Status: planning.
|
||||
|
||||
Phase 161 closed standalone RDMA preflight/refusal:
|
||||
|
||||
```text
|
||||
phase161_nvme_rdma_standalone_preflight_refusal_status=ok
|
||||
rdma_preflight_probe_present=true
|
||||
nvme_rdma_module_fact_reported=true
|
||||
rdma_device_fact_reported=true
|
||||
rdma_bind_address_fact_reported=true
|
||||
stable_failure_reasons_reported=true
|
||||
rdma_listener_still_not_started=true
|
||||
capability_endpoint_still_reports_rdma_unsupported=true
|
||||
tcp_behavior_unchanged=true
|
||||
phase161_decision=rdma_preflight_facts_surface_unsupported_state
|
||||
next_recommendation=phase162_nvme_rdma_standalone_listener_skeleton_gate
|
||||
```
|
||||
|
||||
## Goal
|
||||
|
||||
Define the disabled-by-default standalone RDMA listener skeleton. This phase
|
||||
should wire the start/refusal decision path and failure mapping without claiming
|
||||
RDMA live I/O or enabling Kubernetes publish/attach.
|
||||
|
||||
## Required Evidence
|
||||
Phase 162 closed the disabled-by-default listener skeleton:
|
||||
|
||||
```text
|
||||
phase162_nvme_rdma_standalone_listener_skeleton_gate_status=ok
|
||||
@@ -36,24 +14,51 @@ tcp_behavior_unchanged=true
|
||||
linux_nvme_connect_live_io_not_claimed=true
|
||||
k8s_publish_attach_claim_allowed=false
|
||||
performance_slo_claim_allowed=false
|
||||
phase162_decision=rdma_start_decision_skeleton_disabled_by_default
|
||||
next_recommendation=phase163_nvme_rdma_standalone_listener_impl_spike
|
||||
```
|
||||
|
||||
## Goal
|
||||
|
||||
Attempt the smallest standalone NVMe/RDMA listener implementation spike. The
|
||||
only acceptable success proof is a standalone live I/O gate using Linux
|
||||
`nvme connect -t rdma` against a Seaweed Block target. Kubernetes publish/attach
|
||||
and performance claims stay deferred.
|
||||
|
||||
## Required Evidence
|
||||
|
||||
```text
|
||||
phase163_nvme_rdma_standalone_listener_impl_spike_status=<ok|blocked_with_reason>
|
||||
rdma_listener_impl_attempted=true
|
||||
rdma_bind_ip=<100Gb/RoCE/data-plane IP or blocked>
|
||||
rdma_device=<device or blocked>
|
||||
linux_nvme_connect_rdma_succeeded=<true|false>
|
||||
standalone_write_read_verified=<true|false>
|
||||
disconnect_cleanup_status=<ok|not_reached>
|
||||
capability_endpoint_reports_rdma_supported=<true|false>
|
||||
tcp_behavior_unchanged=true
|
||||
k8s_publish_attach_claim_allowed=false
|
||||
performance_slo_claim_allowed=false
|
||||
next_recommendation=<specific next phase>
|
||||
```
|
||||
|
||||
## Boundaries
|
||||
|
||||
- Do not perform live RDMA I/O yet.
|
||||
- Do not make `--nvme-transport=rdma` a supported user path.
|
||||
- Do not publish RDMA frontend targets through Kubernetes.
|
||||
- Do not wire Kubernetes publish/attach in this phase.
|
||||
- Do not claim performance or acceleration.
|
||||
- If live RDMA I/O cannot pass, keep `supported=false` and report the blocking
|
||||
reason instead of partial success.
|
||||
- Preserve TCP behavior and existing refusal tests.
|
||||
|
||||
## Candidate Work
|
||||
|
||||
1. Add a disabled-by-default RDMA listener skeleton or start-decision object.
|
||||
2. Map preflight failures to stable reasons before any listener creation.
|
||||
3. Keep capability status on `supported=false` and `listenerStarted=false`.
|
||||
4. Gate that TCP behavior and current refusal tests remain green.
|
||||
1. Select the minimal RDMA implementation library/path.
|
||||
2. Bind only to the RDMA/data-plane address, not the management LAN.
|
||||
3. Feed real RDMA commands into the existing transport adapter seam.
|
||||
4. Use Linux `nvme connect -t rdma` for live proof.
|
||||
5. Verify write/read and cleanup, or close as blocked with precise evidence.
|
||||
|
||||
## Exit Criteria
|
||||
|
||||
Phase 162 can close when the RDMA start decision is explicit and testable, while
|
||||
the product still refuses RDMA safely by default.
|
||||
Phase 163 can close only when the standalone gate either passes real RDMA live
|
||||
I/O or records a concrete blocker that keeps the product in unsupported state.
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
# Phase 162 Finished Plan: NVMe/RDMA Standalone Listener Skeleton Gate
|
||||
|
||||
Status: **closed 2026-07-17, local gate PASS**.
|
||||
|
||||
## Problem
|
||||
|
||||
Phase 161 exposed host preflight facts, but the product still had no explicit
|
||||
start decision shape for a future RDMA listener. The next implementation step
|
||||
needed a place to report "not allowed to start" without starting a listener or
|
||||
changing the public refusal boundary.
|
||||
|
||||
## Work
|
||||
|
||||
Phase 162 added:
|
||||
|
||||
- `startAllowed` and `startReason` fields to frontend capability status;
|
||||
- a disabled-by-default RDMA start decision helper;
|
||||
- mapping from preflight failures to stable start reasons;
|
||||
- preservation of `listenerStarted=false`, `supported=false`, and
|
||||
`reason=nvme_rdma_transport_unsupported`;
|
||||
- tests for disabled default, preflight-failure mapping, and post-preflight
|
||||
unsupported implementation state.
|
||||
|
||||
## Evidence
|
||||
|
||||
```text
|
||||
phase162_nvme_rdma_standalone_listener_skeleton_gate_status=ok
|
||||
rdma_listener_start_path_defined=true
|
||||
rdma_listener_disabled_by_default=true
|
||||
preflight_failure_maps_to_stable_reasons=true
|
||||
capability_endpoint_reports_listener_started_false=true
|
||||
tcp_behavior_unchanged=true
|
||||
linux_nvme_connect_live_io_not_claimed=true
|
||||
k8s_publish_attach_claim_allowed=false
|
||||
performance_slo_claim_allowed=false
|
||||
phase162_decision=rdma_start_decision_skeleton_disabled_by_default
|
||||
next_recommendation=phase163_nvme_rdma_standalone_listener_impl_spike
|
||||
```
|
||||
|
||||
## Conclusion
|
||||
|
||||
The start decision is now explicit and safe. The next phase can attempt a
|
||||
standalone listener implementation spike, but only the standalone live I/O gate
|
||||
can turn it into a product claim.
|
||||
@@ -106,6 +106,9 @@ This is the short internal roadmap. Keep it current and readable.
|
||||
and the RDMA unsupported capability surface.
|
||||
- Phase 161 adds read-only RDMA preflight/refusal facts for module, device, and
|
||||
bind-address evidence while preserving the unsupported status.
|
||||
- Phase 162 adds a disabled-by-default listener start decision skeleton. It
|
||||
reports start refusal reasons but still does not start an RDMA listener or
|
||||
claim live I/O.
|
||||
|
||||
Do not skip from scripts directly to mutating operator lifecycle. Helm has
|
||||
stabilized the installation contract, and Phase 35 added read-only CRD status,
|
||||
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
# Phase 162 QA Sign-Off: NVMe/RDMA Standalone Listener Skeleton Gate
|
||||
|
||||
Status: **PASS** on 2026-07-17.
|
||||
|
||||
Run bundle:
|
||||
`results/phase162-nvme-rdma-standalone-listener-skeleton-gate`.
|
||||
|
||||
## Verdict
|
||||
|
||||
Phase 162 adds a disabled-by-default RDMA listener start decision skeleton. The
|
||||
capability DTO now has `startAllowed` and `startReason`. RDMA reports
|
||||
`startAllowed=false`, `listenerStarted=false`, and stable refusal reasons.
|
||||
|
||||
No RDMA listener is implemented or started. Linux `nvme connect -t rdma`,
|
||||
Kubernetes publish/attach, and performance claims remain explicitly out of
|
||||
scope.
|
||||
|
||||
## Evidence
|
||||
|
||||
```text
|
||||
phase162_nvme_rdma_standalone_listener_skeleton_gate_status=ok
|
||||
rdma_listener_start_path_defined=true
|
||||
rdma_listener_disabled_by_default=true
|
||||
preflight_failure_maps_to_stable_reasons=true
|
||||
capability_endpoint_reports_listener_started_false=true
|
||||
tcp_behavior_unchanged=true
|
||||
linux_nvme_connect_live_io_not_claimed=true
|
||||
k8s_publish_attach_claim_allowed=false
|
||||
performance_slo_claim_allowed=false
|
||||
go_test_volume_blockvolume_nvme=ok
|
||||
capability_dto_start_allowed_present=true
|
||||
capability_dto_start_reason_present=true
|
||||
rdma_listener_start_decision_type_present=true
|
||||
rdma_listener_start_decision_func_present=true
|
||||
rdma_listener_disabled_reason_present=true
|
||||
preflight_failure_reason_passthrough_present=true
|
||||
post_preflight_unsupported_reason_present=true
|
||||
rdma_capability_uses_start_decision=true
|
||||
rdma_capability_reports_start_reason=true
|
||||
rdma_listener_started_false=true
|
||||
rdma_supported_false=true
|
||||
disabled_default_test_seen=true
|
||||
preflight_failure_mapping_test_seen=true
|
||||
post_preflight_unsupported_test_seen=true
|
||||
parse_refusal_still_tested=true
|
||||
boundary_doc_keeps_live_io_non_claim=true
|
||||
phase162_decision=rdma_start_decision_skeleton_disabled_by_default
|
||||
next_recommendation=phase163_nvme_rdma_standalone_listener_impl_spike
|
||||
cleanup_status=ok
|
||||
```
|
||||
|
||||
## Conclusion
|
||||
|
||||
The product now has an explicit RDMA start decision path, still disabled and
|
||||
non-claiming. The next step is a standalone listener implementation spike,
|
||||
validated only by a standalone live I/O gate.
|
||||
@@ -0,0 +1,75 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="${1:-$(pwd)}"
|
||||
ARTIFACT_DIR="${SW_BLOCK_ARTIFACT_DIR:-${ROOT}/results/phase162-nvme-rdma-standalone-listener-skeleton-gate}"
|
||||
SUMMARY="${ARTIFACT_DIR}/phase162-nvme-rdma-standalone-listener-skeleton-summary.txt"
|
||||
|
||||
mkdir -p "${ARTIFACT_DIR}/go"
|
||||
: >"${SUMMARY}"
|
||||
|
||||
write_summary() {
|
||||
echo "$*" | tee -a "${SUMMARY}" >/dev/null
|
||||
}
|
||||
|
||||
GO_BIN="${SW_BLOCK_GO:-go}"
|
||||
GO_VERSION="$("${GO_BIN}" version 2>/dev/null || true)"
|
||||
if [[ -z "${GO_VERSION}" ]]; then
|
||||
echo "missing Go toolchain: set SW_BLOCK_GO to a Go 1.25+ binary" >&2
|
||||
exit 1
|
||||
fi
|
||||
if ! grep -Eq 'go1\.2[5-9]|go1\.[3-9][0-9]' <<<"${GO_VERSION}"; then
|
||||
echo "Go 1.25+ required by go.mod; got ${GO_VERSION}. Set SW_BLOCK_GO to a newer Go binary." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
require_grep() {
|
||||
local file="$1"
|
||||
local needle="$2"
|
||||
local label="$3"
|
||||
if ! grep -Fq -- "${needle}" "${file}"; then
|
||||
echo "missing ${label}: ${needle} in ${file}" >&2
|
||||
exit 1
|
||||
fi
|
||||
write_summary "${label}=true"
|
||||
}
|
||||
|
||||
write_summary "phase162_nvme_rdma_standalone_listener_skeleton_gate_status=running"
|
||||
write_summary "rdma_listener_start_path_defined=true"
|
||||
write_summary "rdma_listener_disabled_by_default=true"
|
||||
write_summary "preflight_failure_maps_to_stable_reasons=true"
|
||||
write_summary "capability_endpoint_reports_listener_started_false=true"
|
||||
write_summary "tcp_behavior_unchanged=true"
|
||||
write_summary "linux_nvme_connect_live_io_not_claimed=true"
|
||||
write_summary "k8s_publish_attach_claim_allowed=false"
|
||||
write_summary "performance_slo_claim_allowed=false"
|
||||
write_summary "go_version=${GO_VERSION}"
|
||||
|
||||
cd "${ROOT}"
|
||||
|
||||
"${GO_BIN}" test -v ./core/host/volume ./cmd/blockvolume ./core/frontend/nvme \
|
||||
>"${ARTIFACT_DIR}/go/test.stdout.txt" \
|
||||
2>"${ARTIFACT_DIR}/go/test.stderr.txt"
|
||||
write_summary "go_test_volume_blockvolume_nvme=ok"
|
||||
|
||||
require_grep "core/host/volume/status_server.go" "StartAllowed" "capability_dto_start_allowed_present"
|
||||
require_grep "core/host/volume/status_server.go" "StartReason" "capability_dto_start_reason_present"
|
||||
require_grep "cmd/blockvolume/main.go" "type nvmeRDMAListenerStart struct" "rdma_listener_start_decision_type_present"
|
||||
require_grep "cmd/blockvolume/main.go" "func nvmeRDMAListenerStartDecision" "rdma_listener_start_decision_func_present"
|
||||
require_grep "cmd/blockvolume/main.go" "nvme_rdma_listener_disabled" "rdma_listener_disabled_reason_present"
|
||||
require_grep "cmd/blockvolume/main.go" "reason: fact.Reason" "preflight_failure_reason_passthrough_present"
|
||||
require_grep "cmd/blockvolume/main.go" "reason: \"nvme_rdma_transport_unsupported\"" "post_preflight_unsupported_reason_present"
|
||||
require_grep "cmd/blockvolume/main.go" "StartAllowed: rdmaStart.allowed" "rdma_capability_uses_start_decision"
|
||||
require_grep "cmd/blockvolume/main.go" "StartReason: rdmaStart.reason" "rdma_capability_reports_start_reason"
|
||||
require_grep "cmd/blockvolume/main.go" "ListenerStarted: false" "rdma_listener_started_false"
|
||||
require_grep "cmd/blockvolume/main.go" "Supported: false" "rdma_supported_false"
|
||||
require_grep "cmd/blockvolume/iscsi_portal_addr_test.go" "TestNVMERDMAListenerStartDecisionDisabledByDefault" "disabled_default_test_seen"
|
||||
require_grep "cmd/blockvolume/iscsi_portal_addr_test.go" "TestNVMERDMAListenerStartDecisionMapsPreflightFailure" "preflight_failure_mapping_test_seen"
|
||||
require_grep "cmd/blockvolume/iscsi_portal_addr_test.go" "TestNVMERDMAListenerStartDecisionStillUnsupportedAfterPreflight" "post_preflight_unsupported_test_seen"
|
||||
require_grep "${ARTIFACT_DIR}/go/test.stdout.txt" "TestParseFlags_NVMeTransportRejectsRDMA" "parse_refusal_still_tested"
|
||||
require_grep "docs/releases/nvme-rdma-capability-boundary.md" "standalone live I/O gate" "boundary_doc_keeps_live_io_non_claim"
|
||||
|
||||
write_summary "phase162_decision=rdma_start_decision_skeleton_disabled_by_default"
|
||||
write_summary "next_recommendation=phase163_nvme_rdma_standalone_listener_impl_spike"
|
||||
write_summary "cleanup_status=ok"
|
||||
write_summary "phase162_nvme_rdma_standalone_listener_skeleton_gate_status=ok"
|
||||
Reference in new issue
Block a user