Skip to content

Failure in DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler(maxOperationPerSecond) - Two events were recorded #114945

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
carlossanlop opened this issue Apr 23, 2025 · 2 comments
Assignees
Labels

Comments

@carlossanlop
Copy link
Contributor

carlossanlop commented Apr 23, 2025

The test fails with 1, 5 and 50 as argument value.

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1023492
Build error leg or test failing: System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler(maxOperationPerSecond)

Error Message

{
  "ErrorMessage" : "System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler(maxOperationPerSecond",
  "BuildRetry" : false,
  "ExcludeConsoleLog" : false
}
----- start Wed 04/23/2025  1:09:54.31 ===============  To repro directly: =====================================================
pushd C:\h\w\A04308EF\w\B0E208F3\e\
"C:\h\w\A04308EF\p\dotnet.exe" exec --runtimeconfig System.Diagnostics.DiagnosticSource.Tests.runtimeconfig.json --depsfile System.Diagnostics.DiagnosticSource.Tests.deps.json xunit.console.dll System.Diagnostics.DiagnosticSource.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing 
popd
===========================================================================================================

C:\h\w\A04308EF\w\B0E208F3\e>"C:\h\w\A04308EF\p\dotnet.exe" exec --runtimeconfig System.Diagnostics.DiagnosticSource.Tests.runtimeconfig.json --depsfile System.Diagnostics.DiagnosticSource.Tests.deps.json xunit.console.dll System.Diagnostics.DiagnosticSource.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing  
  Discovering: System.Diagnostics.DiagnosticSource.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Diagnostics.DiagnosticSource.Tests (found 260 of 295 test cases)
  Starting:    System.Diagnostics.DiagnosticSource.Tests (parallel test collections = on [4 threads], stop on fail = off)
Unhandled exception. Xunit.Sdk.TrueException: 2 events were recorded, while maxOpPerSecond is 1
   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 141
   at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 123
   at System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.<>c.<TestRateLimitingSampler>b__30_0(String maxOpPerSecond) in /_/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceEventSourceBridgeTests.cs:line 1481
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) in /_/src/coreclr/System.Private.CoreLib/src/System/RuntimeHandles.cs:line 1159
   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.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 174
--- End of stack trace from previous location ---
   at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args) in /_/src/Microsoft.DotNet.RemoteExecutor/src/Program.cs:line 97
    System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler(maxOperationPerSecond: 1) [FAIL]
      Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Remote process failed with an unhandled exception.
      Stack Trace:
        
        Child exception:
          Xunit.Sdk.TrueException: 2 events were recorded, while maxOpPerSecond is 1
        /_/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceEventSourceBridgeTests.cs(1481,0): at System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.<>c.<TestRateLimitingSampler>b__30_0(String maxOpPerSecond)
           at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
        /_/src/coreclr/System.Private.CoreLib/src/System/RuntimeHandles.cs(1159,0): 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(174,0): at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
        
        Child process:
          System.Diagnostics.DiagnosticSource.Tests, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests+<>c Void <TestRateLimitingSampler>b__30_0(System.String)
        
        Child arguments:
          1
        
Unhandled exception. Xunit.Sdk.TrueException: 2 events were recorded, while maxOpPerSecond is 5
   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 141
   at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 123
   at System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.<>c.<TestRateLimitingSampler>b__30_0(String maxOpPerSecond) in /_/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceEventSourceBridgeTests.cs:line 1481
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) in /_/src/coreclr/System.Private.CoreLib/src/System/RuntimeHandles.cs:line 1159
   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.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 174
--- End of stack trace from previous location ---
   at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args) in /_/src/Microsoft.DotNet.RemoteExecutor/src/Program.cs:line 97
    System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler(maxOperationPerSecond: 5) [FAIL]
      Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Remote process failed with an unhandled exception.
      Stack Trace:
        
        Child exception:
          Xunit.Sdk.TrueException: 2 events were recorded, while maxOpPerSecond is 5
        /_/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceEventSourceBridgeTests.cs(1481,0): at System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.<>c.<TestRateLimitingSampler>b__30_0(String maxOpPerSecond)
           at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
        /_/src/coreclr/System.Private.CoreLib/src/System/RuntimeHandles.cs(1159,0): 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(174,0): at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
        
        Child process:
          System.Diagnostics.DiagnosticSource.Tests, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests+<>c Void <TestRateLimitingSampler>b__30_0(System.String)
        
        Child arguments:
          5
        
