Skip to content

refactor(qa): remove aggregate test facades - #124147

Merged
steipete merged 1 commit into
mainfrom
test/remove-qa-lab-test-facades
Aug 15, 2026
Merged

steipete merged 1 commit into
mainfrom
test/remove-qa-lab-test-facades

Conversation

@steipete

@steipete steipete commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Removes two QA Lab aggregate testing facades that mixed unrelated runtime owners, a dead Control UI predicate, and a duplicated Windows process-tree test left behind after lifecycle extraction.

The facades made private implementation helpers look like one supported API and kept otherwise-unused exports alive. The duplicate taskkill test replayed the same graceful-then-forced sequence already exercised through the command-lifecycle owner.

Why This Change Was Made

Tests now import from the modules that own each behavior. appendNodeOption and createQaSuiteScenarioStepRunner are private again. The unique live transport-preparation regression moved from a direct helper call to the exported runQaSuiteScenarioDefinition boundary, where it still proves preparation is first and failure prevents scenario execution.

The canonical Windows timeout lifecycle, trusted System32 resolution, and POSIX descendant cleanup tests remain.

User Impact

No user-visible behavior changes. QA Lab has fewer test-only exports and clearer runtime ownership while preserving suite execution, transport preparation, artifact writing, cleanup, and process-tree behavior.

Evidence

  • QA suite, runtime-flow, launcher, scenario runner, command lifecycle, and Windows system-tool owners: 6 files, 156 tests passed.
  • extensions and extensionTests changed gate passed through the documented trusted-source local fallback because no Crabbox/Testbox provider was ready; extension typechecks, formatting, lint, doctor-contract guards, dead-export scan, and import-cycle checks passed.
  • git diff --check passed.
  • Fresh complete-branch structured autoreview reported no accepted/actionable findings.
  • Exact-head CI passed: https://github.com/openclaw/openclaw/actions/runs/31879252677

Production delta: +5/-70, net -65. Tests: +210/-220, net -10. Total: +215/-290, net -75. No docs, config, schema, protocol, dependency, or changelog change.

@clawsweeper

clawsweeper Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 15, 2026 10:20
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 15, 2026
@clawsweeper

clawsweeper Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 6:25 AM ET / 10:25 UTC.

ClawSweeper review

What this changes

The PR removes QA Lab aggregate test facades, makes test-only helpers private again, and redirects regression coverage to the modules that own each behavior.

Merge readiness

✅ Ready for maintainer review

No blocking defect found. This is a coherent, net-negative QA Lab cleanup; it remains open for normal maintainer review because it carries the protected maintainer label and is maintainer-authored.

Priority: P3
Reviewed head: 319d95b43b3a58ef930febb557c4734c39671364

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, owner-aligned cleanup with retained boundary coverage and successful exact-head checks.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored internal refactor has no external-contributor real-behavior-proof requirement; exact-head QA and repository checks are supplied in the PR context.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored internal refactor has no external-contributor real-behavior-proof requirement; exact-head QA and repository checks are supplied in the PR context.
Evidence reviewed 6 items No remaining facade consumers: The removed aggregate names have no non-test consumer in the repository; the QA Lab package is private and has no package export map, while its supported internal barrel continues to export the actual suite entry points.
Runtime owner remains canonical: The runtime entry point continues to inject the exported scenario-definition boundary into the standard suite runner; the private step-wrapper remains called only from that boundary.
Boundary regression retained: The added runtime-flow test drives the exported scenario definition, proves transport preparation is first, and proves a preparation failure prevents the scenario step from running.
Findings None None.
Security None None.

How this fits together

QA Lab runs scenario suites through transport preparation, runtime execution, artifact writing, and process cleanup. The refactor narrows test access to those owner modules while leaving the public suite entry points unchanged.

flowchart LR
  Scenarios[QA suite scenarios] --> Planning[Suite planning]
  Planning --> Transport[Transport preparation]
  Transport --> Runtime[Scenario runtime]
  Runtime --> Artifacts[Artifact writing]
  Runtime --> Cleanup[Command lifecycle cleanup]
  Artifacts --> Results[QA evidence and results]
  Cleanup --> Results
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -65, Tests -10. Total -75 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 5 5 70 -65
Tests 4 210 220 -10
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 215 290 -75

Review metrics

