* seaweed-block: release gate .ps1 runs swblock from PATH without a runner checkout RunnerRoot became mandatory when its lab default was dropped, so the script could no longer fall back to the swblock binary on PATH the way the .sh does when SWBLOCK_RUNNER_ROOT is unset. Default it to empty and check for an empty value before Test-Path, which rejects an empty path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: release gate refuses an artifact root with whitespace The kept scenarios substitute artifact_root into shell commands without quotes, including rm -rf of the run directory, so a path with a space would split into separate arguments. Refuse such a value up front in both release-gate scripts and say so in the settings table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: drop the removed testops/suites/ from the authoring page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: NVMe/TCP chains import images with the node-side key The image import runs build-alpha-images.sh on node-a, which ssh's from there to the import nodes, but these two chains passed ssh_key, the controller-side key. Pass node_ssh_key like the node-loss chain does; left empty, ssh falls back to node-a's default identity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: scenario headers list every setting a run needs The expected-invocation comments still showed only product_root and ssh_key, but each chain now also reads node_host, node_user and artifact_root and leaves them empty by default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: testops README names the lab-only scenario and the import chains helm-multi-volume-rf3-app-spread-failover-chain.yaml still names lab hosts, so the 'no scenario names a host' line now excepts it. The run example used <...> placeholders, which bash reads as redirections. The import_nodes and node_ssh_key rows now name the chains that read them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: test the release gate's artifact-root whitespace check Runs the .sh with a space and a tab in SW_BLOCK_NODE_ARTIFACT_ROOT and expects it to stop before creating the artifact directory, and checks that the .ps1 refuses such a value before its first New-Item. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
TestOps scenarios
This directory holds runner scenarios for the swblock binary of sw-test-runner.
The product owns the test intent: which scripts represent a gate, what each
artifact proves, and what cleanup must hold. The runner owns orchestration:
target cleanup, command execution, run-bundle layout and artifact collection.
The scenarios kept here are the ones this repository's tests or scripts use:
cmd/blockcsi/g15d_manifest_test.go checks the contents of some of them, and
scripts under scripts/ run others.
Running a scenario
swblock is built from the runner's source (go build -o swblock ./cmd/swblock),
not from this repository. Check a scenario before running it:
swblock validate testops/scenarios/nvme-p5-protocol-component-gate.yaml
Apart from helm-multi-volume-rf3-app-spread-failover-chain.yaml, which still targets
the project's lab, no scenario names a host, user, key or share. Each one reads them
from its env block, where they are empty, so set every one on the command line:
| Setting | Meaning |
|---|---|
product_root |
this repository's checkout on the test node |
node_host |
address of the test node |
node_user |
ssh user on the test node |
ssh_key |
private key for node_user, on the controller |
artifact_root |
shared directory for run artifacts, as the test node sees it; no whitespace, since commands use it unquoted |
import_nodes |
every other k3s node, for the image import (nvme-tcp-status-surface-evidence-chain, nvme-tcp-cross-node-multivolume-lifecycle-soak-chain); without it only the test node gets the images |
node_ssh_key |
key path on the test node for the image import (those two chains and node-loss-survival-rf3-reattach-chain) |
swblock run \
-env product_root=/path/to/seaweed-block \
-env node_host=192.0.2.10 \
-env node_user=tester \
-env ssh_key=/path/to/key \
-env artifact_root=/path/to/shared/artifacts \
testops/scenarios/nvme-p5-protocol-component-gate.yaml
Which gate to run
Use the smallest gate that proves the contract you changed.
| Change type | Gate |
|---|---|
| Package-local logic, parser, renderer, state-machine helper | go test -count=1 ./<touched-package> |
| CSI protocol propagation, lifecycle persistence, launcher render shape | nvme-p5-protocol-component-gate |
| Kernel initiator, k3s, mounted filesystem, failover or stale-session behaviour | the matching chain, for example nvme-p5-csi-protocol-chain, nvme-p4-multipath-failover-chain or iscsi-p6-alua-failover-chain |
Node loss (node-loss-survival-rf3-reattach-chain). This release claims no automatic promotion on node loss:
the gate cordons the primary's node and stops it, requires that no other replica is promoted during the hold
(auto_promotion_while_node_lost=none), then returns the node and requires the same primary to serve the same
data. Manual failover (a SwBlockReplicaFailback handled by the failback executor, which calls blockmaster's admin
ExecuteFailback) is covered by the existing tests: TestFailbackExecutorGRPCRuntimeUsesRealMasterService,
TestFailbackServiceEnabledUsesHostRuntime, TestHostFailbackAuthorityRuntimeUsesLivePublisher
(core/host/master/failback_runtime_test.go), TestFailbackAuthorityRuntimeAdapterRejectsStaleExpectedCurrent
(core/ops/failback_authority_runtime_adapter_test.go) and TestFailbackExecutorInvokesRuntimeWhenExplicitlyEnabled
(core/ops/failback_executor_controller_test.go).