Unhandled exception. Xunit.Sdk.TrueException: 2 events were recorded, while maxOpPerSecond is 50
   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 141
   at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 123
   at System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.<>c.<TestRateLimitingSampler>b__30_0(String maxOpPerSecond) in /_/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceEventSourceBridgeTests.cs:line 1481
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) in /_/src/coreclr/System.Private.CoreLib/src/System/RuntimeHandles.cs:line 1159
   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.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 174
--- End of stack trace from previous location ---
   at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args) in /_/src/Microsoft.DotNet.RemoteExecutor/src/Program.cs:line 97
    System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler(maxOperationPerSecond: 50) [FAIL]
      Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Remote process failed with an unhandled exception.
      Stack Trace:
        
        Child exception:
          Xunit.Sdk.TrueException: 2 events were recorded, while maxOpPerSecond is 50
        /_/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceEventSourceBridgeTests.cs(1481,0): at System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.<>c.<TestRateLimitingSampler>b__30_0(String maxOpPerSecond)
           at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
        /_/src/coreclr/System.Private.CoreLib/src/System/RuntimeHandles.cs(1159,0): 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(174,0): at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
        
        Child process:
          System.Diagnostics.DiagnosticSource.Tests, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests+<>c Void <TestRateLimitingSampler>b__30_0(System.String)
        
        Child arguments:
          50
        
Unhandled exception. Xunit.Sdk.TrueException: 2 events were recorded, while maxOpPerSecond is 100
   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 141
   at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 123
   at System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.<>c.<TestRateLimitingSampler>b__30_0(String maxOpPerSecond) in /_/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceEventSourceBridgeTests.cs:line 1481
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) in /_/src/coreclr/System.Private.CoreLib/src/System/RuntimeHandles.cs:line 1159
   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.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 174
--- End of stack trace from previous location ---
   at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args) in /_/src/Microsoft.DotNet.RemoteExecutor/src/Program.cs:line 97
    System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler(maxOperationPerSecond: 100) [FAIL]
      Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Remote process failed with an unhandled exception.
      Stack Trace:
        
        Child exception:
          Xunit.Sdk.TrueException: 2 events were recorded, while maxOpPerSecond is 100
        /_/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceEventSourceBridgeTests.cs(1481,0): at System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.<>c.<TestRateLimitingSampler>b__30_0(String maxOpPerSecond)
           at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
        /_/src/coreclr/System.Private.CoreLib/src/System/RuntimeHandles.cs(1159,0): 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(174,0): at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
        
        Child process:
          System.Diagnostics.DiagnosticSource.Tests, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests+<>c Void <TestRateLimitingSampler>b__30_0(System.String)
        
        Child arguments:
          100
        
  Finished:    System.Diagnostics.DiagnosticSource.Tests
=== TEST EXECUTION SUMMARY ===
   System.Diagnostics.DiagnosticSource.Tests  Total: 362, Errors: 0, Failed: 4, Skipped: 0, Time: 574.978s
----- end Wed 04/23/2025  1:19:43.88 ----- exit code 1 ----------------------------------------------------------

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1023492
Error message validated: [ System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler(maxOperationPerSecond]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 4/23/2025 3:38:15 AM UTC

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1023492
Error message validated: [System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler(maxOperationPerSecond]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 4/23/2025 3:40:05 AM UTC

Report

Build Definition Test Pull Request
1023295 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114928
1024489 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #113948
1024450 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114968
1024371 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114836
1024351 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114548
1024315 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114962
1024184 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114860
1024175 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114958
1024052 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114956
1023916 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114949
1023972 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114148
1023948 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114860
1023873 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114860
1023773 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114948
1023727 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114852
1023721 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114947
2693496 dotnet-runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler
1023646 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114881
1023629 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114944
1023492 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114938
1023408 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114890
1023290 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114899
1023354 dotnet/runtime System.Diagnostics.Tests.DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler #114895

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 23 23
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Apr 23, 2025
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-diagnostics-tracesource
See info in area-owners.md if you want to be subscribed.

@carlossanlop carlossanlop changed the title Failure in DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler(maxOperationPerSecond: 1) - Two events were recorded Failure in DiagnosticSourceEventSourceBridgeTests.TestRateLimitingSampler(maxOperationPerSecond) - Two events were recorded Apr 23, 2025
@tarekgh
Copy link
Member

tarekgh commented Apr 28, 2025

This should be fixed now, and it is a duplicate of #114946. Looks the failed PR were opened before the fix is submitted?

@tarekgh tarekgh closed this as completed Apr 28, 2025
@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Apr 28, 2025
@github-actions github-actions bot locked and limited conversation to collaborators May 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants