Skip to content

Failure in RunThreadLocalTest5_Dispose #57102

@danmoseley

Description

@danmoseley

https://dev.azure.com/dnceng/public/_build/results?buildId=1271572&view=ms.vss-test-web.build-test-results-tab&runId=37617006&resultId=187161&paneView=debug
net6.0-Linux-Debug-x64-Mono_release-(Fedora.34.Amd64.Open)[email protected]/dotnet-buildtools/prereqs:fedora-34-helix-20210728124700-4f64125

Not much to go on. Suggestion: assert the return value here is true. Then next failure we will know whether it timed out (suggesting possibly it needs to wait more than 60 sec) or something else.

https://github.com/danmoseley/runtimelab/blob/3483068cf9a7adb7a24e9d2b6b21679ae5d2b2ff/src/libraries/System.Threading/tests/ThreadLocalTests.cs#L131-L139

            SpinWait.SpinUntil(() =>
            {
                GC.Collect();
                GC.WaitForPendingFinalizers();
                GC.Collect();
                return mres.IsSet;
            }, ThreadTestHelpers.UnexpectedTimeoutMilliseconds);


            Assert.True(mres.IsSet);

Assert.True() Failure
Expected: True
Actual:   False


Stack trace
   at System.Threading.Tests.ThreadLocalTests.RunThreadLocalTest5_Dispose() in /_/src/libraries/System.Threading/tests/ThreadLocalTests.cs:line 139
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in /_/src/mono/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs:line 370

Runfo Tracking Issue: System.Threading.Tests.ThreadLocalTests.RunThreadLocalTest5_Dispose

Build Definition Kind Run Name Console Core Dump Test Results Run Client
1444163 runtime Rolling net7.0-Linux-Release-x64-Mono_release-RedHat.7.Amd64.Open console.log runclient.py
1432003 runtime PR 60682 net6.0-Linux-Debug-x64-Mono_release-SLES.15.Amd64.Open console.log runclient.py
1427196 runtime PR 60553 net7.0-OSX-Debug-x64-Mono_release-OSX.1015.Amd64.Open console.log runclient.py
1410737 runtime PR 60200 net7.0-OSX-Debug-x64-Mono_release-OSX.1015.Amd64.Open console.log runclient.py

Build Result Summary

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions