Repository navigation
test(wizard): run inference recovery with shared-state broker - #148353
Conversation
|
🦞👀 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. Reviewed September 14, 2026, 12:21 PM ET / 16:21 UTC. ClawSweeper reviewWhat this changesRoutes the wizard inference-recovery integration test through the existing forked database test project so it can reach its rollback assertions. Merge readiness✅ Ready for maintainer review The patch is correct and still useful: current main lacks the routing entry, and the existing test requires a fork-hosted SQLite broker. No actionable findings. Maintainer authorship and the protected label also preclude automatic closure. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s test router selects the execution environment for integration tests. Tests that use shared SQLite state need a forked process where the host-owned broker can run. flowchart LR
A[Recovery integration test] --> B[Shared database test list]
B --> C[Forked infra project]
B --> D[Excluded from wizard project]
C --> E[Host SQLite broker]
E --> F[Recovery and rollback assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +1. Total +1 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep broker-dependent recovery coverage under the canonical forked test owner while preserving production admission checks and rollback assertions. Do we have a high-confidence way to reproduce the issue? Yes, from source: the pending-install recovery case reaches shared-state admission from the default threaded wizard project, which the main-thread guard rejects. Execution was not repeated in this read-only review. Is this the best way to solve the issue? Yes. Adding the test to the existing shared list updates both inclusion and exclusion through one owner without duplicating routing logic or weakening the tested behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 50090f5df4e9. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
Fixes a CI regression where the wizard inference-recovery integration test ran without the host-owned SQLite broker and failed before reaching its intended rollback assertion.
Why This Change Was Made
Routes the existing integration test through the canonical forked
infraVitest project. The production admission guard, test assertions, broker behavior, and timeouts remain unchanged.User Impact
No user-visible runtime change. CI now exercises wizard recovery through the shared-state owner that the production path requires.
Evidence
src/wizard/setup.inference-recovery.integration.test.tsfailed thepending=true, superseded=falsecase withShared-state admission requires the host broker; 7 tests passed and 1 failed.infraproject with 8 tests passed, including the expectedpromotion refusedpath and unchanged pending-record/rollback assertions.src/plugins/install-record-commit.test.tssrc/plugins/install-record-commit.sqlite.test.tssrc/infra/sqlite-worker-shared-state.test.tstest/scripts/test-projects.test.tstest/vitest-scoped-config.test.tspnpm check:changedgit diff --check