Repository navigation
fix(ci): measure memory search responsiveness independently - #150098
Conversation
Keep the existing 1000 ms search and writer-release timer guard independent of asynchronous maintenance completion. Await the original sync before all eventual state assertions and preserve error propagation and cleanup.
|
🦞👀 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 16, 2026, 10:07 AM ET / 14:07 UTC. ClawSweeper reviewWhat this changesThe PR measures memory-search and timer responsiveness separately from maintenance completion while retaining maintenance errors and final database assertions. Merge readiness✅ Ready for maintainer review Keep open: this is a focused, still-useful correction to the test’s measurement boundary, with no actionable correctness findings. Priority: P3 Review scores
Verification
How this fits togetherMemory Core indexes workspace files and session content for agent searches. This regression test checks that SQLite write contention leaves searches and timers responsive while maintenance eventually updates the index. flowchart TD
A[Indexed memory] --> B[Concurrent search]
C[SQLite writer lock] --> D[Memory maintenance]
E[Writer release timer] --> C
B --> F[Responsiveness assertion]
E --> F
D --> G[Final database assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +4. Total +4 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep responsiveness bounded independently while requiring maintenance to finish successfully before asserting its database effects. Do we have a high-confidence way to reproduce the issue? Yes, source establishes that current main includes complete maintenance in the responsiveness interval. The reported timing overrun was not independently reproduced, and its runtime cause remains unknown. Is this the best way to solve the issue? Yes, separating completion checks matches the test’s stated contract while preserving rejection propagation, cleanup, scenario order, and database assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a13fb9b6889b. 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.
|
…nclaw#150098) Keep the existing 1000 ms search and writer-release timer guard independent of asynchronous maintenance completion. Await the original sync before all eventual state assertions and preserve error propagation and cleanup.
Related: #149158
What Problem This Solves
The contended memory-maintenance test can fail its responsiveness check after a search and timer have completed because it also times the entire asynchronous maintenance operation.
User Impact
No user-visible behavior changes. This corrects the CI test's measurement while retaining its search results, timer deadline, maintenance error propagation, and eventual database assertions.
Why This Change Was Made
Wait for the search and the existing 100 ms writer-release timer before checking the unchanged 1000 ms responsiveness limit. Then await maintenance before checking the resulting index and cleanup state. The existing five scenarios and their order remain unchanged.
Evidence
The remote test's whole-case durations do not establish an isolated response latency or a speedup. Normal PR CI will validate the published head.