Repository navigation
refactor(qa): remove aggregate test facades - #124147
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 6:25 AM ET / 10:25 UTC. ClawSweeper reviewWhat this changesThe 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 Priority: P3 Review scores
Verification
How this fits togetherQA 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
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -65, Tests -10. Total -75 across 9 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for
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. |
|
Merged via squash.
|
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
taskkilltest 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.
appendNodeOptionandcreateQaSuiteScenarioStepRunnerare private again. The unique live transport-preparation regression moved from a direct helper call to the exportedrunQaSuiteScenarioDefinitionboundary, 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
extensionsandextensionTestschanged 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 --checkpassed.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.