Repository navigation
test(tasks): close sqlite borrowers before registry reload - #156131
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 22, 2026, 11:58 PM ET / September 23, 2026, 03:58 UTC (Revision 2). ClawSweeper reviewWhat this changesThe task operations test now waits for SQLite workers to close before resetting or reloading the task registry. Merge readiness✅ Ready for maintainer review The focused cleanup remains useful on current main. The prior timing-evidence request is resolved, and this review found no blocking defects. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw's task registry stores background-task status in SQLite for CLI and chat operations. This integration test reloads persisted tasks and checks notifications, auditing, and maintenance. flowchart TD
A[Task operations test] --> B[CLI and chat operations]
B --> C[Task registry and SQLite]
C --> D[Await worker cleanup]
D --> E[Reset registry memory]
E --> F[Reload persisted tasks]
F --> G[Check task behavior]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +6. Total +6 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep test reloads ordered through the existing asynchronous SQLite lifecycle owner while preserving the persisted-task assertions. Do we have a high-confidence way to reproduce the issue? Yes, source identifies the fixture failure path: registry reset closes a store while worker borrowers can remain active. Tests were not executed during this read-only review. Is this the best way to solve the issue? Yes. Awaiting the existing database cleanup owner before reset is a narrow repair that preserves the integration test's behavior checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 85b8d7747892. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Re-review progress:
|
* commit '3ab93b4ea59804b34d02a696382db16dc95189bb': (80 commits) fix(gateway): keep session refreshes moving during unrelated writes (openclaw#156286) chore(deps): update fs-safe to 0.18.2 (openclaw#156262) refactor(plugins): extract ClawHub plugin archives once (openclaw#156246) improve(llm-core): avoid unnecessary tool validation sets (openclaw#152066) fix(backup): verification accepts archives missing captured databases (openclaw#156211) fix: cancel Guest work when its original access is revoked (openclaw#156106) fix(test): classify drained legacy migration refusals fix(anthropic): finish Opus 5.5 defaults and thinking display (openclaw#156093) refactor(agents): share native harness tool execution (openclaw#154217) fix(ui): carry typed ownership through short-route resolution test(worktrees): accept additive gc result fields (openclaw#156127) test(tasks): close sqlite borrowers before registry reload (openclaw#156131) chore(autoreview): sync Astra high defaults (openclaw#156175) refactor(node-host): await prepared workspace storage (openclaw#149519) improve: speed up cold Node test planning (openclaw#156234) fix(doctor): avoid slow legacy ownership repair in source checkouts (openclaw#156238) improve: speed up native build artifact validation (openclaw#156219) fix(ui): preserve short-route resolution ownership fix(doctor): name retained session metadata conflicts (openclaw#156162) perf(tasks): bound creation selection to matching runs (openclaw#156183) ...
Summary
Validation
pnpm test src/tasks/task-operations.e2e.test.ts --maxWorkers=1pnpm check:changedCloses the task-operations borrower cleanup failure cluster from maturity scorecard run 35794246666.
Test cost