Skip to content

Test merged baseservices/threading time out in gcstress #83961

Closed

Description

@jakobbotsch

All recent gcstress runs have timeouts in the "threading" groups. For example:
https://dev.azure.com/dnceng-public/public/_build/results?buildId=217737&view=results

Likely these tests should be striped in the same manner as HardwareIntrinsics. cc @trylek

Activity

  1. ghost added
    area-Infrastructure-coreclr
    on Mar 27, 2023
  2. ghost added
    untriaged
    on Mar 27, 2023
  3. added this to the 8.0.0 milestone on Mar 27, 2023
  4. ghost removed
    untriaged
    on Mar 27, 2023
  5. JulieLeeMSFT commented on Mar 30, 2023

    @JulieLeeMSFT
    Member

    Assigned to @markples.

  6. added
    blocking-clean-ci-optional
    on Mar 30, 2023
  7. markples commented on Mar 31, 2023

    @markples
    Contributor

    This does not appear to be a need for test striping, though it might get there when all tests are running.

    baseservices\threading\regressions\30032\30032.cs behaves differently under merged groups, and I'm not sure why - even when it is the first test in the list. Every time I've managed to break in with a debugger, it's sitting in WaitForPendingFinalizers (which the test calls), but the debugger is also having a lot of trouble doing anything when this test is running so I don't have a lot of information yet.

    I will check if RequiresProcessIsolation in a merged group is sufficient to at least unblock things.

  8. trylek commented on Mar 31, 2023

    @trylek
    Member

    I recall that last year in my work on test merging I was hitting GC stress issues in tests that were somehow explicitly tampering with finalization. The working theory at that time was that this is possibly a bug in the GC stress implementation itself in the sense that by injecting the various extra GC calls into execution we can end up with a form of starvation where the finalization queue is getting filled in faster than it's pumped, causing exactly the type of hang you've described. IIRC the consensus at that time was to mark such tests as requiring out-of-proc execution because this behavior doesn't constitute an obvious product bug (in view of the fact that GC stress testing creates an artificial environment for the test) and is possibly hard to fix. I think this is one of the issue threads where we discussed this behavior:

    #68529

  9. markples commented on Mar 31, 2023

    @markples
    Contributor

    This may be more widespread. @BruceForstall proactively ran gcstress after JIT\Regression and more groups failed. Regression_1 and _2 both have some tests with WaitForPendingFinalizers in it, so I'm starting by marking them RequiresProcessIsolation. Regression_4 does not, but it did run for 2 hours (of the 4) before getting stuck on a test. The tests seem to slow down over time - I don't know if that's intrinsic to the tests or if GCStress degrades over time. I will try striping there.

  10. markples commented on Apr 3, 2023

    @markples
    Contributor

    Fixed #84193

  11. JulieLeeMSFT commented on Apr 7, 2023

    @JulieLeeMSFT
    Member

    @markples, PTAL. There is still timeout in gcstress0x3-gcstress0xc pipeline

    Test: https://dev.azure.com/dnceng-public/public/_build/results?buildId=225615&view=ms.vss-test-web.build-test-results-tab&runId=4240042&resultId=122588&paneView=debug

    tracing/eventpipe/enabledisable/enabledisable/enabledisable.sh

    cmdLine:/root/helix/work/workitem/e/tracing/eventpipe/enabledisable/enabledisable/enabledisable.sh Timed Out (timeout in milliseconds: 3600000 from variable __TestTimeout, start: 4/2/2023 4:19:28 PM, end: 4/2/2023 5:19:28 PM)

    Return code: -100
    Raw output file: /root/helix/work/workitem/uploads/Reports/tracing.eventpipe/enabledisable/enabledisable/enabledisable.output.txt
    Raw output:
    BEGIN EXECUTION
    /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false enabledisable.dll ''

    cmdLine:/root/helix/work/workitem/e/tracing/eventpipe/enabledisable/enabledisable/enabledisable.sh Timed Out (timeout in milliseconds: 3600000 from variable __TestTimeout, start: 4/2/2023 4:19:28 PM, end: 4/2/2023 5:19:28 PM)
    Printing stacktrace from '/home/helixbot/dotnetbuild/dumps/crashdump_4621.dmp.crashreport.json'
    Test Harness Exitcode is : -100
    To run the test:

    set CORE_ROOT=/root/helix/work/correlation
    /root/helix/work/workitem/e/tracing/eventpipe/enabledisable/enabledisable/enabledisable.sh
    Expected: True
    Actual: False

  12. markples commented on Apr 7, 2023

    @markples
    Contributor

    enabledisable isn't in baseservices/threading. This failure is #83359

  13. ghost locked as resolved and limited conversation to collaborators on May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-Infrastructure-coreclrblocking-clean-ci-optional

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions