Centralize test timeout constants to fix sporadic CI failures#1210
Centralize test timeout constants to fix sporadic CI failures#1210stephentoub merged 4 commits intomainfrom
Conversation
Co-authored-by: ericstj <[email protected]>
|
I'm aiming to rerun the validation build on this a few times to be sure it's worth doing. If any of those still see the same timeout then we likely have a race-condition or hang. |
|
Didn't hit the test wait timeout, but we did see a hang or crash repro on linux. The logged information is tough to decode
I'll see if I can find anything from the dump. I'm considering extending the |
|
So the results are interleaved - the dump in the results is from a My manual run of the tests is also hitting this. https://github.com/modelcontextprotocol/csharp-sdk/actions/runs/21497010662/job/61934307575 |
|
Both this dump, and the dump I looked at this morning have the following test executing while the hang occurs: I might just see about disabling this test to see if that resolves things. |
|
Confirmed that my manual run's dump has the exact same test hanging. |
|
Failure is #1199 |
Tests were timing out sporadically in CI with hardcoded 5-10 second
WaitAsynctimeouts insufficient for overloaded machines.Changes
TestTimeouts.DefaultTimeout(60s) intests/Common/Utils/TestTimeouts.csusing ModelContextProtocol.Tests.Utils;where neededExample change:
Files updated:
McpServerTaskMethodsTests.cs(2),AutomaticInputRequiredStatusTests.cs(4),McpServerTests.cs(4)TaskCancellationIntegrationTests.cs(6),McpClientTaskSamplingElicitationTests.cs(8)UrlElicitationTests.cs(1),ServerConformanceTests.cs(1),SseIntegrationTests.cs(1)StreamableHttpClientConformanceTests.cs(1),MapMcpStreamableHttpTests.cs(1)Not modified:
StreamClientSessionTransport.csproduction timeout left unchanged.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.