dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.08k stars 4.7k forks source link

Test failure: Microsoft.Win32.SystemEventsTests.UserPreferenceTests.SignalsUserPreferenceEventsAsynchronouslyOnThemeChanged #107894

Open BruceForstall opened 3 weeks ago

BruceForstall commented 3 weeks ago

Pipeline: runtime-coreclr libraries-pgo Job: net9.0-windows-Release-x86-fullpgo-Windows.10.Amd64.Open

https://dev.azure.com/dnceng-public/public/_build/results?buildId=808988&view=ms.vss-test-web.build-test-results-tab&runId=20927916&paneView=debug&resultId=102184

DOTNET_JitProfileCasts=1
DOTNET_ReadyToRun=0
DOTNET_TC_QuickJitForLoops=1
DOTNET_TieredCompilation=1
DOTNET_TieredPGO=1

C:\h\w\A43F090A\w\9C7A090D\e>call RunTests.cmd --runtime-path C:\h\w\A43F090A\p 
========================= Begin custom configuration settings ==============================
set __IsXUnitLogCheckerSupported=1
set XUNIT_HIDE_PASSING_OUTPUT_DIAGNOSTICS=1
========================== End custom configuration settings ===============================
----- start Sun 09/15/2024 17:09:06.38 ===============  To repro directly: =====================================================
pushd C:\h\w\A43F090A\w\9C7A090D\e\
"C:\h\w\A43F090A\p\dotnet.exe" exec --runtimeconfig Microsoft.Win32.SystemEvents.Tests.runtimeconfig.json --depsfile Microsoft.Win32.SystemEvents.Tests.deps.json xunit.console.dll Microsoft.Win32.SystemEvents.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing 
popd
===========================================================================================================

C:\h\w\A43F090A\w\9C7A090D\e>"C:\h\w\A43F090A\p\dotnet.exe" exec --runtimeconfig Microsoft.Win32.SystemEvents.Tests.runtimeconfig.json --depsfile Microsoft.Win32.SystemEvents.Tests.deps.json xunit.console.dll Microsoft.Win32.SystemEvents.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing  
  Discovering: Microsoft.Win32.SystemEvents.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  Microsoft.Win32.SystemEvents.Tests (found 26 of 28 test cases)
  Starting:    Microsoft.Win32.SystemEvents.Tests (parallel test collections = on [4 threads], stop on fail = off)
    Microsoft.Win32.SystemEventsTests.UserPreferenceTests.SignalsUserPreferenceEventsAsynchronouslyOnThemeChanged [FAIL]
      Assert.Equal() Failure: Values differ
      Expected: 2
      Actual:   3
      Stack Trace:
        /_/src/libraries/Microsoft.Win32.SystemEvents/tests/SystemEvents.UserPreference.cs(209,0): at Microsoft.Win32.SystemEventsTests.UserPreferenceTests.SignalsUserPreferenceEventsAsynchronouslyOnThemeChanged()
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs(36,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs(57,0): at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
  Finished:    Microsoft.Win32.SystemEvents.Tests
dotnet-policy-service[bot] commented 3 weeks ago

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch See info in area-owners.md if you want to be subscribed.

v-wenyuxu commented 2 weeks ago

Failed in: runtime-coreclr libraries-pgo 20240915.1

Failed tests:

net9.0-windows-Release-x86-fullpgo-Windows.10.Amd64.Open
    - Microsoft.Win32.SystemEventsTests.UserPreferenceTests.SignalsUserPreferenceEventsAsynchronouslyOnThemeChanged

Error message:

 Assert.Equal() Failure: Values differ
Expected: 2
Actual:   3

Stack trace:

   at Microsoft.Win32.SystemEventsTests.UserPreferenceTests.SignalsUserPreferenceEventsAsynchronouslyOnThemeChanged() in /_/src/libraries/Microsoft.Win32.SystemEvents/tests/SystemEvents.UserPreference.cs:line 209
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57