diff --git a/.coderabbit.yaml b/.coderabbit.yaml index b6ce68c6..c11117a2 100644 --- a/.coderabbit.yaml +++ b/.coderabbit.yaml @@ -32,6 +32,92 @@ reviews: path_instructions: - path: "stps/**" instructions: | + ## Fixed template structure (CRITICAL — blocks approval) + + The section structure and the field set of an STP are defined by the templates only: + `stps/stp-template/stp.md` for feature STPs and `stps/stp-template/child-stp.md` for + child STPs. A feature STP fills the template — it must never extend it. Full definition: + the "Template Structure Compliance" section of AGENTS.md. + + Flag as CRITICAL any change to a feature STP that adds, renames, or reorders a section, + numbered subsection, checklist item, metadata field, a field inside a checklist item, or a + Section III key — or that removes one which is not conditional, or that splits one field + into several or nests new keys inside an existing field. + + Also CRITICAL: field-shaped content inside an existing field — a bold or italic label + followed by `:` and a value (e.g. an invented `*Upstream coverage:*`), a `Key: value` line, a + standalone bold/italic group heading that introduces a group, or a table column that behaves + like a field. Emphasis inside a sentence (`**Note:**`) is prose. Inside a field, only plain + sentences and the template's own lines repeated are allowed — nested, or at the same level for + the `Document Conventions` term line; any other nested list + item, ordered list, table, or content-bearing HTML element inside a field is a new field + (HTML comments excepted). The bracketed labels the template itself defines stay in a filled + field — `[req-N]` on a Section III entry, `[P0]`/`[P1]`/`[P2]` on a Testing Goal, the + optional phase tag on a goal as `[P0][TP]` or on a scenario as `- *Priority:* P0 [TP]`, and + `[Tier N]` at the start of `Test Scenario`; so do markdown link labels, the checklist + markers `[ ]`/`[x]`, the `Document Conventions` term line, and bracketed placeholders such + as `[version or N/A]`, which are replaced when the field is filled. Any other bracketed *token + acting as a key or label* is a new field. + + Concrete additions this repo has had to block: metadata fields `Implementation PR` and + `Upstream e2e PR`; an invented `III.1` numbered subsection; the per-scenario key `Tier`; the + Section III keys `Test ID`, `Upstream coverage`, `Downstream required`, `Covered upstream`, + `Pending (Tier 2 downstream)` and `Gap resolution`; and renamed risk fields such as + `PM/DEV Sign-off` or `Missing or unavailable environments`. + + Repeating a template line is content, not structure: extra entry criteria, extra risk + entries inside one category, extra scenarios, requirements, criteria, NFRs, or limitations + are all allowed. + + Conditional items — the only permitted omissions in a feature STP: `Document Conventions + (if applicable)`, and the supplemental field plus `Sign-off` line of a risk category that + has no risk. Template wording like "if applicable", "if needed", or "if separate" never + licenses deleting a labelled field — every field the template shows stays. + + Child STPs are graded against `child-stp.md`'s own field set, which has no `Enhancement(s)`, + `Feature Maturity`, `Owning SIG`, `Participating SIGs`, or `Child STPs` field — it names only + its own `SIG` — and no `Value`/`Use cases`; they may not extend it either. A child STP keeps + every risk category too: one with no SIG-specific risk reads `None — [why]`. + + Section III shape: a bullet with the requirement identifier from Section I.1 bold, then + `Test Scenario` and `Priority` — tier inline as the first token of `Test Scenario` + (`*Test Scenario:* [Tier N] [scenario]`). A child STP uses the same shape; a separate `Tier` + key in any STP is a new field, as are the other keys listed above. + + In a filled STP, HTML comments are not part of the document: a comment carrying a field, key, + or value is CRITICAL structure smuggling, and any other surviving comment is HIGH. This does + not apply under `stps/stp-template/`, to AGENTS.md or to `docs/*.md` — that is the guidance + material rather than a filled STP, so a comment there is never a finding. + + Where that content belongs instead: free prose in an existing field, or outside the STP + (design doc, VEP, tests repository). A structural change must come as a separate PR that + updates the template it changes, the `Template Structure Compliance` section of AGENTS.md, + `docs/stp-guide.md`, this block, and the `extra_instructions` in `.pr_agent.toml` — the five + copies; until that PR merges, the field does not exist and must not appear in any STP. Do not + suggest adding a field to the template as a fix for one STP. + + A PR must not bundle a dependency: flag CRITICAL when an STP change (feature or child) uses a field, + key, or section that the same PR adds, renames, or removes in a template, `AGENTS.md`, + `docs/stp-guide.md`, `.pr_agent.toml`, or this file — equivalently, any PR that changes a + rule source and an STP in the same diff must be split so the rule cannot be rewritten under + cover of the STP that benefits from it. An unrelated typo fix in a template is fine. + + For files under `stps/stp-template/`, replace the feature-STP shape check and the comment + check above with the template-PR gate: the PR must not silently remove a required section or + field — a rename or a documented replacement is allowed, an unexplained deletion is not. + When it changes structure or shared rule guidance, it must update the template it changes, + AGENTS.md, `docs/stp-guide.md`, this block, and `.pr_agent.toml` together — so the five + copies cannot drift — and apply the change to both templates where the item exists in both. + A typo, wording, or comment-only template edit that leaves fields and rules unchanged is + exempt — do not flag it for a missing rule-copy update. + + Already-merged STPs keep the shape they were approved with: template rules are not + retroactively enforced. The exemption is per entry: entries a PR adds or modifies follow the + current template, and legacy entries the PR leaves alone are not flagged. Re-shaping a legacy + entry onto the current template — renaming its fields to the current names — is that required + update, not a structure change, so do not flag it. Only divergence from the current template + counts. + ## Test implementation cross-reference (STP → tests) Skip this check entirely for files under `stps/stp-template/` — those are diff --git a/.pr_agent.toml b/.pr_agent.toml index 58a2f44b..bff235e8 100644 --- a/.pr_agent.toml +++ b/.pr_agent.toml @@ -6,11 +6,11 @@ [config] # Feed repo guidance into Qodo's review context (read from the default branch). # repo_context_max_lines applies to the COMBINED rendered context of all files, -# not per-file — 2200 covers AGENTS.md (438) + docs/stp-guide.md (269) + docs/testing-tiers.md (210) -# + stps/stp-template/stp.md (486) + stps/stp-template/child-stp.md (218) = ~1620 today, with room to grow. -# The authoritative templates are listed first so an overflow truncates them last. +# not per-file. The five files total about 2170 lines today, and 2400 keeps a margin over that so +# nothing is silently truncated. The authoritative templates are listed first, so if the combined +# size ever does overflow, the rules truncate before they do. repo_context_files = ["stps/stp-template/stp.md", "stps/stp-template/child-stp.md", "AGENTS.md", "docs/stp-guide.md", "docs/testing-tiers.md"] -repo_context_max_lines = 2200 +repo_context_max_lines = 2400 [pr_reviewer] # Docs-only repo — no code to test or scan for code-level security practices @@ -25,25 +25,74 @@ Be direct. Explain WHY. Use severity: CRITICAL (blocks approval), HIGH (must fix MEDIUM (should fix), LOW (suggestion). Core principles: +- The template structure is fixed: a feature STP fills stps/stp-template/stp.md (child STPs: + stps/stp-template/child-stp.md) and never extends it. An added, renamed, reordered, or + non-conditional removed section, checklist item, field, or Section III key is CRITICAL and blocks + approval; so is field-shaped content inside a field (an extra bold or italic label, a + `Key: value` line, a group heading, a table). The labels the template itself defines stay in a + filled field — `[req-N]` on a Section III entry, `[P0]`/`[P1]`/`[P2]` on a Testing Goal, the + optional phase tag on a goal as `[P0][TP]` or on a scenario as `- *Priority:* P0 [TP]`, and + `[Tier N]` at the start of `Test Scenario`; so do markdown link labels, the checklist markers + `[ ]`/`[x]`, the Document Conventions term line, and bracketed placeholders. Any other bracketed + token acting as a key or label is a new field. Inside a field only plain sentences and the template's own lines + repeated (nested, or at the same level for the Document Conventions term line) are allowed; any + other nested list item, ordered list, table, or content-bearing HTML element inside a field is a new + field. + See AGENTS.md "Template Structure Compliance". + A structure change belongs in a separate template PR. +- Repeating a template line is content, not structure: extra entry criteria, extra risk entries + inside one category, extra scenarios, requirements, criteria, NFRs, or limitations are allowed. +- Conditional items — the only omissions in a feature STP: `Document Conventions (if applicable)`, + and the supplemental field plus `Sign-off` line of a risk category with no risk. "if applicable" + or "if needed" never licenses deleting a labelled field — every field the template shows stays. +- A child STP is graded against child-stp.md's own field set: no `Enhancement(s)`, `Feature Maturity`, + `Owning SIG`/`Participating SIGs`, `Child STPs`, `Value` or `Use cases` field, and it may not add + fields either. +- In a filled STP, an HTML comment carrying a field, key, or value is CRITICAL structure smuggling; + any other surviving comment is HIGH. In the templates the comments are the document, and in + AGENTS.md and `docs/*.md` they are guidance too — comments there are never a finding. +- A PR must not bundle a dependency: flag CRITICAL when an STP change uses a field, key, or section + the same PR adds, renames, or removes in a template or any rule source (AGENTS.md, + docs/stp-guide.md, .coderabbit.yaml, these instructions). Equivalently, any PR that changes a rule + source and an STP in the same diff must be split, so the rule cannot be rewritten under cover of + the STP that benefits from it. +- Template rules are not retroactively enforced: a merged STP keeps the shape it was approved with, + and re-shaping a legacy entry onto the current template is not a structure change. The exemption is + per entry, not per document: entries a PR adds or modifies follow the current template, and only the + entries a PR leaves alone keep their existing shape. Re-shaping a legacy entry onto the current + template is that required update, not a structure change. - STPs describe what users experience, not internal implementation. Flag internal API field names, internal component references, and implementation mechanisms as findings. Documented user-facing objects the user must create or edit (e.g. a resource kind) may be named. -- Every claim needs evidence — sign-offs, Jira links, dates. No empty placeholders - ("[TBD]", "[Name/Date]", "[Add details]") in approved STPs. +- Every claim needs evidence — sign-offs and Jira links. No empty placeholders + ("[TBD]", "[Name]", "[Add details]") in approved STPs. - Distinguish constraint categories: Feature Limitations, Test Limitations, Out of Scope, and Risks are distinct concepts — flag any mixing. -- Traceability is mandatory — every test scenario must map to a Jira requirement ID - with tier and priority. +- Traceability is mandatory — every requirement in I.1 carries an identifier (req-1, req-2, ...), and + every test scenario references one + with tier and priority. Section III scenarios are required for non-regression Testing + Goals; a regression goal and an acceptance criterion may be satisfied by named existing + regression coverage in Test Strategy. - Testing goals must be written from the end-user perspective with priorities (P0 first), and each P0 functional goal needs a negative/failure-path Testing Goal with a matching scenario (or an Out of Scope entry with Quality Owner or Product Manager sign-off); regression goals are covered by Test Strategy. - Test scenarios need observable pass criteria, not "verify X works correctly". -For files under stps/stp-template/ — those are templates, not feature STPs. Skip the -STP-to-tests cross-reference check for them, but review the template content as documentation: -check that the instructions are self-consistent, and report any place where docs/stp-guide.md or AGENTS.md -disagrees with the template so the other document can be corrected. +For files under stps/stp-template/ — those are templates, not feature STPs. Skip +feature-STP content review for them (no requirements, acceptance-criteria, or scenario +checks) and check markdown formatting, but apply the template-PR gate from AGENTS.md +"Template Structure Compliance": the PR must not silently remove a section, field, +checklist item, or Section III key that is not listed as conditional — a rename or a +documented replacement is allowed, an unexplained deletion is not. When a template PR +changes structure or shared rule guidance it must update the template it changes, AGENTS.md, +docs/stp-guide.md, the .coderabbit.yaml structure block, and these extra_instructions +together — so the five copies cannot drift — and apply the change to both templates where the +item exists in both; flag a PR that leaves one of those copies behind. A typo, wording, or +comment-only template edit that leaves fields and rules unchanged is exempt — do not +flag it for a missing rule-copy update. Check the template instructions are self-consistent, and +report any place where docs/stp-guide.md or AGENTS.md disagrees with the template so the other +document can be corrected. Follow stps/stp-template/stp.md (child STPs: stps/stp-template/child-stp.md) as the authoritative reference for STP structure, format and content requirements; docs/stp-guide.md explains the purpose diff --git a/AGENTS.md b/AGENTS.md index 84ca6fdb..766833c9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -4,11 +4,19 @@ This document is a review checklist for AI review tools (CodeRabbit, Claude Code in this repository. It is an index and a review workflow, not a source of rules: the STP structure, format and content requirements are defined by the template (`stps/stp-template/stp.md`), and purpose and process are described in `docs/stp-guide.md`. When this checklist and the template differ, the template is right and -this checklist needs fixing. +this checklist needs fixing. The one exception is +[Template Structure Compliance](#template-structure-compliance), whose rule text is normative here and +is kept in sync with the other four copies — the template it changes, `docs/stp-guide.md`, the +`.coderabbit.yaml` structure block and the `.pr_agent.toml` `extra_instructions` — so no copy drifts +from the others. The templates define what an STP must contain; this section defines how that is +reviewed. +If they ever disagree, the copies are out of sync: that is a template-PR defect to fix in all five, +not an STP finding. Evaluate new and edited STPs against the current template and guide. Existing STPs do not have to comply with updated guidelines and templates. For merged STPs still under refinement, recommend the new format -rather than requiring it. +for the entries a PR does not touch; an entry a PR adds or modifies follows the current template, and +divergence there is CRITICAL (see Template Structure Compliance). --- @@ -18,12 +26,143 @@ rather than requiring it. No internal API field names, internal component references, or implementation mechanisms. User-facing objects that the user must create or edit (for example a resource kind or feature gate named in the feature's documentation) may be named; explain them in Document Conventions. -2. **Every claim needs evidence** — sign-offs, Jira links, dates. No empty placeholders in approved STPs. +2. **Every claim needs evidence** — sign-offs and Jira links. No empty placeholders in approved STPs. 3. **Distinguish constraint categories** — Feature Limitations, Test Limitations, Out of Scope, and Risks are distinct concepts. Never mix them. See the "Constraint Categories" section of `docs/stp-guide.md` for definitions. -4. **Traceability is mandatory** — every test scenario must map to a Jira requirement ID with tier and priority. +4. **Traceability is mandatory** — every requirement in I.1 carries an identifier (`[req-N]`), and every + test scenario references one, with its tier and priority. 5. **Concise and actionable** — no walls of text, no template boilerplate left in, no vague statements. +6. **The template structure is fixed** — an STP fills the existing template; it never extends it. + New sections, fields, or per-scenario keys require a separate PR that changes the template. + See [Template Structure Compliance](#template-structure-compliance). + +--- + +## Template Structure Compliance + +The section structure and the field set of an STP are defined by the templates only: +`stps/stp-template/stp.md` for feature STPs and `stps/stp-template/child-stp.md` for child STPs. +An STP **fills** the template — it does not change it. + +**CRITICAL — an STP PR that changes the structure blocks approval.** Structural changes are: + +- **Adding** a section, numbered subsection, checklist item, metadata field, field inside a + checklist item, or Section III key +- **Renaming** or **reordering** any of those +- **Removing** any of those that is not listed as conditional below +- **Splitting** one field into several, or nesting new keys inside an existing field +- **Field-shaped content inside a field**: a bold or italic run followed by `:` and a value, a + `Key: value` line, or a table column that behaves like a field is a new field wherever it appears. + Bold/italic used as emphasis inside a sentence (`**Note:**`) is prose and allowed. +- **A new group heading inside a section** — a standalone bold or italic line, or a heading, that + introduces a group of items — is a new subsection, wherever it appears. +- **Inside a field, only two things are allowed:** plain sentences, and the template's own lines + repeated — nested, or at the same level for the `Document Conventions` term line. Any other nested + list item, ordered list, table, or content-bearing HTML element inside a field is a new field (HTML + comments excepted). + +The bracketed *labels* the template itself defines stay in a filled field: `[req-N]` on a +Section III entry, `[P0]`/`[P1]`/`[P2]` on a Testing Goal, the optional phase tag on a goal as +`[P0][TP]` or on a scenario as `- *Priority:* P0 [TP]`, and `[Tier N]` at the start of +`Test Scenario`. Also sanctioned, because the template itself writes them: markdown link labels +(`[sig-network](./network.md)`, `([Risks](./stp.md#5-risks))`), the checklist markers `[ ]`/`[x]`, +the `Document Conventions` term line, and bracketed placeholders such as `[version or N/A]` or +`[Name]`, which are replaced when the field is filled. Any other bracketed *token acting as a +key or label* is a new field. + +**Repeating a template line is content, not structure.** Extra entry criteria, extra risk entries +inside one category, extra scenarios, and extra requirements, criteria, NFRs, or limitations all +repeat an item the template already defines — that is allowed and expected. + +**Conditional items — the only permitted omissions:** + +- `Document Conventions (if applicable)` +- the supplemental field and `Sign-off` line of a risk category that has no risk + +Nothing else is optional. Template wording such as "if applicable", "if needed", or "if separate" +never licenses deleting a labelled field — every field the template shows stays; what the template +shows for a field that does not apply is the template's own business, not a licence to delete it. + +Child STPs are held to their own field set — `child-stp.md` has no `Enhancement(s)`, `Feature +Maturity`, `Owning SIG`, `Participating SIGs`, or `Child STPs` field — it names only its own `SIG` — +and no `Value`/`Use cases` item, and that is correct. The no-extend rule applies to a child STP +exactly as it does to a feature STP: it must not add fields the child template does not define. + +**Section III has a fixed shape.** Each entry is a bullet with the requirement identifier from +Section I.1 in bold, then two keys — tier inline as the first token of `Test Scenario`: + +```markdown +- **[req-N]** + - *Test Scenario:* [Tier N] [scenario] + - *Priority:* P0 +``` + +A child STP uses the same shape. `Test ID`, `Upstream coverage`, `Downstream required`, +`Covered upstream`, `Pending (Tier 2 downstream)`, `Gap resolution`, and a separate `Tier` key are +new fields. + +**HTML comments are not part of a filled STP.** They carry guidance only — never a field, value, or +key the visible document does not show. A comment carrying a field, key, or value is CRITICAL +structure smuggling; any other surviving comment is HIGH. This does not apply to the templates under +`stps/stp-template/`, to `AGENTS.md`, or to `docs/*.md` — that is the guidance +material rather than a filled STP, so a comment there is +never a finding. + +**Common rejection reasons:** + +- Metadata fields added to carry links the template has no field for, e.g. `Implementation PR`, + `Upstream e2e PR` +- A numbered `III.1` subsection invented inside one STP +- Renaming a supplemental risk field the template already defines (e.g. writing + `Missing or unavailable environments` where the template says `Missing resources or + infrastructure`, or `Reason untestable and mitigation approach` where it says `Alternative + validation approach`), or relabelling `Sign-off` as `PM/DEV Sign-off`, instead of proposing the + rename in a template PR +- Turning a template section into a different shape — e.g. rewriting the `**Timeline/Schedule**` + risk headings as `- [x] **Timeline/Schedule**` checklist items +- Structure smuggled in through field text: an extra bold label, a nested key-value line, or a + table inside a field + +**Where structural changes belong:** a separate PR to this repository that changes +`stps/stp-template/stp.md` and/or `child-stp.md` together with the `Template Structure Compliance` +section of `AGENTS.md`, `docs/stp-guide.md`, the structure block in `.coderabbit.yaml` and the +`extra_instructions` in `.pr_agent.toml` — the five copies, reviewed on its own. STPs may use +a new field only after that template PR is merged. + +**A PR must not bundle a dependency.** If an STP change uses a field, key, or section that the same +PR adds, renames, or removes in a template, `AGENTS.md`, `docs/stp-guide.md`, `.coderabbit.yaml` or +`.pr_agent.toml`, flag it CRITICAL and ask for a split: the structure change must be reviewed alone. The same applies to any PR that changes a rule +source — `AGENTS.md`, `docs/stp-guide.md`, `.coderabbit.yaml`, `.pr_agent.toml`, or a template — and +an STP in the same diff: split it, so the rule cannot be rewritten under cover of the STP that +benefits from it. An unrelated typo fix in a template is fine. + +**Where the content belongs instead:** details a proposed field would carry go into free prose in +an existing field, or outside the STP (design doc, VEP, tests repository). A detail that is +genuinely useful but has no matching field is a template discussion — not a reason to add a key to +one STP. + +**Template PRs replace the feature-STP shape check with their own gate.** For files under +`stps/stp-template/`, verify that the PR: + +- does not silently remove an item that is not listed as conditional above — a rename or a + documented replacement is allowed, an unexplained deletion is not +- when it changes structure or shared rule guidance — adding, renaming, reordering, or removing a + section, numbered subsection, checklist item, metadata field, field inside a checklist item, or + Section III key — updates the template it changes, `AGENTS.md` (this section), `docs/stp-guide.md`, + the structure block in `.coderabbit.yaml`, and the `extra_instructions` in `.pr_agent.toml` in the + same PR, so the five copies cannot drift +- applies the change to both templates where the item exists in both + +A typo, wording, or comment-only template edit that leaves the fields and the rules unchanged is +exempt: it needs no rule-copy update and must not be flagged for one. + +**Already-merged STPs are exempt** (see also Content Quality Rules). Template rules are not +retroactively enforced. The exemption is per entry, not per section: entries a PR adds or modifies +follow the current template, and legacy entries the PR leaves alone keep the shape they were +approved with. Re-shaping a legacy entry onto the current template is exactly that required update — +renaming its fields to the current names is the re-shape, not a structure change, and is not +CRITICAL. Only divergence from the **current** template counts. --- @@ -63,7 +202,7 @@ rather than requiring it. - [ ] Claims made in the Feature Overview (e.g., "isolated," "secure," "non-disruptive," "seamless") must have matching acceptance criteria and test scenarios. If the feature doesn't test a claim: remove the claim from the Overview, document it in Out of Scope - with Rationale and Sign-off (Quality Owner or Product Manager, name/date), or reference existing coverage + with Rationale and Sign-off (Quality Owner or Product Manager, name), or reference existing coverage elsewhere (do not use Out of Scope for work already covered by other teams/suites). **Common rejection reasons:** @@ -74,9 +213,15 @@ rather than requiring it. ### I.1 — Requirement & User Story Review -- [ ] All checklist items have checkboxes marked `[x]` with content filled in -- [ ] Requirements are listed as specific, testable items — not a repetition of the Feature Overview -- [ ] Customer use cases are in user story format ("As a [role], I want to [action]") +- [ ] All checklist items have checkboxes marked `[x]` with content filled in, or are left `[ ]` + with the reason recorded in the item's own lines (as the template instructs) +- [ ] Requirements are specific and testable — each names a behavior **and** the condition it must + hold under, and does not repeat the Feature Overview ("Support migration" is not a requirement) +- [ ] *Value* states the customer cost of *not* having the feature (broken workflow, unmet SLA, + paid-for workaround) — not a list of product capabilities +- [ ] Customer use cases are in user story format ("As a [role], I want [action], so that [benefit]") +- [ ] Use cases name a concrete role a customer would recognize (VM owner, cluster admin, SRE), + not a generic "user", and each maps to a Section III scenario - [ ] Acceptance criteria are individual list items — each is a specific, verifiable pass/fail condition - [ ] Acceptance criteria describe observable user outcomes, not internal system behavior - [ ] For features claiming seamless or non-disruptive behavior, acceptance criteria must include @@ -101,6 +246,10 @@ rather than requiring it. - Acceptance criteria for seamless/non-disruptive features only verify end-state — a disrupt-then-restore sequence would produce the same passing result - Requirements repeat the feature overview instead of listing actual D/S Jira requirements +- Requirements are one generic sentence that could describe any feature, with no behavior and no + condition to test against +- *Value* or use cases list product capabilities instead of customer consequence, or use cases are + written for an unnamed "user" and trace to no scenario - NFRs section says "N/A" without explaining why each NFR category doesn't apply - Scalability NFR dismissed as "no new requirements" when the feature depends on a mechanism with existing cluster-level scale limits @@ -108,9 +257,9 @@ rather than requiring it. ### I.2 — Feature Limitations -- [ ] Each limitation has a sign-off: `*Sign-off:* [Name/Date]` +- [ ] Each limitation has a sign-off: `*Sign-off:* [Name]` - [ ] Limitations are constraints (not scope decisions) -- [ ] If no limitations: "None — reviewed and confirmed with [Name/Date]" +- [ ] If no limitations: "None — reviewed and confirmed with [Name]" - [ ] Open bugs that affect the feature are listed with Jira links **Common rejection reasons:** @@ -158,20 +307,20 @@ rather than requiring it. feature's prior execution would produce a different outcome than a baseline reaching the same state. **Out of Scope:** -- [ ] Each item has Rationale and a Quality Owner or Product Manager Sign-off with name and date +- [ ] Each item has Rationale and a Quality Owner or Product Manager Sign-off with a name - [ ] Items are decisions QE made (not constraints imposed on QE — those are Test Limitations) - [ ] Format per template: `- **Item** / *Rationale:* / *Sign-off (Quality Owner or Product Manager):*` - [ ] Items are genuinely out of scope — if already tested elsewhere, document as existing coverage, not out of scope **Test Limitations:** -- [ ] Each limitation has sign-off: `*Sign-off:* [Name/Date]` +- [ ] Each limitation has sign-off: `*Sign-off:* [Name]` - [ ] Items are constraints imposed on QE (not decisions QE made — those are Out of Scope) **Common rejection reasons:** - Testing goals use implementation language ("verify boot sources are provisioned") instead of user language ("deploy a VM from each available boot source") -- Out of Scope items have `[Name/Date]` placeholder instead of actual sign-offs +- Out of Scope items have `[Name]` placeholder instead of actual sign-offs - Regression tests mixed with new functional tests in Testing Goals - Missing priority levels on goals - Testing goal names only one configuration dimension (e.g., binding type) when others are required @@ -231,7 +380,8 @@ rather than requiring it. - [ ] At minimum: requirements approved + test environment configured - [ ] Feature-specific entry criteria added where applicable -- [ ] Items marked `[x]` when completed, `[ ]` when pending +- [ ] Items marked `[x]` when completed, `[ ]` when pending; a "None" entry criterion is still + marked `[x]` — the box records that the question was answered, not that a condition was met ### II.4.1 — Cross-Section Consistency @@ -251,11 +401,13 @@ Reviewers must verify these cross-references between sections: ### II.5 — Risks -- [ ] ALL standard risk categories are addressed — parent STPs only; child STPs follow the Risk bullet under - "Multi-SIG Features and Child STPs" in `docs/stp-guide.md` (even if no risk, include Mitigation with brief justification): +- [ ] ALL standard risk categories are addressed — in a child STP too, every category stays and reads + `None — [why]` when the SIG has no risk (see the Risk bullet under "Multi-SIG Features and Child STPs" + in `docs/stp-guide.md`); even if no risk, include Mitigation with brief justification: Timeline/Schedule, Test Coverage, Test Environment, Untestable Aspects, Resource Constraints, Dependencies -- [ ] "Other" category is included only if risks exist that don't fit the standard categories above +- [ ] "Other" category is present, holding the risks that don't fit the 6 standard categories — + or `None — [why]` when nothing fits it - [ ] When a risk exists: full entry required — Risk description, Mitigation strategy, Sign-off, and the category-specific supplemental field: *Estimated impact on schedule* (Timeline/Schedule), @@ -277,10 +429,14 @@ Reviewers must verify these cross-references between sections: ### III — Test Scenarios & Traceability -- [ ] Every scenario has a Jira Requirement ID (not "[TBD]"). - Multiple scenarios may reference the same requirement ID, but the Section III structure must follow - the template. -- [ ] Requirement summaries use user story format ("As a [role], I want...") +- [ ] Every requirement in I.1 carries an identifier — `[req-1]`, `[req-2]`, … — local to the STP, and + not a Jira key +- [ ] Every scenario references one of those identifiers (never "[TBD]"); several scenarios may + reference the same requirement, but the Section III structure must follow the template +- [ ] Every requirement has at least one scenario, or its absence is covered by a Testing Goal that + points at an Out of Scope entry +- [ ] The requirement behind each scenario is readable from I.1 — the scenario itself carries only the + identifier, not the requirement wording - [ ] Each scenario states its Tier (1, 2, or 3) in the scenario line, as in the template, and a Priority (P0/P1/P2, optionally with a phase tag) - [ ] Every non-regression Testing Goal from Section II.1 has a matching scenario here; regression goals @@ -326,7 +482,8 @@ Reviewers must verify these cross-references between sections: When an STP spans multiple SIGs: - All participating SIGs must be listed and must have confirmed their test scope -- Child STPs (per-SIG) should NOT duplicate the parent STP — they extend it +- Child STPs (per-SIG) should NOT duplicate the parent STP — they cover the SIG-specific part of it + and add scope, never fields - Each SIG's regression responsibility must be explicitly documented - Cross-SIG test scenarios (e.g., cross-architecture VM connectivity) must have a clear owner @@ -389,10 +546,15 @@ SIG the child covers. - Write from the user's perspective ("As a VM admin, I want to...") - Use specific, verifiable language in acceptance criteria - Provide rationale for every out-of-scope item -- Link every test scenario to a Jira requirement +- Link every test scenario to a requirement identifier from Section I.1 - Clearly separate: Feature Limitations | Test Limitations | Out of Scope | Risks - Use the current template format for STPs being added or modified in the PR - (do not retroactively enforce on already-merged STPs) + (do not retroactively enforce on already-merged STPs — see Template Structure Compliance) +- Fill the template exactly as defined — every section, checklist item, metadata field, and + scenario key keeps its template name, shape, and position (see [Template Structure Compliance](#template-structure-compliance)) +- Put content that has no matching field as free prose inside an existing field (no new bullet, + label, `Key: value` line, table, or HTML element), or outside the + STP (design doc, VEP, tests repository) — never in a new field - Remove all template HTML comments and example text before submitting - Include at least one negative or failure-path Testing Goal for each P0 functional goal, with a matching Section III scenario — or document the omission in Out of Scope with Quality Owner or Product Manager sign-off @@ -402,7 +564,7 @@ SIG the child covers. ### DON'T - Use implementation terms (internal API field names, internal component names), other than documented user-facing objects the user must create or edit -- Leave template placeholder text ("[Add details]", "[Name/Date]", "[TBD]") +- Leave template placeholder text ("[Add details]", "[Name]", "[TBD]") - Mark all risks as N/A - Mix constraint categories (limitations vs. out-of-scope vs. risks) - List standard tools in Testing Tools section @@ -413,6 +575,8 @@ SIG the child covers. - Describe Topology Considerations in terms of internal resource creation — use cluster/network topology only - Include QE internal process language in Test Strategy (triage, bug filing, defect classification) - Submit child STPs that duplicate content from the parent STP +- Add, rename, reorder, or remove a template item in an STP — or let an STP change depend on a + structure change made in the same PR; propose the structure change separately instead --- @@ -432,7 +596,7 @@ SIG the child covers. | Level | Meaning | Action | |-------|---------|--------| -| **CRITICAL** | Blocks approval. Missing traceability, empty sign-offs, contradictions | Must fix before merge | +| **CRITICAL** | Blocks approval. Missing traceability, empty sign-offs, contradictions, template structure changes in an STP | Must fix before merge | | **HIGH** | Template non-compliance, incomplete sections, vague content | Must fix before merge | | **MEDIUM** | Formatting issues, minor content improvements | Should fix | | **LOW** | Style suggestions, optional enhancements | Nice to have | diff --git a/CLAUDE.md b/CLAUDE.md index ce7f39a5..0466e1c2 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -7,7 +7,7 @@ Project guidance for AI coding assistants. ## Key References - `README.md` — Project overview, structure, and contributing guidelines -- `AGENTS.md` — AI review checklist for STP pull requests (review index and workflow; the template and guide hold the rules) +- `AGENTS.md` — AI review checklist for STP pull requests (review index and workflow; the template and guide hold the rules, except the normative "Template Structure Compliance" section, kept in sync with them) - `docs/stp-guide.md` — STP purpose, lifecycle and process guide - `docs/testing-tiers.md` — Testing tier definitions - `stps/stp-template/stp.md` — STP template with inline instructions diff --git a/README.md b/README.md index 706eece4..284cf210 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ Centralize QE documentation and test planning to ensure: |:-----------------------------------------------|:-----------------------------------------------------------------------------------| | [STP Guide](./docs/stp-guide.md) | Guide to Software Test Plans: purpose of each part, lifecycle, and best practices | | [Testing Tiers Guide](./docs/testing-tiers.md) | Differences between Unit Tests, Tier 1 (Functional), Tier 2 (End-to-End), and Tier 3 (Extended) tests | +| [AI Review Guide](./AGENTS.md) | Review standards for STP PRs, including template structure compliance | ### Templates @@ -41,6 +42,8 @@ Centralize QE documentation and test planning to ensure: | [STP Template](./stps/stp-template/stp.md) | Software Test Plan template for feature testing | | [Child STP Template](./stps/stp-template/child-stp.md) | Per-SIG child STP for multi-SIG features | +The template structure is fixed — see [Template Structure Compliance](./AGENTS.md#template-structure-compliance). + ## Key Concepts ### Glossary @@ -179,10 +182,11 @@ author's lead. The QE Owner(s) named in the metadata own and write the testing p - [Testing Tiers Guide](./docs/testing-tiers.md) - [STP Template](./stps/stp-template/stp.md) - [Child STP Template](./stps/stp-template/child-stp.md) +- [AI Review Guide](./AGENTS.md) ## Contributing -1. Create the STP from the [template](./stps/stp-template/stp.md), which defines structure and format +1. Create the STP from the [template](./stps/stp-template/stp.md), which defines structure and format — fill its existing fields only 2. Follow the [STP Guide](./docs/stp-guide.md) for purpose and process 3. Ensure proper test tier coverage per [Testing Tiers Guide](./docs/testing-tiers.md) 4. Get stakeholder approval before testing begins diff --git a/docs/stp-guide.md b/docs/stp-guide.md index ba8280ea..f32281f3 100644 --- a/docs/stp-guide.md +++ b/docs/stp-guide.md @@ -29,8 +29,11 @@ The STP is a **mandatory deliverable** for formal QE sign-off and feature accept [`stps/stp-template/stp.md`](../stps/stp-template/stp.md) (child STPs: [`child-stp.md`](../stps/stp-template/child-stp.md)). It contains inline instructions for most fields. This guide does not restate those instructions; it maps the template's parts and explains their purpose and the -process around them. -If this guide and the template ever disagree, the template wins and the guide must be fixed. +process around them. The one exception is the fixed structure below, which is a shared rule: it is stated +in full here as well so this guide can be read on its own, and it is kept in sync with the four other copies. +If this guide and the template ever disagree, the template wins and the guide must be fixed. The one +exception is the structure rule below: a disagreement between it and a template is a copy-sync defect to +fix in all copies, not an STP finding. | Template part | Purpose | |:--------------|:--------| @@ -41,9 +44,99 @@ If this guide and the template ever disagree, the template wins and the guide mu | II.3 / II.3.1 Environment, Tools | What the tests need to run; only new or non-standard tools | | II.4 Entry Criteria | What must be true before testing starts | | II.5 Risks | Uncertainties, grouped by the template's risk categories, each with mitigation and sign-off | -| III. Test Scenarios & Traceability | Each new scenario traced to a Jira requirement, with tier and priority | +| III. Test Scenarios & Traceability | Each new scenario traced to a requirement identifier from Section I.1, with tier and priority | | IV. Sign-off and Approval | Sign-off by at least one person per function (Feature Owner, Quality Owner, Product Manager) | +### The Template Is Fixed + +[`stps/stp-template/stp.md`](../stps/stp-template/stp.md) (feature STPs) and +[`stps/stp-template/child-stp.md`](../stps/stp-template/child-stp.md) (child STPs) define both the +section structure **and** the field set. An STP fills the template; it does not extend it. + +Not allowed in a feature STP, and blocking on review: + +- adding a section, numbered subsection, checklist item, metadata field, field inside a checklist + item, or Section III key +- renaming or reordering any of those +- removing any of those that is not listed as conditional below +- splitting one field into several, or nesting new keys inside an existing field +- field-shaped content inside a field: a bold or italic label followed by `:` and a value, a + `Key: value` line, or a table column that behaves like a field. Emphasis inside a sentence + (`**Note:**`) is prose, and extra detail must be free prose +- a new group heading inside a section: a standalone bold or italic line, or a heading, that + introduces a group of items — that is a new subsection + +Inside a field value, the bracketed labels the template itself defines stay in a filled field: +`[req-N]` on a Section III entry, `[P0]`/`[P1]`/`[P2]` on a Testing Goal, the optional phase tag on a +goal as `[P0][TP]` or on a scenario as `- *Priority:* P0 [TP]`, and `[Tier N]` at the start of +`Test Scenario`. Also sanctioned, because the template itself writes them: markdown link labels, the +checklist markers `[ ]`/`[x]`, the `Document Conventions` term line, and bracketed placeholders such +as `[version or N/A]`, which are replaced when the field is filled. Any other bracketed *token acting as +a key or label* is a new field. + +**Section III has one entry shape.** Each entry is a bullet with the requirement identifier from +Section I.1 bold, the requirement +summary as a user story, then exactly two keys — the tier inline as the first token of +`Test Scenario`: + +```markdown +- **[req-N]** + - *Test Scenario:* [Tier N] [scenario] + - *Priority:* P0 +``` + +A child STP uses the same shape. A separate `Tier` key, `Test ID`, `Upstream coverage`, +`Downstream required`, `Covered upstream`, `Pending (Tier 2 downstream)` and `Gap resolution` are new +fields. + +**Inside a field, only two things are allowed:** plain sentences, and the template's own lines +repeated — nested, or at the same level for the `Document Conventions` term line. Any other nested +list item, ordered list, table, or content-bearing HTML element inside a +field is a new field (HTML comments excepted). + +**Repeating a template line is content, not structure** — extra entry criteria, extra risk +entries, extra scenarios, requirements, criteria, NFRs, or limitations are all allowed. + +**Conditional items — the only permitted omissions in a feature STP:** `Document Conventions +(if applicable)`, and the supplemental field plus `Sign-off` line of a risk category that has no +risk. Nothing else is optional there: template wording like "if applicable" or "if needed" never +licenses deleting a labelled field — every field the template shows stays. + +Child STPs are held to `child-stp.md`'s own field set, which legitimately has no `Enhancement(s)`, +`Feature Maturity`, `Owning SIG`, `Participating SIGs`, or `Child STPs` field — it names only its own +`SIG` — and no `Value`/`Use cases` item, and may not add fields beyond it either. + +In a filled STP, HTML comments carry guidance only — never a field, key, or value the visible +document does not show — and they are removed before submitting. In the templates the comments are +the document, and in `AGENTS.md` and `docs/*.md` they are guidance too — comments there are never a +finding. + +If a field is missing or badly shaped, that is a **template change** and needs its own PR to this +repository, changing the template it changes, this guide, the `Template Structure Compliance` section +of `AGENTS.md`, the structure block in `.coderabbit.yaml`, and the `extra_instructions` in +`.pr_agent.toml` together — and to the same item in the other template wherever it exists in both — +so the five copies cannot drift. STPs adopt the new structure only after +that PR merges. A rename or a documented replacement is allowed in that PR; an unexplained deletion of a required +item is not. A typo, wording, or comment-only template edit that leaves the fields and the rules +unchanged needs no rule-copy update and should not be flagged for one. A detail that has no matching +field belongs in free prose in an existing field, or outside the STP (design doc, VEP, tests +repository). + +A structure change must not ride along inside an STP PR: flag any PR where an STP change uses a +field, key, or section the same PR adds, renames, or removes in a template, in `AGENTS.md`, in this +guide, in `.coderabbit.yaml`, or in `.pr_agent.toml` — a PR that changes a rule source and an STP +in the same diff must be split. An unrelated template typo fix is fine. + +Consequence for reviewers: a useful-but-unknown field in an STP is a CRITICAL structure violation, +not a suggestion to extend the template. A structure change is reviewed on its own, from the +template PR that introduces it. + +**Already-merged STPs keep the shape they were approved with.** Template rules are not retroactively +enforced. The exemption is per entry: entries a PR adds or modifies follow the current template, and +legacy entries the PR leaves alone are not flagged. Re-shaping a legacy entry onto the current +template — renaming its fields to the current names — is that required update, not a structure +change. Only divergence from the **current** template counts. See the checklist in `AGENTS.md`. + ### Purpose of Each Part The template says what to fill in. This section explains why each part exists and when it happens. @@ -74,6 +167,8 @@ different from standard test infrastructure. **II.4 Entry Criteria.** The conditions that must hold before test execution starts, such as approved requirements and design and an environment that can be set up. Feature-specific conditions are added as needed. +A "None" entry criterion is still marked `[x]` — the box records that the question was answered, not that +a condition was met. **II.5 Risks.** Uncertainties that might affect testing, each with a mitigation, grouped by the template's risk categories. See Constraint Categories below for how risks differ from limitations and Out of Scope. @@ -123,13 +218,14 @@ stps/// **Child STPs** — define SIG-specific testing goals, scenarios, strategy, and risks. They reference the parent for shared context and do NOT duplicate it. A child STP differs from the parent in these ways: -- It omits Enhancement(s), Feature Maturity, Owning/Participating SIGs and the customer value and use cases of - the feature; it names only its own SIG. +- It omits `Enhancement(s)`, `Feature Maturity`, `Owning SIG` and `Participating SIGs` (it names only its +own `SIG`), `Child STPs`, and the `Value` and `Use cases` items of the feature. - Its Feature Overview describes only the SIG's scope. -- Test Environment and Entry Criteria are covered by the parent; the child adds only SIG-specific needs. -- It lists only SIG-specific risks and links to the parent for the rest. Risk categories with no - SIG-specific risk are omitted; if there are none, it states "None beyond the parent STP", and the rule that - every risk category is addressed applies to the parent STP. +- Test Environment and Entry Criteria are covered by the parent; the child adds only SIG-specific needs + and carries no completion status for them. +- It lists only SIG-specific risks and links to the parent for the rest; feature-wide risks belong to + the parent. The child template defines which risk categories a child STP carries and the form a + category takes when the SIG has no risk in it — follow the template, not a second list here. All other rules in this guide apply to child STPs unchanged. @@ -148,8 +244,9 @@ An STP keeps the following kinds of constraints apart. Never mix them. Rule of thumb: Feature Limitations and Test Limitations are *known facts* (about the product and about what QE can test), risks are *uncertainties*, Out of Scope is a *decision*. -Every entry that states a limitation, an exclusion or a risk is signed off; a risk category marked "N/A" -needs only a justification in the Mitigation field. The template shows where each sign-off goes. +Every entry that states a limitation, an exclusion or a risk is signed off; a risk category with no +risk keeps its `Mitigation` line and reads `None — [why]` — not a bare "N/A". The template shows +where each sign-off goes. ## Priority and Tier @@ -161,10 +258,14 @@ section; they apply to testing goals and scenarios alike. See "Phase tag" there ## Checklist Before Requesting Review - Template HTML comments and example text removed; no template placeholder text is left (`[Add details]`, - `[Name/Date]`, `[TBD]`); the `[Tier N]` marker is not a placeholder + `[Name]`, `[TBD]`); the `[Tier N]` marker is not a placeholder - Traceability holds: every non-regression Testing Goal has a Section III scenario, and every acceptance criterion is covered by a scenario or by named existing regression coverage in Test Strategy - Every limitation, exclusion and risk entry is signed off (see Constraint Categories) +- Structure matches the template: no section, checklist item, metadata field, field inside a + checklist item, Section III key, or risk field added, renamed, reordered, or removed, and the only + bracketed tokens are the ones the template sanctions — its own labels, markdown link labels, the + checklist markers and placeholders (see "The Template Is Fixed") ## Moving an STP diff --git a/stps/stp-template/child-stp.md b/stps/stp-template/child-stp.md index a189b9c1..68596ac3 100644 --- a/stps/stp-template/child-stp.md +++ b/stps/stp-template/child-stp.md @@ -1,15 +1,35 @@ # Openshift-virtualization-tests Test plan + + ## **[Feature Title — SIG-Specific Scope] - Quality Engineering Plan** ### **Metadata & Tracking** - **Feature Tracking:** [Link to the relevant feature in Jira] -- **Epic Tracking:** [Link to the SIG-specific tracking Jira Epic, if separate from the parent] +- **Epic Tracking:** [Link to the SIG-specific tracking Jira Epic, or "Same as parent"] - **QE Owner(s):** [Name (@github-handle, email)] - **SIG:** [This SIG — the one this child STP covers] -**Document Conventions (if applicable):** [Define terms specific to this SIG's scope only] +**Document Conventions (if applicable):** + +- **[term]** — [define a term specific to this SIG's scope only] ### **Feature Overview** @@ -31,27 +51,34 @@ Feature-wide requirements, acceptance criteria, and NFRs are defined in the pare #### **1. Requirement & User Story Review Checklist** - [ ] **Review Requirements** - - *SIG-specific requirements:* [List requirements this SIG owns, or "None — all requirements are in the parent STP"] + + - **[req-1]** [SIG-specific requirement, or "None — all requirements are in the parent STP"] - [ ] **Acceptance Criteria** - - - [List SIG-specific acceptance criteria, or "None — all acceptance criteria are in the parent STP"] + + - [SIG-specific acceptance criterion, or "None — all acceptance criteria are in the parent STP"] - [ ] **Testability** - - *Note any SIG-specific requirements that are unclear or untestable:* [List or "None"] + + - [Unclear or untestable SIG-specific requirement, or "None"] - [ ] **Non-Functional Requirements (NFRs)** - - - *SIG-specific NFRs:* [List or "None — all NFRs are covered by the parent STP"] - - *NFRs not covered and why:* [List with justification] + + - [SIG-specific NFR and its target, or "None — all NFRs are covered by the parent STP"] + - [SIG-specific NFR not covered and why, or "None"] #### **2. Feature Limitations** +If none, state "None — reviewed and confirmed with [Name]." and keep the `*Sign-off:*` line. --> - **[SIG-specific limitation]** - - *Sign-off:* [Name/Date] + - *Sign-off:* [Name] #### **3. Technology and Design Review** @@ -59,20 +86,22 @@ If none, state: "None — reviewed and confirmed with [Name/Date]." --> - *Key takeaways and concerns:* [SIG-specific technical concerns] - [ ] **Technology Challenges** - - *List identified challenges:* [SIG-specific challenges] + + - [SIG-specific testing challenge] - *Impact on testing approach:* [Impact on this SIG's tests] - [ ] **API Extensions** - - *List new or modified user-facing APIs:* [SIG-specific, or "N/A — see parent STP"] + - [SIG-specific testing of an existing user-facing API, or "N/A — see parent STP"] - *Testing impact:* [Impact] - [ ] **Test Environment Needs** - *See environment requirements in Section II.3 and testing tools in Section II.3.1* - [ ] **Topology Considerations** - - *Describe topology requirements:* [SIG-specific topology needs] + + - [SIG-specific topology requirement] - *Impact on test design:* [Impact] ### **II. Software Test Plan (STP)** @@ -84,8 +113,10 @@ If none, state: "None — reviewed and confirmed with [Name/Date]." --> + +Each P0 functional goal needs a negative or failure-path goal next to it — with a matching +Section III scenario — or the omission documented in Out of Scope with Quality Owner or Product Manager +sign-off — "considered" alone is insufficient. --> - **[P0]** [SIG-specific testing goal] - **[P1]** [SIG-specific testing goal] @@ -94,18 +125,20 @@ with Quality Owner or Product Manager sign-off. --> **Out of Scope (Testing Scope Exclusions)** +entire feature, it belongs in the parent STP — not here. If none, state "None — [why]" and keep the +`*Rationale:*` and `*Sign-off (Quality Owner or Product Manager):*` lines. --> - **[Item]** - *Rationale:* [Why this SIG won't test it] - - *Sign-off (Quality Owner or Product Manager):* [Name/Date] + - *Sign-off (Quality Owner or Product Manager):* [Name] **Test Limitations** - + - **[Test Limitation]** - - *Sign-off:* [Name/Date] + - *Sign-off:* [Name] #### **2. Test Strategy** @@ -164,10 +197,10 @@ uncheck and state "Covered by parent STP" or "Covered by [SIG name]". --> #### **3. Test Environment** - + -- [SIG-specific environment needs, or "Covered by the parent STP"] +- [SIG-specific environment requirement, or "None — covered by the parent STP"] #### **3.1. Testing Tools & Frameworks** @@ -179,36 +212,89 @@ network, operators, platform, special configurations); the parent's environment #### **4. Entry Criteria** - + -- [SIG-specific entry criteria, or "Covered by the parent STP"] +- [SIG-specific entry criterion, or "None — covered by the parent STP"] #### **5. Risks** Feature-wide risks are stated in the parent STP ([Risks](./stp.md#5-risks)) and are not repeated here. - + + +**Timeline/Schedule** + +- **Risk:** [SIG-specific schedule risk, or "None — [why]"] + - **Mitigation:** [Mitigation plan, or the one-line no-risk justification] + - *Estimated impact on schedule:* [Delay or schedule impact] + - *Sign-off:* [Name] + +**Test Coverage** + +- **Risk:** [SIG-specific coverage risk, or "None — [why]"] + - **Mitigation:** [Mitigation plan, or the one-line no-risk justification] + - *Areas with reduced coverage:* [Affected areas] + - *Sign-off:* [Name] + +**Test Environment** + +- **Risk:** [SIG-specific environment risk, or "None — [why]"] + - **Mitigation:** [Mitigation plan, or the one-line no-risk justification] + - *Missing resources or infrastructure:* [What is unavailable] + - *Sign-off:* [Name] + +**Untestable Aspects** + +- **Risk:** [Untestable aspect for this SIG, or "None — [why]"] + - **Mitigation:** [Alternative validation, or the one-line no-risk justification] + - *Alternative validation approach:* [Fallback validation] + - *Sign-off:* [Name] + +**Resource Constraints** + +- **Risk:** [SIG-specific resource constraint, or "None — [why]"] + - **Mitigation:** [Prioritization plan, or the one-line no-risk justification] + - *Current capacity gaps:* [Staffing or skill gaps] + - *Sign-off:* [Name] + +**Dependencies** + +- **Risk:** [SIG-specific dependency, or "None — [why]"] + - **Mitigation:** [Coordination plan, or the one-line no-risk justification] + - *Dependent teams or components:* [External dependencies] + - *Sign-off:* [Name] + +**Other** -**[Risk Category]** + -- **Risk:** [SIG-specific risk] - - **Mitigation:** [Mitigation plan] - - *[Category-specific field]:* [Details] - - *Sign-off:* [Name/Date] +- **Risk:** [Risk not covered above, or "None — [why]"] + - **Mitigation:** [Plan, or the one-line no-risk justification] + - *Sign-off:* [Name] --- ### **III. Test Scenarios & Traceability** - +documented in Test Strategy (II.2), not in this section. The entry shape is the parent's: the tier is inline in +`Test Scenario`. --> -- **[Jira-ID]** — As a [role], I want [action] so that [benefit] - - *Test Scenario:* [Tier 1/2/3] [Description] +- **[req-N]** + - *Test Scenario:* [Tier N] [Description, with an observable pass criterion] - *Priority:* [P0/P1/P2, with an optional phase tag as in the parent STP] --- diff --git a/stps/stp-template/stp.md b/stps/stp-template/stp.md index 3fa222bc..e1ce96a3 100644 --- a/stps/stp-template/stp.md +++ b/stps/stp-template/stp.md @@ -1,5 +1,32 @@ # Openshift-virtualization-tests Test plan + + ## **[Feature Title/Name] - Quality Engineering Plan** ### **Metadata & Tracking** @@ -11,7 +38,8 @@ - **Feature Maturity:** -**Document Conventions (if applicable):** [Define acronyms or terms specific to this document] +**Document Conventions (if applicable):** + +- **[term]** — [define a term specific to this document] ### **Feature Overview** @@ -59,34 +91,77 @@ before testing starts, so reviewers should check it against their own understand #### **1. Requirement & User Story Review Checklist** - [ ] **Review Requirements** - - - *List the key D/S requirements reviewed:* [Summarize requirements here] + + - **[req-1]** [Requirement — behavior and the condition it must hold under] - [ ] **Understand Value and Customer Use Cases** - - - *Describe the feature's value to customers:* [Describe the customer value here] - - *List the customer use cases identified:* [List use cases here] + + - *Value:* [The customer cost of not having this feature] + - *Use cases:* + - As a [role], I want to [action], so that [benefit] - [ ] **Testability** - - - *Note any requirements that are unclear or untestable:* [List unclear or untestable requirements, or "None"] + + - [Unclear or untestable requirement and why, or "None"] - [ ] **Acceptance Criteria** - - - *List the acceptance criteria:* [Add acceptance criteria here] - - *Note any gaps or missing criteria:* [Describe gaps, or "None"] + + - [Acceptance criterion — observable, falsifiable pass/fail condition] + - *Gaps or missing criteria:* [Gap or missing criterion, or "None"] - [ ] **Non-Functional Requirements (NFRs)** - - - *List applicable NFRs and their targets:* [e.g., Resource Efficiency: < 5% CPU overhead on host during feature operation, Security: RBAC enforced, Scalability: supports 500 VMs] - - *Note any NFRs not covered and why:* [e.g., "Scalability — no test environment with 500+ VMs available", or "None"] + + - [Applicable NFR and its target] + - [NFR not covered and why, or "None"] #### **2. Feature Limitations** @@ -106,13 +181,15 @@ Example: "Feature does not support IPv6" is a **limitation** (known, confirmed, - No support for ARM64 architecture in this release - The feature is incompatible with ZZZ feature -If there are no feature limitations, remove the example items and state: "None — reviewed and confirmed with [Name/Date] that no feature limitations apply for this release." --> +If there are no feature limitations, replace the placeholder item below with "None — reviewed and +confirmed with [Name] that no feature limitations apply for this release." and keep its +`*Sign-off:*` line — only a risk category's supplemental and `Sign-off` lines may be dropped. --> - **[Feature Limitation 1]** - - *Sign-off:* [Name/Date — confirms awareness and acceptance of this limitation] + - *Sign-off:* [Name — confirms awareness and acceptance of this limitation] - **[Feature Limitation 2]** - - *Sign-off:* [Name/Date — confirms awareness and acceptance of this limitation] + - *Sign-off:* [Name — confirms awareness and acceptance of this limitation] #### **3. Technology and Design Review** @@ -121,28 +198,33 @@ If there are no feature limitations, remove the example items and state: "None 2. Complete the relevant, needed details for the checklist item --> - [ ] **Developer Handoff/QE Kickoff** - - - *Key takeaways and concerns:* [Summarize key points and concerns] + + - *Key takeaways and concerns:* [What was learned, and what worries QE] - [ ] **Technology Challenges** - - - *List identified challenges:* [Describe challenges here] - - *Impact on testing approach:* [Describe impact on testing] + + - [Testing challenge] + - *Impact on testing approach:* [How the challenge changes the test approach] - [ ] **API Extensions** - - - *List new or modified APIs:* [Add APIs here] - - *Testing impact:* [Describe testing impact] + + - [New or modified user-facing API] + - *Testing impact:* [How the API change affects existing and new tests] - [ ] **Test Environment Needs** - *See environment requirements in Section II.3 and testing tools in Section II.3.1* - [ ] **Topology Considerations** - - - *Describe topology requirements:* [Add topology requirements here] - - *Impact on test design:* [Describe impact on test design] + + - [Cluster and network topology required] + - *Impact on test design:* [How the topology shapes the test design] ### **II. Software Test Plan (STP)** @@ -169,19 +251,22 @@ Each goal should tie back to requirements from Section I and be independently ve - **Relevant**: Directly supports feature acceptance criteria and user stories - **Verifiable**: Can be objectively confirmed as complete -**Negative paths:** Each P0 functional goal has a negative or failure-path Testing Goal (e.g., "what happens if -migration fails?", "what if the VM starts during the operation?"), or an Out of Scope entry with Quality Owner or -Product Manager sign-off — "considered" alone is insufficient. A negative path that is also an Acceptance Criterion -cannot be moved to Out of Scope: Section III covers it. --> - **Priority Levels:** - **P0**: Blocks GA - must be complete before release - **P1**: High priority - required for full feature coverage - **P2**: Nice-to-have - can be deferred if timeline constraints exist **Phase tag (optional):** Priorities refer to GA. If a goal or scenario must also pass at an intermediate phase -(e.g. Tech Preview), add a phase tag: `[P0][TP]` for a goal, `- *Priority:* P0 [TP]` for a scenario. Use the -phase names from Feature Maturity (from the parent STP for a child STP). +(e.g. Tech Preview), add a phase tag: `**[P0][TP]**` for a goal, `- *Priority:* P0 [TP]` for a scenario. Use the +phase names from Feature Maturity (from the parent STP for a child STP). Add it only when the goal really has to +pass at that earlier phase — a phase tag is not required for a goal that follows the feature to GA. + +**Write one goal per bullet, P0 first.** Each P0 functional goal needs a negative or failure-path +goal next to it — with a matching Section III scenario — covering what happens if the operation +fails, if the VM starts mid-operation, or if the input is invalid — or, if that negative-path coverage +is genuinely out of scope, an Out of Scope entry with Quality Owner or Product Manager sign-off +("considered" alone is insufficient). A negative path that is also an Acceptance Criterion cannot be +moved to Out of Scope: Section III covers it, or named existing regression coverage in Test Strategy. --> -- **[P0]** [List key functional areas to be tested with priority; add a phase tag such as `[P0][TP]` only if needed] -- **[P1]** [List non-functional requirements to be tested with priority] -- **[P2]** [Reference specific user stories from Section I with priority] +- **[P0]** [Functional goal — what is verified and how success is measured; add a phase tag such as `[P0][TP]` only if needed] +- **[P1]** [Non-functional goal — what is verified and how success is measured] +- **[P2]** [User-story goal from Section I — what is verified and how success is measured] **Out of Scope (Testing Scope Exclusions)** @@ -227,15 +312,17 @@ Example: "MultiArch cluster might not be available" is a **risk**. "We will not **Difference from existing coverage:** Areas already covered by existing regression suites or other teams are not Out of Scope; record them under Regression Testing in Test Strategy (II.2). -**Note:** Replace examples with your actual out-of-scope items. If there are no items, remove the examples and state: "None — reviewed and confirmed that all supported product functionality will be tested this cycle." --> +**Note:** Replace the placeholders below with your actual out-of-scope items. If there are none, +replace the item with "None — reviewed and confirmed that all supported product functionality will +be tested this cycle." and keep its `*Rationale:*` and `*Sign-off (Quality Owner or Product Manager):*` lines. --> - **[e.g., Interface settings that are independent of the new network binding (e.g., NIC model)]** - *Rationale:* The feature is expected to work with any interface setting. These settings affect the vNIC emulation towards the guest and are agnostic to the binding choice, so no feature-specific test is planned - - *Sign-off (Quality Owner or Product Manager):* [Name/Date] + - *Sign-off (Quality Owner or Product Manager):* [Name] - **[e.g., Special guest OS coverage (e.g., Windows)]** - *Rationale:* Feature is expected to work with Windows guests but no explicit tests are planned; validation uses Fedora-based guests - - *Sign-off (Quality Owner or Product Manager):* [Name/Date] + - *Sign-off (Quality Owner or Product Manager):* [Name] **Test Limitations** @@ -253,13 +340,14 @@ Example: "No bare-metal MultiArch cluster available" is a **test limitation** (Q - Performance testing limited to 100 VMs due to lab capacity - IPv6 testing constrained to single-stack due to dual-stack cluster unavailability -If there are no test limitations, remove the example items and state: "None — reviewed and confirmed that no test limitations apply for this release." --> +If there are no test limitations, replace the placeholder item below with "None — reviewed and +confirmed that no test limitations apply for this release." and keep its `*Sign-off:*` line. --> - **[Test Limitation 1]** - - *Sign-off:* [Name/Date — confirms awareness and acceptance of this limitation] + - *Sign-off:* [Name — confirms awareness and acceptance of this limitation] - **[Test Limitation 2]** - - *Sign-off:* [Name/Date — confirms awareness and acceptance of this limitation] + - *Sign-off:* [Name — confirms awareness and acceptance of this limitation] #### **2. Test Strategy** @@ -302,9 +390,14 @@ Example: Strategy says "Performance testing is applicable — we will measure mi - *Details:* [ Add details ] - [ ] **Usability Testing** — Validates user experience and accessibility requirements - - Does the feature require a UI? If so, ensure the UI aligns with the requirements (UI/UX consistency, accessibility) - - Does the feature expose CLI commands? If so, validate usability and that needed information is available (e.g., status conditions, clear output) - - Does the feature trigger backend operations that should be reported to the admin? If so, validate that the user receives clear feedback about the operation and its outcome (e.g., status conditions, events, or notifications indicating success or failure) + - *Details:* [ Add details ] - [ ] **Monitoring** — Does the feature require metrics and/or alerts? @@ -313,7 +406,7 @@ Example: Strategy says "Performance testing is applicable — we will measure mi **Integration & Compatibility** - [ ] **Compatibility Testing** — Ensures feature works across supported platforms, versions, and configurations - - Does the feature maintain backward compatibility with previous API versions and configurations? + - *Details:* [ Add details ] - [ ] **Upgrade Testing** — Validates upgrade paths from previous versions, data migration, and configuration preservation @@ -384,104 +477,148 @@ for this feature. **Note:** Only list tools that are **new** or **different** fr The following conditions must be met before testing can begin: + + - [ ] Requirements and design documents are **approved and merged** - [ ] Test environment can be **set up and configured** (see Section II.3 - Test Environment) -- [ ] [Add feature-specific entry criteria as needed] +- [ ] [Feature-specific entry criterion, or "None — the two criteria above cover this feature"] #### **5. Risks** - + **Timeline/Schedule** -- **Risk:** [Describe the specific scheduling or deadline risk that could delay testing] - - **Mitigation:** [Propose how to adjust scope, priorities, or resources to meet the timeline] - - *Estimated impact on schedule:* [Add estimated delay or schedule impact] - - *Sign-off:* [Name/Date — confirms awareness and acceptance of this risk] + + +- **Risk:** [Scheduling or deadline risk] + - **Mitigation:** [How scope, priorities, or resources adjust to meet the timeline] + - *Estimated impact on schedule:* [Delay or schedule impact] + - *Sign-off:* [Name — confirms awareness and acceptance of this risk] **Test Coverage** -- **Risk:** [Describe gaps in test coverage and which areas remain unverified] - - **Mitigation:** [Propose alternative testing strategies or acceptance of reduced coverage] - - *Areas with reduced coverage:* [List affected areas] - - *Sign-off:* [Name/Date — confirms awareness and acceptance of this risk] + + +- **Risk:** [Coverage gap and which areas remain unverified] + - **Mitigation:** [Alternative testing strategy, or the accepted reduced coverage] + - *Areas with reduced coverage:* [Affected areas] + - *Sign-off:* [Name — confirms awareness and acceptance of this risk] **Test Environment** -- **Risk:** [Describe hardware, software, or infrastructure constraints that limit testing] - - **Mitigation:** [Propose how to secure required resources or adapt the test plan] - - *Missing resources or infrastructure:* [List what is unavailable] - - *Sign-off:* [Name/Date — confirms awareness and acceptance of this risk] + + +- **Risk:** [Environment constraint that limits testing] + - **Mitigation:** [How the required resources are secured, or how the plan adapts] + - *Missing resources or infrastructure:* [What is unavailable] + - *Sign-off:* [Name — confirms awareness and acceptance of this risk] **Untestable Aspects** -- **Risk:** [Describe scenarios or conditions that cannot be reproduced in a test environment] - - **Mitigation:** [Propose alternative validation methods such as smaller-scale tests or production monitoring] - - *Alternative validation approach:* [Describe fallback validation method] - - *Sign-off:* [Name/Date — confirms awareness and acceptance of this risk] + + +- **Risk:** [Scenario or condition that cannot be reproduced in a test environment] + - **Mitigation:** [Alternative validation method] + - *Alternative validation approach:* [The fallback validation method] + - *Sign-off:* [Name — confirms awareness and acceptance of this risk] **Resource Constraints** -- **Risk:** [Describe staffing, skill, or capacity limitations affecting test execution] - - **Mitigation:** [Propose how to prioritize work, cross-train, or coordinate with other teams] - - *Current capacity gaps:* [Describe staffing or skill gaps] - - *Sign-off:* [Name/Date — confirms awareness and acceptance of this risk] + + +- **Risk:** [Staffing, skill, or capacity limitation affecting test execution] + - **Mitigation:** [How work is prioritized, cross-trained, or coordinated] + - *Current capacity gaps:* [Staffing or skill gaps] + - *Sign-off:* [Name — confirms awareness and acceptance of this risk] **Dependencies** -- **Risk:** [Describe external team or component dependencies that could block testing] - - **Mitigation:** [Propose coordination plans, fallback strategies, or stub implementations] - - *Dependent teams or components:* [List external dependencies] - - *Sign-off:* [Name/Date — confirms awareness and acceptance of this risk] + + +- **Risk:** [External team or component dependency that could block testing] + - **Mitigation:** [Coordination plan, fallback strategy, or stub implementation] + - *Dependent teams or components:* [External dependencies] + - *Sign-off:* [Name — confirms awareness and acceptance of this risk] **Other** -- **Risk:** [Describe any additional risks not covered by the categories above] - - **Mitigation:** [Propose a specific plan to reduce or eliminate this risk] - - *Sign-off:* [Name/Date — confirms awareness and acceptance of this risk] - + + +- **Risk:** [Risk not covered by the categories above, or "None — [why]"] + - **Mitigation:** [Specific plan to reduce or eliminate this risk] + - *Sign-off:* [Name — confirms awareness and acceptance of this risk] --- ### **III. Test Scenarios & Traceability** - +The entry shape is fixed — the requirement identifier in bold, then exactly two keys: +`Test Scenario` (tier inline as `[Tier N]`) and `Priority`. The identifier is the `[req-N]` that +Section I.1 assigns, so a scenario points at a requirement instead of repeating its wording; one +requirement may have several scenarios. The same inline tier is used in a child STP. - +Copy the entry below once per scenario. The bracketed text is replaced — except the labels that keep +their brackets: `[req-N]` keeps its brackets and takes the requirement number, `[Tier N]` keeps its +brackets and takes the tier number. `[scenario, with an observable pass criterion]` and `[P0/P1/P2]` +are replaced without brackets. -- **[Jira-123]** — As a user... +- **[req-1]** - *Test Scenario:* [Tier 1] Verify VM can be created with new feature X - *Priority:* P0 - -- **[Jira-124]** — As an admin... +- **[req-2]** - *Test Scenario:* [Tier 1] Verify API for feature X rejects invalid field values - *Priority:* P0 - -- **[Jira-125]** — As an admin user, I want to block non-admin users from deleting VMs +- **[req-2]** + - *Test Scenario:* [Tier 2] Verify a rejected request leaves the VM configuration unchanged + - *Priority:* P1 +- **[req-3]** - *Test Scenario:* [Tier 2] Verify non-admin user cannot delete a VM - *Priority:* P1 - -- **[Jira-126]** — As a cluster admin... - - *Test Scenario:* [Tier 2] Verify upgrade from version X to Y preserves feature state - - *Priority:* P2 - -- **[Jira-127]** — As a Windows VM user... +- **[req-4]** - *Test Scenario:* [Tier 3] Verify feature X works on Windows guest with NTFS filesystem - - *Priority:* P1 + - *Priority:* P1 --> + +- **[req-N]** + - *Test Scenario:* [Tier N] [scenario, with an observable pass criterion] + - *Priority:* [P0/P1/P2] ---