Repository navigation
test(gateway): expect published embedding cache retirement - #198153
Conversation
Align the Memory shutdown regression with #195369: a successful full publication now retires its redundant embedding-cache row. Preserve the accepted-sync, published-text, executor-reuse and lease-release checks. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
|
🦞👀 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. What this changesUpdates the Gateway shutdown test to expect zero redundant embedding-cache rows after successful publication. Example: The accepted memory sync publishes memory/shutdown.md before Gateway shutdown completes.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR correctly updates a stale test expectation to match intentional cache retirement while preserving the shutdown guarantees; no blocking findings remain. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Gateway shutdown test runs the Memory Core manager with synthetic embeddings, then inspects persisted chunks and leases after shutdown. flowchart LR
A[Gateway shutdown test] --> B[Memory Core sync]
B --> C[Published memory index]
C --> D[Duplicate cache retirement]
D --> E[Shutdown completion]
E --> F[Chunk and lease assertions]
Technical reviewBest possible solution: Land the focused expectation correction without changing production cache retirement or weakening the shutdown assertions. Do we have a high-confidence way to reproduce the issue? The baseline CI annotation shows the exact assertion failure, and current-main source retains the incompatible expectation; no local tests were run during this read-only review. Is this the best way to solve the issue? This is the smallest complete repair: update the existing assertion to the published-cache contract while preserving independent persistence and shutdown checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c8be02055001. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +1. Total +1 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 13, 2026, 2:14 AM ET / 07:14 UTC. |
|
Merged via squash.
|
…198153) Align the Memory shutdown regression with openclaw#195369: a successful full publication now retires its redundant embedding-cache row. Preserve the accepted-sync, published-text, executor-reuse and lease-release checks. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
What Problem This Solves
checks-node-compact-large-35fails on main (run https://github.com/openclaw/openclaw/actions/runs/43371984780, job 131710078165):src/gateway/server-close.memory.test.ts(case "settles accepted Memory sync before closing its existing executor") still expects one cached embedding after shutdown. Since #195369 (3ea0883077), a successful publication retires the redundant cache copy of an indexed vector, so the cache count is now 0.User Impact
None at runtime; test-only.
Why This Change Was Made
The cache count is 0 because #195369 made that the intended behavior; nothing regressed. The test now expects 0 and explains why. Its shutdown-ordering, published-chunk and empty-live-index assertions are unchanged, so it still proves the accepted sync settled before close.
Evidence
Worked on by
Work sessions
Linked for team reference; these sessions aren’t public.