mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
testops(block): link QA agent runbook to unified contract
This commit is contained in:
1 parent
fd36cd74f9
commit
c702bb9075
2 files changed
+65
-5
No files matched your search
@@ -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` /
|
||||
|
||||
@@ -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 <bundle> --ref <tag> --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.
|
||||
|
||||
Reference in new issue
Block a user