Open kouvel opened 3 weeks ago
Tagging subscribers to this area: @dotnet/area-system-diagnostics-performancecounter See info in area-owners.md if you want to be subscribed.
Singe instance of a failure, looks to me like test failed to missing counter installation:
Info: Successfully installed performance counters in C:\h\w\A4A0097E\t\pv4sxcea.r50\provider.man System.Diagnostics.Tests.PerformanceDataTests.PerformanceCounter_PerformanceData [SKIP]
Condition(s) not met: "IsRunnableEnvironment"
Info: Successfully uninstalled the performance counters from the counter definition XML file C:\h\w\A4A0097E\t\pv4sxcea.r50\provider.man. System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_Increment [FAIL]
System.AggregateException : One or more errors occurred. (Category 'PerformanceCounter_Increment_Category' does not exist.) (Category 'PerformanceCounter_Increment_Category' does not exist.) (Category 'PerformanceCounter_Increment_Category' does not exist.) (Category 'PerformanceCounter_Increment_Category' does not exist.) (Category 'PerformanceCounter_Increment_Category' does not exist.) (Category 'PerformanceCounter_Increment_Category' does not exist.) (Category 'PerformanceCounter_Increment_Category' does not exist.) (Category 'PerformanceCounter_Increment_Category' does not exist.) (Category 'PerformanceCounter_Increment_Category' does not exist.) (Category 'PerformanceCounter_Increment_Category' does not exist.)
---- System.InvalidOperationException : Category 'PerformanceCounter_Increment_Category' does not exist.
It looks to me like Xunit disposed the counters before running the test. It shouldn't, if I understand how text fixtures work: https://github.com/dotnet/runtime/blob/66ae90f3b7ec4f13fffcd71913eca0b45777e58c/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceDataTests.cs#L203-L253
Leaving this open to see about hit count. If we see more of this we should investigate why the PerformanceDataTestsFixture is disposed before finishing tests.
Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=731587 Build error leg or test failing: System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_Increment Pull request: https://github.com/dotnet/runtime/pull/103984
Error Message
Fill the error message using step by step known issues guidance.
Error output
Known issue validation
Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=731587 Error message validated:
[System.InvalidOperationException : Category 'PerformanceCounter_Increment_Category' does not exist.
] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 7/8/2024 8:03:26 PM UTCReport
Summary