dotnet / dotnet/runtime

Test failure:System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_InstanceExists_Static

Open
#119,979 1 comment 0 reactions 0 assignees View on GitHub
arch-x64 area-System.Diagnostics.PerformanceCounter blocking-clean-ci-optional JitStress os-windows
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

**Failed in:** [runtime-coreclr libraries-jitstress 20250922.1](https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1154683)

**Failed tests:**
```
net10.0-windows-Release-x64-jitstress2_tiered-Windows.10.Amd64.Open
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_InstanceExists_Static
```

**Error message:**
```
Expected: 0 to be greater than 0 PerformanceCounterCategory.GetInstanceNames() returned 0.
```

**Stack trace:**
```
at System.AssertExtensions.GreaterThan[T](T actual, T greaterThan, String userMessage) in /_/src/libraries/Common/tests/TestUtilities/System/AssertExtensions.cs:line 335
at System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_InstanceExists_Static() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterCategoryTests.cs:line 279
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) in /_/src/coreclr/System.Private.CoreLib/src/System/RuntimeHandles.cs:line 1165
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs:line 107
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.