Skip to content

fix(mcp): propagate abort signal to stop test execution#40582

Open
mxschmitt wants to merge 1 commit intomicrosoft:mainfrom
mxschmitt:mxschmitt/fix-38937
Open

fix(mcp): propagate abort signal to stop test execution#40582
mxschmitt wants to merge 1 commit intomicrosoft:mainfrom
mxschmitt:mxschmitt/fix-38937

Conversation

@mxschmitt
Copy link
Copy Markdown
Contributor

Summary

  • Propagate AbortSignal from MCP SDK through TestServerBackend → tool handlers → TestContext
  • Serialize test operations via a promise queue to prevent race conditions when abort is followed by an immediate new run
  • On abort, call runner.stopTests() and run global teardown before releasing the queue

Fixes #38937

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: MCP test_run tool doesn't stop test execution when aborted

1 participant