Skip to content

[CI Failure] Flaky: TerminalHostSignalTests.TerminalHostControlShutdownUnlinksSockets throws TaskCanceledException on Windows #21409

Done

Description

@github-actions

Build Information

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

Type: flaky-test

Observed tests

  • Aspire.Managed.Tests.TerminalHostSignalTests.TerminalHostControlShutdownUnlinksSockets — job 127730495564 (Tests / No-package tests (regular, Aspire.Managed.Tests, Managed, Managed, tests/Aspire.Managed.Tests/Asp... / Managed (windows-latest))
  • Aspire.Managed.Tests.TerminalHostSignalTests.TerminalHostControlShutdownUnlinksSockets — job 128099063309 (Tests / No-package tests (regular, Aspire.Managed.Tests, Managed, Managed, tests/Aspire.Managed.Tests/Asp... / Managed (windows-latest))

Occurrences

Showing 3 most recent of 3 occurrences.

Date Build Job Context
2026-10-29 40947925538 Tests / No-package tests (regular, Aspire.Managed.Tests, Managed, Managed, tests/Aspire.Managed.Tests/Asp... / Managed (windows-latest) main
2026-11-06 42168190867 Tests / No-package tests (regular, Aspire.Managed.Tests, Managed, Managed, tests/Aspire.Managed.Tests/Asp... / Managed (windows-latest) main
2026-11-06 42277617360 Tests / No-package tests (regular, Aspire.Managed.Tests, Managed, Managed, tests/Aspire.Managed.Tests/Asp... / Managed (windows-latest) main

Activity

  1. davidfowl commented on Oct 31, 2026

    @davidfowl
    Collaborator

    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.

    🤖 Posted by AspireAgent (AI Agent)

  2. added
    ci-test-failure
    on Nov 5, 2026
  3. added
    cif:p1
    cif:ready
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ci-failure-causeci-test-failurecifcif:p1cif:readytest-failure

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions