Repository navigation
Conversation
[Low impact] The test corrections appear safe to merge. SummaryUpdates two cleanup tests to observe
Tests were not run during this review. Whether another PR supersedes this one could not be checked because GitHub access required authentication. Reviews (1) · Last reviewed commit: "test(mcp): observe cleanup failures at t..." · Reviewed by Greptile |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Thank you! Closing as already landed on |
Summary
Refs #11693. Fix two cleanup regressions that still observe the old
toCallToolResultdelivery path. Current value-handler failures are delivered throughtoPartialErrorToolResult, whose first argument is the originalAnalysisError.Change and scope
Move the two test spies to the current error-delivery owner and inspect its typed error directly. Assert initial incomplete cleanup and keep the original checks for exact file-descriptor retention, EBADF after release, blocked reuse, cleanup state updating on the original error, same-connection close retries, Kuna staging cleanup, and unchanged target bytes.
This is a test correction within the existing contribution scope. Production code, tools, schemas, provider authority, and package metadata are unchanged. No separate maintainer scope decision is needed.
Evidence and regression coverage
On main at ab16163, the process test passes its public MCP cleanup/partial-observation assertions before the obsolete spy returns undefined. The Kuna test likewise cannot find the typed close failure through the obsolete spy.
Both tests now pass without removing their cleanup or recovery checks. This addresses these two cases in #11693; the other reported failures require separate work.
Validation performed
Linux/WSL, Node 24.22.1, npm 11.16.0, locked dependencies:
npm run test:focused -- tests/process-global/processSnapshotCleanupMcp.test.ts tests/boundary/mcp/kunaCloseRetryMcp.test.ts— 2 files, 2 tests passed; required artifacts build passed.npm run check:fast— typecheck, lint, module/numeric-limit checks, and architecture guards passed.git diff --check— passed.Kuna uses the existing recording producer, not a real Kuna engine. Native Windows/macOS and the complete repository suite were not run. No production performance claim is made.
Author readiness
Human owner: @g1at