Repository navigation
fix: keep SQLite worker tests on fork hosts - #146991
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 13, 2026, 10:44 AM ET / 14:44 UTC (Revision 4). ClawSweeper reviewWhat this changesRoutes SQLite-consuming tests through forked processes and adjusts focused selection, watch discovery, and CI allocation while retaining channel-session contract coverage. Merge readiness✅ Ready for maintainer review The latest commit resolves the previously reported channel-contract coverage blocker. The routing change remains useful and is not implemented on the inspected main; no remaining actionable patch defect was found. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s test wrapper and CI planner translate file selections into Vitest projects. Those projects choose the process environment needed by tests that use the host-owned SQLite broker. flowchart TD
A[Developer test selection] --> C[Test routing]
B[CI test inventory] --> C
C --> D[SQLite consumer selection]
D --> E[Infra fork project]
C --> F[Channel-session and E2E fork projects]
C --> G[Other existing test projects]
E --> H[Test execution and results]
F --> H
G --> H
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +493, Other +8. Total +501 across 27 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep SQLite consumers with fork-capable test owners while preserving public contract commands, focused selection, and dynamic watch discovery. Do we have a high-confidence way to reproduce the issue? Yes at the source boundary: SQLite store admission rejects worker-thread callers, while affected test owners use threads. No failing current-main test was executed in this read-only review. Is this the best way to solve the issue? Yes. Reusing the infra fork owner and retaining session-binding in its existing contract project addresses the host requirement without changing production storage behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0a6ead71d14e. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
Move 24 existing core consumers to the infra fork owner and keep E2E tests in fork hosts. Preserve test inventories, worker limits, focused routing, and supported watch discovery independently of the pending database production cutovers.
797eb3f to
f93e206
Compare
|
Merged via squash.
|
* fix: keep SQLite worker tests on fork hosts Move 24 existing core consumers to the infra fork owner and keep E2E tests in fork hosts. Preserve test inventories, worker limits, focused routing, and supported watch discovery independently of the pending database production cutovers. * test: align remaining SQLite worker routing assertions * fix: retain channel contract coverage on fork hosts
Related: #146557, #146547, #147028.
What Problem This Solves
The async plugin-state cutover needs existing SQLite consumers to run in host processes. Their current routing includes thread hosts, and the reusable routing changes were coupled to unrelated transcript work.
User Impact
No OpenClaw runtime behavior changes. Developers retain the same test inventory, worker limits, focused selections, and watch discovery, including files added while watching.
Why This Change Was Made
Moves 23 existing core consumers to the existing infra fork owner and removes their former memberships. Session-binding stays with its existing 13-file channel-session contract project, which now uses forks; E2E tests also use fork hosts. Existing setup, runners, and worker limits remain unchanged.
Focused and watch routing reuse existing owners, including whole-config selections and inherited include filters. Keeping session-binding with the contract owner preserves the public channel-contract command and dedicated CI coverage without cross-suite expansion. This PR contains no KV or transcript production changes and no unlanded consumer tests.
Evidence
f93e206efailed an unrelated hooks CLI process-exit assertion; it was not replayed or weakened locally. The new published head must pass the normal exact-head CI and native gates before landing.