You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The active test run was aborted. Reason: Test host process crashed
Data collector 'Blame' message: The specified inactivity time of 7 minutes has elapsed. Collecting hang dumps from testhost and its child processes.
Test Run Aborted.
Total tests: Unknown
Passed: 189
Skipped: 3
Total time: 7.6249 Minutes
Results File: /home/runner/work/csharp-sdk/csharp-sdk/testresults/_fv-az[221](https://github.com/modelcontextprotocol/csharp-sdk/actions/runs/14150315138/job/39642597376?pr=142#step:10:222)0-804_2025-03-29_23_16_37.trx
The active Test Run was aborted because the host process exited unexpectedly. Please inspect the call stack above, if available, to get more information about where the exception originated from.
The test running when the crash occurred:
ModelContextProtocol.Tests.Transport.StdioServerTransportTests.Constructor_Should_Initialize_With_Valid_Parameters
This test may, or may not be the source of the crash.
I think there's good reason to believe StdioServerTransportTests.Constructor_Should_Initialize_With_Valid_Parameters is the source of the hang considering Constructor_Should_Initialize_With_Valid_Parameters is the only in-proc test that tries to read from the real stdin and then cancel the read gracefully. I'm pretty sure we're cancelling the ReadLineAsync operation correctly, so we might have to look into the Unix ConsolePal.
The text was updated successfully, but these errors were encountered:
halter73
changed the title
Flaky test: Disposing StdioServerTransport can hang asynchronously when reading from stdin
Flaky test: StdioServerTransport.DisposeAsync() can hang on (ubuntu-latest, Release)
Mar 30, 2025
eiriktsarpalis
changed the title
Flaky test: StdioServerTransport.DisposeAsync() can hang on (ubuntu-latest, Release)
Flaky test: StdioServerTransport.DisposeAsync() can hang
Mar 31, 2025
https://github.com/modelcontextprotocol/csharp-sdk/actions/runs/14150315138/job/39642597376?pr=142
I think there's good reason to believe StdioServerTransportTests.Constructor_Should_Initialize_With_Valid_Parameters is the source of the hang considering Constructor_Should_Initialize_With_Valid_Parameters is the only in-proc test that tries to read from the real stdin and then cancel the read gracefully. I'm pretty sure we're cancelling the ReadLineAsync operation correctly, so we might have to look into the Unix ConsolePal.
The text was updated successfully, but these errors were encountered: