Skip to content

Test failure Microsoft.Extensions.Hosting.Tests.ConsoleLifetimeExitTests.EnsureEnvironmentExitDoesntHang #57908

Closed

Description

@VincentBu

Run: runtime-coreclr libraries-jitstress 20210821.1

Failed test:

net6.0-windows-Release-x86-CoreCLR_checked-zapdisable-Windows.10.Amd64.Open

- Microsoft.Extensions.Hosting.Tests.ConsoleLifetimeExitTests.EnsureEnvironmentExitDoesntHang

Error message:

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

Runfo Tracking Issue: ensureenvironmentexitdoesnthang

Build Definition Kind Run Name Console Core Dump Test Results Run Client
1394020 runtime Rolling net7.0-windows-Release-x86-CoreCLR_checked-Windows.10.Amd64.Open console.log runclient.py

Build Result Summary

Day Hit Count Week Hit Count Month Hit Count
1 1 1

Activity

  1. ghost added
    untriaged
    on Aug 23, 2021
  2. added this to the Future milestone on Sep 2, 2021
  3. removed
    untriaged
    on Sep 2, 2021
  4. added
    blocking-clean-ci
    on Sep 30, 2021
  5. eerhardt commented on Sep 30, 2021

    @eerhardt
    Member

    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?

  6. danmoseley commented on Sep 30, 2021

    @danmoseley
    Contributor

    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.

  7. danmoseley commented on Sep 30, 2021

    @danmoseley
    Contributor

    We have tests eg that I eventually upped to 30s timeout that normally complete in 2s.

  8. krwq commented on Sep 30, 2021

    @krwq
    Member

    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

  9. krwq commented on Sep 30, 2021

    @krwq
    Member

    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

  10. ghost locked as resolved and limited conversation to collaborators on Nov 3, 2021
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

    arch-x86area-Extensions-Hostingblocking-clean-cios-windows

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions