From c702bb9075feed06fcd3ace5359ff3c59fdff97c Mon Sep 17 00:00:00 2001 From: pingqiu Date: Thu, 2 Jul 2026 15:01:21 -0700 Subject: [PATCH] testops(block): link QA agent runbook to unified contract --- .../docs/qa-assignments/QA-AGENT-RUNBOOK.md | 13 +++++ .../QA-RUNBOOK-block-current-v1.md | 57 +++++++++++++++++-- 2 files changed, 65 insertions(+), 5 deletions(-) diff --git a/seaweed-block/internal/docs/qa-assignments/QA-AGENT-RUNBOOK.md b/seaweed-block/internal/docs/qa-assignments/QA-AGENT-RUNBOOK.md index ad46b8309b..e507bb0e80 100644 --- a/seaweed-block/internal/docs/qa-assignments/QA-AGENT-RUNBOOK.md +++ b/seaweed-block/internal/docs/qa-assignments/QA-AGENT-RUNBOOK.md @@ -5,6 +5,19 @@ k3s lab and delivering a verdict. You should be able to follow this end-to-end without asking for more context. Read it top to bottom the first time; after that use the [cheat sheet](#11-cheat-sheet). +> **Unified TestOps context:** before running block gates as a reusable test +> agent, read the platform docs in +> `C:\work\seaweedfs\learn\sw-test-runner-standalone\docs\`: +> +> 1. `unified-testops.md` — global platform overview and 9099 dashboard/submit model. +> 2. `wiki/submitting.md` — developer submit and scenario authoring workflow. +> 3. `control-plane-product-contract.md` — common envelope, suite, worker, and product rows. +> 4. `qa-bundle-assert.md` — `qa-assert.sh` acceptance contract. +> +> This file is the **block phase-gate specialization** of that platform. If the +> Unified TestOps docs and this file disagree, follow this file for current +> seaweed_block phase gates and report the doc drift. + > **Your job:** the dev pushes a phase's commits + a gate, you run the **live** > gate on the lab and report **PASS / FAIL / PARTIAL** with the exact terminal > evidence. You do **not** edit product code. The dev's `go test` / `helm lint` / diff --git a/seaweed-block/internal/docs/qa-assignments/QA-RUNBOOK-block-current-v1.md b/seaweed-block/internal/docs/qa-assignments/QA-RUNBOOK-block-current-v1.md index eae1af46e5..ca262cfa1a 100644 --- a/seaweed-block/internal/docs/qa-assignments/QA-RUNBOOK-block-current-v1.md +++ b/seaweed-block/internal/docs/qa-assignments/QA-RUNBOOK-block-current-v1.md @@ -12,10 +12,22 @@ project, evidence rows, and failure classes are block's, not RDMA's. > [`QA-AGENT-RUNBOOK.md`](QA-AGENT-RUNBOOK.md). This runbook is the higher-level > *which path / accept criteria / provenance* SOP. -> **Block ≠ RDMA in one important way:** there is **no 9099 submit-queue/worker** -> for block (that is RDMA-specific). A block gate is run by the QA agent with -> `swblock.exe` directly: sync `product_root` → `swblock run` → read the dashboard -> bundle. Do not pretend a `POST /api/rdma/submit` runs block. +> **Unified TestOps parent docs:** the platform-level contract lives in +> `C:\work\seaweedfs\learn\sw-test-runner-standalone\docs\`: +> `unified-testops.md`, `wiki/submitting.md`, +> `control-plane-product-contract.md`, and `qa-bundle-assert.md`. Read those for +> the common 9099 dashboard, bundle envelope, suite/worker model, and shared +> `qa-assert.sh` contract. This file adds the block-specific current-state +> rules. + +> **Current block split:** the unified runner repo now has a `block-ci` worker +> script for the canonical published-image first-volume gate. Most active +> seaweed_block phase gates still validate a source branch or local +> `sw-block:local` image and are run by the QA agent with `swblock.exe` +> directly: sync `product_root` → `swblock run` → read/assert the bundle. Do not +> use `POST /api/rdma/submit` for block; use `/api/block/submit` only when the +> assigned gate is registered in the TestOps block worker and the tested ref is +> a published image tag. ## 0. What To Run @@ -23,10 +35,45 @@ Pick exactly one path. | Path | Use When | Result Can Be Used For | | --- | --- | --- | -| Standard gate | A reviewable branch / commit (pushed, no dirty source) | QA verdict / phase or release evidence | +| `block-ci` worker gate | Canonical published-image block gate registered in TestOps | Release/artifact evidence after `qa-assert.sh` | +| Standard phase gate | A reviewable branch / commit (pushed, no dirty source) | QA verdict / phase evidence | | Adhoc dirty debug | Developer has a local uncommitted `sw-block` build | Debug only, **not** QA ACCEPT | | Deep runbook | A standard gate fails in/near a specialty area (SmartWAL, iSCSI/NVMe OS, residue) | Specialty QA evidence | +## 0a. Unified `block-ci` Worker Gate + +Use this only when the assigned gate is the canonical TestOps block worker path: +a published `seaweed-block` / `seaweed-block-csi` image tag, staged harness, and +`docs/qa-profiles/block.expect`. + +Runner repo entry point: + +```text +C:\work\seaweedfs\learn\sw-test-runner-standalone\scripts\run-block-ci.sh +``` + +Contract: + +- ref is a published image tag such as `sha-...`, not a dirty source tree; +- worker stages the block harness to m02 `product_root`; +- worker runs `swblock` with `project=block-ci`; +- worker runs: + + ```bash + scripts/qa-assert.sh --ref --profile docs/qa-profiles/block.expect + ``` + +- success prints `Block CI PASS` and the dashboard path: + + ```text + http://192.168.1.181:9099/?project=block-ci + ``` + +If the feature under review requires a new source commit, a new scenario, or a +local `sw-block:local` build, do **not** force it through `block-ci`. Use the +standard phase-gate path below and report it as phase evidence, not release +artifact evidence. + ## 1. Standard Gate — Reviewable Branch/Commit This is the normal process.