Repository navigation
fix(ci): fixture UI tests that inject native input fail the new-test soak instead of being soaked - #2227
Conversation
…soak instead of being soaked The soak now runs Tray UI tests as two subsets with their CI lanes' environments. Fixture UI tests get OPENCLAW_RUN_GATEWAY_FIXTURE_UI=1 and, through the new OPENCLAW_CI_SOAK_FIXTURE_NATIVE_INPUT step setting, the same native-input opt-in the fixture lanes give them with -NativeInputProof, set only for their test process. Other UI tests run without either, as in the UI lane. Native keyboard proof stays excluded. Co-authored-by: Copilot App <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR runs fixture UI tests and other UI tests in separate soak processes with their respective lane environments. Example: The soak selects DashboardsResponsiveLightWidthsRenderTheMeasuredPageHost.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses a source-confirmed soak environment mismatch that remains on reviewed main; no definite introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe CI soak runner receives selected test names, builds their projects, repeatedly launches filtered test processes, and turns their TRX results into a required CI outcome. flowchart TD
A[Changed test selection] --> B[Soak runner]
B --> C[Fixture UI process]
B --> D[Other UI process]
C --> E[TRX results]
D --> E
E --> F[CI Gate]
Technical reviewBest possible solution: Keep the existing soak owner and align its fixture child environment with the established fixture lane while preserving per-process authorization and isolation. Do we have a high-confidence way to reproduce the issue? The base workflow disables native input, while the selected dashboard test explicitly throws without that opt-in; the PR also reports a matching Windows negative control, but no target code was executed during this review. Is this the best way to solve the issue? The split uses the existing runner and matches the fixture lane's authorization boundary; separate reports, data directories, and environment restoration serve that change without introducing a parallel owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0467121e68d2. Provenance checked
SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 14, 2026, 4:39 AM ET / 09:39 UTC. |
The new check that an invalid OPENCLAW_CI_SOAK_FIXTURE_NATIVE_INPUT is rejected leaves the expected child-process failure in LASTEXITCODE, and CI's pwsh shell exits with it. Clear it after the check, end the script with exit 0, and have the workflow contract require that ending. Co-authored-by: Copilot App <[email protected]>
What Problem This Solves
Fixes: the new-test soak fails fixture UI tests that inject native input (for example
DashboardsResponsiveLightWidthsRenderTheMeasuredPageHost) with "An explicitly enabled owned native-input proof window is required." This happens even though the regular fixture lanes run them with native input enabled. It blocks pull requests that change those tests, such as #2222.User Impact
No product change. Pull requests that change fixture UI tests which inject native input now get those tests soaked, the same way the fixture lanes run them, instead of failing the soak.
Why This Change Was Made
The fixture lanes run
scripts/test-gateway-fixture.ps1 -NativeInputProof. That setsOPENCLAW_RUN_KEYBOARD_PROOF=1only for the fixture UI test process (Category=GatewayFixture&KeyboardProof!=Required), and the workflow contract forbids a step-wide opt-in. The soak ran every UI test with one step environment that had native input off, so tests that always inject native input failed closed.The soak now runs Tray UI tests as two subsets per run, each with its CI lane's environment:
Category=GatewayFixture):OPENCLAW_RUN_GATEWAY_FIXTURE_UI=1and native input. Native input comes from the new step settingOPENCLAW_CI_SOAK_FIXTURE_NATIVE_INPUT: '1'and is applied only to that test process. The step-wideOPENCLAW_RUN_KEYBOARD_PROOFstays'0'.Other details:
KeyboardProof=Required) stays excluded: the fixture lanes exclude it too, and the only CI step that runs it is the production-resources one, which the soak also excludes.The workflow contract pins the setting, keeps the step-wide opt-in off, and requires both fixture lanes to still pass
-NativeInputProof, so the two cannot drift apart.docs/TEST_COVERAGE.mdrecords the rationale.Note: a fixture-gated test without the
Category=GatewayFixturetrait (today the fourStartupWindowUiTeststests) now skips in the soak, as it does in the UI lane. Before this change, the soak's step-wideOPENCLAW_RUN_GATEWAY_FIXTURE_UI=1made those tests run. No regular lane runs them; adding the trait is a separate follow-up.Evidence
Native proof under the shared native-desktop lock, with the real app and the CI soak step environment, running
scripts/Invoke-CiTestSoak.ps1onGatewayFixtureUiTests.DashboardsResponsiveLightWidthsRenderTheMeasuredPageHost:ui run 1 of 1 under CPU contention (fixture-ui tests) failed, withSystem.InvalidOperationException: An explicitly enabled owned native-input proof window is required.atValidateDashboardWheelOptIn. This is fix(tests): Dashboards fixture tests fail when a control's UI Automation element is briefly missing after a re-render or resize #2222's failure.1): 10 of 10 runs passed, including runs 2, 5 and 8 under CPU burners (16–20 s each). The step used 4.1 of 40 minutes. The emptyuisubset ran once and was then skipped. No burner processes were left afterwards, and the real%APPDATA%/%LOCALAPPDATA%\OpenClawTraymanifests were unchanged.Change Type
Scope
winnodeRequired proof pools
none: CI workflow and the soak runner only. The native proof above covers the changed behavior; no product or capacity-dependent Windows proof is affected.Validation
Local, head b810c0d (validated at fd6fd503 on main bb9cc8a; rebased onto 0467121 with an identical patch), PowerShell 7, isolated
OPENCLAW_TRAY_*profile:scripts\test-ci-changed-tests.ps1scripts\test-ci-workflow-contract.ps1test-ci-gate-results.ps1,test-alpha-promotion.ps1,test-ci-change-classifier.ps1,validate-test-timing-patterns.ps1validate-docs.ps1,validate-agent-skills.ps1,test-agent-skills-validator.ps1,git diff --check./build.ps1dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restoredotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restoreReview: Hanselman dual review (claude-opus-5.5 high; gpt-6-astra long_context high). Both found no blockers. Fixed:
$nullleft an empty variable instead of removing it (both models).Both models confirmed the final head with no remaining findings.
Real Behavior Proof
OpenClaw.Tray.WinUI.exe, CI soak step environment.Invoke-CiTestSoak.ps1with a selection containingDashboardsResponsiveLightWidthsRenderTheMeasuredPageHost. Once withOPENCLAW_CI_SOAK_FIXTURE_NATIVE_INPUTunset (1 run), and once with1(10 runs, 3 contended).Security Impact
Yes, explain the risk and mitigation: N/ACompatibility and Migration
OPENCLAW_CI_SOAK_FIXTURE_NATIVE_INPUT(default0; CI sets1).Review Conversations