Repository navigation
fix(qa): preserve required scenario isolation in serial suites - #119439
Conversation
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 11:21 PM ET / August 5, 2026, 03:21 UTC. ClawSweeper reviewWhat this changesThe branch makes serial QA suites use the canonical scenario-isolation predicate and adds six regression cases for omitted isolation triggers. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open: this remains a necessary, focused QA repair. Current main still uses an incomplete serial-worker predicate, while the branch reuses the existing canonical isolation rule and supplies exact-head runtime proof. Priority: P2 Review scores
Verification
How this fits togetherQA Lab runs scenario suites against Gateway workers and selects either a shared worker or isolated workers. That choice controls whether scenario-specific plugins, runtime options, and mutable state can leak into another scenario. flowchart TD
A[QA scenario catalog] --> B[Flow suite runner]
B --> C[Worker-selection decision]
C --> D[Canonical isolation rule]
D --> E[Shared or isolated Gateway workers]
E --> F[Scenario results and artifacts]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -2, Tests +39. Total +37 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land the canonical-predicate reuse with its serial regression matrix so every direct QA flow path honors the same worker-isolation contract. Do we have a high-confidence way to reproduce the issue? Yes—source reproducible: current main sends multi-scenario serial suites with several canonical isolation triggers to the standard shared-worker path. Is this the best way to solve the issue? Yes—the selector should reuse the canonical isolation predicate already used by the unified planner, avoiding a second policy that can drift. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a8caab5c3d3c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
* origin/main: fix(channels): honor explicit preview streaming settings refactor(telegram): consolidate outbound contracts and targets (#119438) fix(qa): retry transport cleanup and always stop owned labs (#119442) fix(mcp): guard stdio stdout frame parsing against oversized-buffer crash (#119379) refactor(auto-reply): centralize delivery deduplication and routing (#119436) fix(qa): preserve scenario isolation in serial suites (#119439) perf(xai): lazy-load optional capability runtimes (#119374) refactor(browser): consolidate browser CLI and normalization helpers (#119432) fix(qa): require ready transport accounts (#119431) refactor(media): share image and video geometry normalization (#119416) fix(config): preserve plugin metadata for missing config (#119421) fix: retry delivery when outbound adapter is unavailable (#119371) fix(cli): retire invalid secret flags and prove doctor recovery (#118926) refactor(signal): share outbound and reaction transport (#119415)
What Problem This Solves
Fixes an issue where QA scenarios that explicitly require their own worker could silently share a Gateway and scenario state whenever suites ran serially, with fail-fast, or with concurrency one.
Why This Change Was Made
The serial worker-selection owner now reuses the existing canonical scenario-isolation predicate instead of maintaining an incomplete second policy. Provider-mode isolation remains unchanged.
User Impact
Plugin lifecycle, gateway runtime, memory, image-generation, mutating-flow, and explicitly isolated QA scenarios retain their promised environment isolation even in serial suites.
Evidence
Inspectable exact-head runtime proof
Exact-head required CI passed: https://github.com/openclaw/openclaw/actions/runs/30970537417
The actual isolated-worker QA artifact is https://github.com/openclaw/openclaw/actions/runs/30970537417/artifacts/8916372622. Its primary/flow/isolated/qa-suite-summary.json proves the real plugin-lifecycle-hot-reload scenario was dispatched to its own isolated Gateway worker and passed:
{ "head": "cf246d5b053420cbfaf47ba8cdfb0cd676544bab", "artifactPath": "primary/flow/isolated/qa-suite-summary.json", "providerMode": "mock-openai", "channelDriver": "crabline", "scenarioIds": ["plugin-lifecycle-hot-reload"], "counts": {"total": 1, "passed": 1, "failed": 0, "skipped": 0} }The exact-head hosted runtime log also records:
The same artifact contains a separate six-scenario shared suite, proving the isolated plugin scenario did not share its Gateway worker with ordinary scenarios.