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
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.
Activity
Give RemoteHost tests thread-pool headroom above xunit's synchronous …
Give RemoteHost tests thread-pool headroom above xunit's synchronous …