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
Test failure Microsoft.Extensions.Hosting.Tests.ConsoleLifetimeExitTests.EnsureEnvironmentExitDoesntHang #57908
The hosted process should have exited within 10 seconds
Expected: True
Actual: False
Stack trace
at Microsoft.Extensions.Hosting.Tests.ConsoleLifetimeExitTests.EnsureEnvironmentExitDoesntHang() in /_/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/ConsoleLifetimeExitTests.cs:line 133
It looks like both times this failed, it was on a "slow" coreclr. The first time it was during "jitstress" and this last time it was on a checked x86 coreclr.
Is there a way we can detect when running in these modes, and skip the test in those cases?
It's usually easier to just increase the timeout. At least if the test is only verifying there's no hang, and in normal circumstances will still complete quickly.
I've created a PR which increases the timeout up to 30s #59811 . If this happens again I'd expect either the configuration be horribly slow or an actual product issue
I'll close this issue for now since the timeout is increased. If we see another hit we should re-validate if the test should be changed/timeout increased further/this is an actual product issue
Activity
ViktorHofer commentedon Sep 30, 2021
Happened again in https://dev.azure.com/dnceng/public/_build/results?buildId=1394020&view=ms.vss-test-web.build-test-results-tab&runId=40523928&resultId=106752&paneView=debug.
eerhardt commentedon Sep 30, 2021
It looks like both times this failed, it was on a "slow" coreclr. The first time it was during "jitstress" and this last time it was on a checked x86 coreclr.
Is there a way we can detect when running in these modes, and skip the test in those cases?
danmoseley commentedon Sep 30, 2021
It's usually easier to just increase the timeout. At least if the test is only verifying there's no hang, and in normal circumstances will still complete quickly.
danmoseley commentedon Sep 30, 2021
We have tests eg that I eventually upped to 30s timeout that normally complete in 2s.
krwq commentedon Sep 30, 2021
I've created a PR which increases the timeout up to 30s #59811 . If this happens again I'd expect either the configuration be horribly slow or an actual product issue
krwq commentedon Sep 30, 2021
I'll close this issue for now since the timeout is increased. If we see another hit we should re-validate if the test should be changed/timeout increased further/this is an actual product issue