Skip to content

[Failing test]: Aspire.Hosting.RemoteHost.Tests.IntegrationHostLauncherTests.InitializeHostsAsync_WaitsForEveryRegistrationBeforeDiscovery #21612

Closed

Description

Aspire.Hosting.RemoteHost.Tests.IntegrationHostLauncherTests.InitializeHostsAsync_WaitsForEveryRegistrationBeforeDiscovery fails intermittently on windows-latest with:

System.TimeoutException : The operation has timed out.
  at ...IntegrationHostLauncherTests.InitializeHostsAsync_WaitsForEveryRegistrationBeforeDiscovery() in IntegrationHostLauncherTests.cs:line 124

7-day frequency (main ci.yml, attempt 1): 3 failures out of 57 Hosting.RemoteHost windows-latest jobs, and 0 out of 57 on ubuntu-latest. The failing jobs are 122368418345, 122578764141 and 122961611924.

Evidence from the TRX files:

  • The test is the only one in the project that is slow, and only on Windows:
    • Failing runs took 11.5s, 11.5s and 11.7s against the 10s WaitAsync budget.
    • Passing Windows runs on main still take 6.8s and 4.2s (job 124578890918, Oct 31).
    • The same test takes 0.06s on Linux CI and 0.1s locally.
  • On Windows it always runs about 0.3s after the test process starts, alongside CPU-heavy sync tests (ExportApi_*, AtsCapabilityScannerTests.ScanAssembly_HostingAssembly_*).
  • The other InitializeHostsAsync_* tests in the class finish in 0.0–0.2s. The difference is that this is the only one that performs a real getCapabilities round trip.

I'm investigating where the multi-second stall comes from and will link a fix PR here. Tracked under #21600.

🤖 Posted by AspireAgent (AI Agent)

Activity

  1. added
    area-engineering-systems
    on Oct 31, 2026
  2. added a commit that references this issue on Nov 1, 2026
    9ea245a
  3. locked and limited conversation to collaborators on Dec 2, 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

    area-engineering-systemsfailing-test

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions