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 merged baseservices/threading time out in gcstress #83961
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.
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:
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.
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
Activity
JulieLeeMSFT commentedon Mar 30, 2023
Assigned to @markples.
JulieLeeMSFT commentedon Mar 30, 2023
Failing gcstress-extra pipeline as well: https://dev.azure.com/dnceng-public/public/_build?definitionId=113
markples commentedon Mar 31, 2023
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.
trylek commentedon Mar 31, 2023
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
markples commentedon Mar 31, 2023
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.
Address timeouts in merged test groups (#84193)
markples commentedon Apr 3, 2023
Fixed #84193
JulieLeeMSFT commentedon Apr 7, 2023
@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:
markples commentedon Apr 7, 2023
enabledisable isn't in baseservices/threading. This failure is #83359