◐ Shell
clean mode source ↗

Widen the stdio round-trip test's termination grace and overall timeout by maxisbey · Pull Request #2880 · modelcontextprotocol/python-sdk

The test patches PROCESS_TERMINATION_TIMEOUT so the spawned server can
unwind, save its subprocess coverage data, and print the clean-exit line
before the kill escalation. One heavily starved Windows CI runner stalled
the child past the previous 10s grace, so it was killed before printing and
the stderr assertion failed with empty output. The post-stdin-close tail is
normally well under a second even on loaded Windows runners, so double the
grace to 20s (and the outer fail_after to 30s); the grace wait returns as
soon as the child exits, so passing runs are unaffected.

@maxisbey marked this pull request as ready for review

June 15, 2026 17:05

felixweinberger

@maxisbey maxisbey deleted the maxisbey/stdio-roundtrip-teardown-grace branch

June 15, 2026 17:23