Skip to content

System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_IncrementBy_IncrementBy2 failed on release/6.0 #73019

Closed as not planned

Description

@jozkee

https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-73004-merge-0bd05363f5734fda96/System.Diagnostics.PerformanceCounter.Tests/1/console.f36b7a1e.log?helixlogtype=result

C:\h\w\AF870A37\w\9E1F08E2\e>call RunTests.cmd --runtime-path C:\h\w\AF870A37\p 
----- start 28/07/2022 16:18:21,50 ===============  To repro directly: ===================================================== 
pushd C:\h\w\AF870A37\w\9E1F08E2\e\
"C:\h\w\AF870A37\p\dotnet.exe" exec --runtimeconfig System.Diagnostics.PerformanceCounter.Tests.runtimeconfig.json --depsfile System.Diagnostics.PerformanceCounter.Tests.deps.json xunit.console.dll System.Diagnostics.PerformanceCounter.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing 
popd
===========================================================================================================

C:\h\w\AF870A37\w\9E1F08E2\e>"C:\h\w\AF870A37\p\dotnet.exe" exec --runtimeconfig System.Diagnostics.PerformanceCounter.Tests.runtimeconfig.json --depsfile System.Diagnostics.PerformanceCounter.Tests.deps.json xunit.console.dll System.Diagnostics.PerformanceCounter.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing  
  Discovering: System.Diagnostics.PerformanceCounter.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Diagnostics.PerformanceCounter.Tests (found 91 of 92 test cases)
  Starting:    System.Diagnostics.PerformanceCounter.Tests (parallel test collections = on, max threads = 2)

Informaci�n: Los contadores de rendimiento se instalaron correctamente en C:\h\w\AF870A37\t\hsp41u0t.stv\provider.man.    System.Diagnostics.Tests.PerformanceDataTests.PerformanceCounter_PerformanceData [SKIP]
      Condition(s) not met: "IsRunnableEnvironnement"

Informaci�n: Desinstalaci�n correcta de los contadores de rendimiento del archivo XML de definici�n de contadores C:\h\w\AF870A37\t\hsp41u0t.stv\provider.man.    System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_IncrementBy_IncrementBy2 [FAIL]
      System.InvalidOperationException : Cannot load Counter Name data because an invalid index '' was read from the registry. Performance counters on the machine may need to be repaired.
      Stack Trace:
        /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterLib.cs(1140,0): at System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp)
        /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterLib.cs(260,0): at System.Diagnostics.PerformanceCounterLib.get_NameTable()
        /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterLib.cs(193,0): at System.Diagnostics.PerformanceCounterLib.get_CategoryTable()
        /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterLib.cs(320,0): at System.Diagnostics.PerformanceCounterLib.CategoryExists(String category)
        /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterLib.cs(309,0): at System.Diagnostics.PerformanceCounterLib.CategoryExists(String machine, String category)
        /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs(435,0): at System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName, String machineName)
        /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs(415,0): at System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName)
        /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs(47,0): at System.Diagnostics.Tests.Helpers.DeleteCategory(String name)
        /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs(25,0): at System.Diagnostics.Tests.Helpers.CreateCategory(String name, PerformanceCounterCategoryType categoryType)
        /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterTests.cs(320,0): at System.Diagnostics.Tests.PerformanceCounterTests.CreateCounterWithCategory(String name, Boolean readOnly, PerformanceCounterCategoryType categoryType)
        /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterTests.cs(216,0): at System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_IncrementBy_IncrementBy2()
  Finished:    System.Diagnostics.PerformanceCounter.Tests
=== TEST EXECUTION SUMMARY ===
   System.Diagnostics.PerformanceCounter.Tests  Total: 95, Errors: 0, Failed: 1, Skipped: 1, Time: 45,013s
----- end 28/07/2022 16:19:07,24 ----- exit code 1 ----------------------------------------------------------

Activity

  1. ghost added
    untriaged
    on Jul 28, 2022
  2. added this to the 6.0.x milestone on Aug 10, 2022
  3. ghost removed
    untriaged
    on Aug 10, 2022
  4. jozkee commented on Mar 13, 2026

    @jozkee
    MemberAuthor

    6.0 is out of support, if this happens again, should be tracked in a new issue.

  5. locked and limited conversation to collaborators on Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions