Repository navigation
fix(memory): prevent index test plugin discovery timeout - #118641
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 7:27 AM ET / 11:27 UTC. ClawSweeper reviewWhat this changesThe PR wraps the memory-index test configuration with the shared isolation helper so mocked index tests avoid unnecessary runtime plugin discovery. Merge readiness✅ Ready for maintainer review The PR is still necessary: current Priority: P2 Review scores
Verification
How this fits togetherMemory Core’s index tests build a configuration that flows through memory-search and embedding-provider resolution before exercising SQLite/vector indexing. The shared test helper disables implicit plugin discovery for mocked manager tests while preserving an explicitly configured plugin enablement value. flowchart LR
A[Memory index test] --> B[Test configuration]
B --> C[Isolation helper]
C --> D[Mock embedding providers]
D --> E[Memory index manager]
E --> F[SQLite and vector assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +1. Total +1 across 1 file. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Merge the small test-only repair after the remaining required checks complete; retain the shared helper as the canonical boundary for mocked memory-manager configurations. Do we have a high-confidence way to reproduce the issue? Yes. The PR provides an exact focused command with before/after timings, and current source confirms the affected configuration is the remaining mocked manager setup not passed through the existing isolation helper; this read-only review did not execute tests. Is this the best way to solve the issue? Yes. Reusing the existing helper is the narrowest maintainable fix because it matches sibling manager tests and preserves any explicit plugin enablement needed by a test. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 629bf6f2d317. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready at
|
|
Merged via squash.
|
Closes #118640
What Problem This Solves
Fixes an issue where maintainers running the memory-core index unit suite would hit a 240-second focused-test timeout because the suite loaded the full runtime plugin registry even though it supplies mocked embedding providers.
Why This Change Was Made
The suite's
createCfg()now uses the existingisolateMemoryManagerTestConfig()boundary already used by sibling manager tests. That keeps mocked manager tests out of cold plugin discovery while preserving any explicitly configured plugin enablement.User Impact
There is no production runtime behavior change. Focused memory-index proof completes in normal unit-test time, and the full memory suite no longer pays minutes of unrelated plugin-loading work for this file.
AI-assisted: yes. The root cause, diff, and proof were reviewed directly.
Evidence
db7c48478f80c7c492e351c939883ac058173562:node scripts/test-projects.mjs extensions/memory-core/src/memory/index.test.ts -- -t 'does not prepare vector deletes'tbx_01kz3myagvh0d8dypcyp56nq46: run 30808306622git diff --checkand targeted oxfmt check passed.No external live-product boundary applies to this test-isolation change; the exact focused failure and full hosted memory workflow are the relevant behavior proof.