Metric Value Why it matters
Production versus test delta production +5/-70 (net -65); tests +210/-220 (net -10) The change is net-negative in both production and test code while moving coverage to existing owners.

Technical review

Best possible solution:

Retain the direct owner imports and boundary-level regression while removing the obsolete aggregate test surfaces.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR removes test-only facades rather than fixing a reported product failure; source inspection confirms the retained runtime boundary and owner tests.

Is this the best way to solve the issue?

Yes: direct owner imports remove test-only aggregate APIs without changing the suite entry points, and the moved regression now exercises the exported scenario boundary.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against dec4d44618c3.

Labels

Label changes:

  • add P3: This is an internal QA Lab test-surface cleanup with no user-visible behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored internal refactor has no external-contributor real-behavior-proof requirement; exact-head QA and repository checks are supplied in the PR context.

Label justifications:

  • P3: This is an internal QA Lab test-surface cleanup with no user-visible behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored internal refactor has no external-contributor real-behavior-proof requirement; exact-head QA and repository checks are supplied in the PR context.

Evidence

What I checked:

  • No remaining facade consumers: The removed aggregate names have no non-test consumer in the repository; the QA Lab package is private and has no package export map, while its supported internal barrel continues to export the actual suite entry points. (extensions/qa-lab/api.ts:108, 319d95b43b3a)
  • Runtime owner remains canonical: The runtime entry point continues to inject the exported scenario-definition boundary into the standard suite runner; the private step-wrapper remains called only from that boundary. (extensions/qa-lab/src/suite-runtime-flow.ts:299, 319d95b43b3a)
  • Boundary regression retained: The added runtime-flow test drives the exported scenario definition, proves transport preparation is first, and proves a preparation failure prevents the scenario step from running. (extensions/qa-lab/src/suite-runtime-flow.test.ts:278, 319d95b43b3a)
  • Windows cleanup coverage retained at its owner: The dedicated command-lifecycle suite still exercises the graceful-then-forced Windows taskkill sequence, so deleting its duplicate runner-level test does not remove the behavior check. (extensions/qa-lab/src/test-file-scenario-command-lifecycle.test.ts:340, 319d95b43b3a)
  • Feature provenance: Blame attributes the aggregate facade and its helper exports on current-main commit 52adbf4; the PR removes those test-only exports after moving coverage to their owners. (extensions/qa-lab/src/suite-runtime-flow.ts:253, 52adbf4c60ca)
  • Exact-head validation: The supplied GitHub context reports all six QA Smoke profiles, extension/package checks, lint, type checks, dependency guard, and security checks successful for the PR head. (319d95b43b3a)

Likely related people:

  • steipete: Current-main blame assigns the QA Lab facade and affected owner modules to Peter Steinberger, and this PR continues that ownership cleanup. (role: feature owner and recent refactor author; confidence: high; commits: 52adbf4c60ca, 319d95b43b3a; files: extensions/qa-lab/src/suite.ts, extensions/qa-lab/src/suite-runtime-flow.ts, extensions/qa-lab/src/test-file-scenario-runner.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for 319d95b43b3a58ef930febb557c4734c39671364:

  • QA suite, runtime-flow, launcher, scenario runner, command lifecycle, and Windows system-tool owners: 6 files, 156 tests passed.
  • extensions and extensionTests changed gate passed through the documented trusted-source local fallback because no Crabbox/Testbox provider was ready; extension typechecks, formatting, lint, doctor-contract guards, Knip production/full-tree/script scans, and import-cycle checks passed.
  • git diff --check passed.
  • Fresh complete-branch structured autoreview reported no accepted/actionable findings.
  • Exact-head hosted CI passed: https://github.com/openclaw/openclaw/actions/runs/31879252677
  • Native OPENCLAW_TESTBOX=1 scripts/pr prepare-run 124147 passed, reusing hosted exact-head gates; no Testbox lease was required.
  • ClawSweeper has no findings and confirms the moved transport-preparation regression now exercises the exported owner: refactor(qa): remove aggregate test facades #124147 (comment)

Production delta: +5/-70, net -65. Tests: +210/-220, net -10. Total: +215/-290, net -75. No behavior, docs, config, schema, protocol, dependency, or changelog change.

@steipete
steipete merged commit c77ee5b into main Aug 15, 2026
189 checks passed
@steipete
steipete deleted the test/remove-qa-lab-test-facades branch August 15, 2026 10:28
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant