runtime
runtime copied to clipboard
Test failure: Microsoft.Extensions.Hosting.Internal.HostTests.HostLifetimeOnStartedCanBeCancelled
Failed in: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1052116&view=results
Failed tests:
net10.0-windows-Release-x64-fullpgo_methodprofiling-Windows.10.Amd64.Open
- Microsoft.Extensions.Hosting.Internal.HostTests.HostLifetimeOnStartedCanBeCancelled
Error message:
Assert.True() Failure
Expected: True
Actual: False
Stack trace:
at Microsoft.Extensions.Hosting.Internal.HostTests.HostLifetimeOnStartedCanBeCancelled() in /_/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/Internal/HostTests.cs:line 488
--- End of stack trace from previous location ---
Known Issue Error Message
Fill the error message using step by step known issues guidance.
{
"ErrorMessage": "Microsoft.Extensions.Hosting.Internal.HostTests.HostLifetimeOnStartedCanBeCancelled [FAIL]",
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
Known issue validation
Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1052116
Error message validated: [Microsoft.Extensions.Hosting.Internal.HostTests.HostLifetimeOnStartedCanBeCancelled [FAIL]]
Result validation: :white_check_mark: Known issue matched with the provided build.
Validation performed at: 5/28/2025 9:10:37 AM UTC
Report
| Build | Definition | Test | Pull Request |
|---|---|---|---|
| 1052116 | dotnet/runtime | Microsoft.Extensions.Hosting.Internal.HostTests.HostLifetimeOnStartedCanBeCancelled | dotnet/runtime#115977 |
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 0 | 0 | 1 |
Tagging subscribers to this area: @dotnet/area-extensions-hosting See info in area-owners.md if you want to be subscribed.
Test code hasn't changed since it was added 6 years ago: https://github.com/dotnet/runtime/blame/9e28706dbc252e27174dce1a3b8f69c8ecc912b7/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/Internal/HostTests.cs#L488
It is waiting for 5 seconds until lifetimeStart is signaled.
Assert.True(lifetimeStart.WaitOne(TimeSpan.FromSeconds(5)));
However that is done on a Task via Task.Run(() => host.StartAsync()); so that may not always be reliable.
Will wait to see if there are any other hits.
Possible PGO issue?
removing blocking-clean-ci as it has not failed in 30 days
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 0 | 0 | 0 |