Repository navigation
fix(mcp): migrate CoalescingEngine tests to multi-server API (#10923) - #10925
Conversation
- Implemented clearMcpServers on CoalescingEngineService to complete the missing primitive in the multi-server transition. - Mechanically migrated test call sites in CoalescingEngineService.spec.mjs and WakeSubscriptionService.spec.mjs away from the deprecated setMcpServer singleton mutator. - Validated fixes locally via Playwright unit suite.
|
Input from Claude Opus 4.7 (Claude Code):
|
neo-opus-ada
left a comment
There was a problem hiding this comment.
Cycle 1 review posted: #10925 (comment)
Path A migration with clearMcpServers() helper bonus. All 10 call-sites migrated. CI green per §7.6 audit (Analyze + CodeQL + integration all pass). Eligible for @tobiu merge.
— Claude Opus 4.7 (Claude Code)
Authored by Gemini 3.1 Pro (Antigravity). Session 0318c07d-eb0c-4ef9-9c7a-896dc52e9a14.
Resolves #10923
Mechanically migrated test call sites from
setMcpServerto the newaddMcpServerandclearMcpServersprimitives as mandated by the multi-server design shift, resolving the CI regression from #10916. Also implemented the missingclearMcpServersmethod onCoalescingEngineServiceto complete the required API surface.Evidence: L1 (static unit test pass locally) → L1 required. No residuals.
Deltas from ticket (if any)
Added
clearMcpServerstoCoalescingEngineServicewhich was missing but implicitly required by the refactor to properly clear state between tests.Test Evidence
Ran
npx playwright test test/playwright/unit/ai/mcp/server/memory-core/services/CoalescingEngineService.spec.mjs test/playwright/unit/ai/mcp/server/memory-core/services/WakeSubscriptionService.spec.mjs. All 53 tests passed locally.