Replaces internal identifiers in seaweed-block/ docs, specs and comments with neutral wording. Wording only: no code behaviour, test assertion or spec meaning changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2.3 KiB
TestOps Control Data Contract
Status: first shared-lab visibility contract for product-local TestOps. This is not a scheduler, queue, or remote agent.
Purpose
node-a/node-b are shared test resources. Before this contract, a developer or QA operator could see result bundles after a run, but could not reliably answer:
- what is running now,
- which scenario owns the lab,
- which commit is under test,
- where the artifacts are,
- which global resources are locked,
- whether a run is stale after a crash.
The first control-data layer makes that visible through files on the shared drive.
Directory Shape
testops-control/
active/<run_id>.json
history/<run_id>.json
locks/<resource>.lock
events.jsonl
active/ records are created before driver execution. On terminal exit, the
record moves to history/ and locks are released. If the runner crashes, the
active record and lock files remain visible for manual diagnosis.
Record Shape
Each run record includes:
schema_versionrun_idscenariostaterunningpassfailerror
source_commitartifact_dirresourceslocksstarted_atupdated_atended_at, for terminal recordserror_summary, when terminal with an error
Resource Metadata
Scenario registrations may declare:
{
"resources": {
"group": "node-b-block-lab",
"exclusive": ["node:node-b", "iscsi:node-b", "k3s:node-b"],
"ports": [3260, 4420]
}
}
The product-local runner converts these into lock files. A conflicting lock causes the run to fail before driver execution.
CLI Surface
Run with control data:
sw-testops --control-dir <dir> --scenario <name> ...
List known control records:
sw-testops --control-dir <dir> --control-list
The list output is intentionally simple:
state run_id scenario source_commit updated_at locks artifact_dir
Non-Claims
- No queueing.
- No stale-lock stealing.
- No periodic heartbeat inside a long phase.
- No per-phase progress in the product-local runner; active records show start/terminal ownership only.
- No remote agent on node-a/node-b.
- No product cleanup or repair action.
- No guarantee that external
swblockhas this exact implementation yet; this is the product-local contract to port into the standalone runner.