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
{{ message }}
Repository navigation
[CI Failure] Flaky: TerminalHostSignalTests.TerminalHostControlShutdownUnlinksSockets throws TaskCanceledException on Windows #21409
Build: https://github.com/microsoft/aspire/actions/runs/40947925538
Build error leg or test failing: Tests / No-package tests (regular, Aspire.Managed.Tests, Managed, Managed, tests/Aspire.Managed.Tests/Asp... / Managed (windows-latest) / Aspire.Managed.Tests.TerminalHostSignalTests.TerminalHostControlShutdownUnlinksSockets
Error Message
System.Threading.Tasks.TaskCanceledException : A task was canceled.
at Aspire.Managed.Tests.TerminalHostSignalTests.TerminalHostControlShutdownUnlinksSockets() line 118
Description
Flaky: TerminalHostSignalTests.TerminalHostControlShutdownUnlinksSockets throws TaskCanceledException on Windows
Triage: this looks like the same root cause as #20902, which open PR #21433 fixes.
The failing run (job 123709175071) took 11.8s and was canceled at line 118, process.WaitForExitAsync().WaitAsync(shutdownTimeout.Token). So RequestShutdownAsync returned, but the terminal host never exited within 10s.
#21433 explains why. RequestShutdownAsync disposes the JsonRpc, stream and socket right after NotifyAsync, before the background pipe copy has written shutdown to the socket. The host then only sees EOF. #21433 waits for rpc.Completion, and its body mentions this test, which usually passes only because it makes the first, cold call.
Not starting separate work here. If this recurs after #21433 merges, it needs a fresh look.
Activity
davidfowl commentedon Oct 31, 2026
Triage: this looks like the same root cause as #20902, which open PR #21433 fixes.
The failing run (job 123709175071) took 11.8s and was canceled at line 118,
process.WaitForExitAsync().WaitAsync(shutdownTimeout.Token). SoRequestShutdownAsyncreturned, but the terminal host never exited within 10s.#21433 explains why.
RequestShutdownAsyncdisposes theJsonRpc, stream and socket right afterNotifyAsync, before the background pipe copy has writtenshutdownto the socket. The host then only sees EOF. #21433 waits forrpc.Completion, and its body mentions this test, which usually passes only because it makes the first, cold call.Not starting separate work here. If this recurs after #21433 merges, it needs a fresh look.
🤖 Posted by AspireAgent (AI Agent)