You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test failure System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_InstanceExists_Static #83317
at System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_InstanceExists_Static() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterCategoryTests.cs:line 274
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs:line 59
System.AggregateException : One or more errors occurred. (Specified argument was out of the range of valid values. (Parameter 'length')) (Specified argument was out of the range of valid values. (Parameter 'length')) (Specified argument was out of the range of valid values. (Parameter 'length')) (Specified argument was out of the range of valid values. (Parameter 'length')) (Specified argument was out of the range of valid values. (Parameter 'length')) (Specified argument was out of the range of valid values. (Parameter 'length')) (Specified argument was out of the range of valid values. (Parameter 'length')) (Specified argument was out of the range of valid values. (Parameter 'length')) (Specified argument was out of the range of valid values. (Parameter 'length')) (Specified argument was out of the range of valid values. (Parameter 'length'))
---- System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values. (Parameter 'length')
---- System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values. (Parameter 'length')
---- System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values. (Parameter 'length')
---- System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values. (Parameter 'length')
---- System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values. (Parameter 'length')
---- System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values. (Parameter 'length')
---- System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values. (Parameter 'length')
---- System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values. (Parameter 'length')
---- System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values. (Parameter 'length')
---- System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values. (Parameter 'length')
The history of src/libraries/System.Diagnostics.PerformanceCounterdoes not show any changes in April. So I suspect it's the same error (the array length was not larger than zero, it was zero, so it's technically out of the range of valid values... it is an unhelpful message in both cases).
The failure happens in Win11, mostly in arm64 but also in x64. There are only PR hits, no rolling build hits.
While I investigate the potential root cause, I'm going to change it to AssertExtensions.GreaterThan and will add a meaningful message argument.
The code tries to get the "Processor" performance counter category from the registry and then tries to get the list of all the elements under this category. The test seems to be failing very rarely to get such list. May be some configuration problem in the computer. The test even has several retries.
I'll modify the test so we get a more meaningful error message that we can attach to KnownBuildError properly.
Also wanted to mention that I've seen a few cases in related areas that need the process to be elevated in arm64 for the feature to work. Something we could consider.
Activity
carlossanlop commentedon Jul 27, 2023
The test is checking if
PerformanceCounterCategory.GetInstanceNames()returns a number greater than zero. If not, the assert fails.The test has been failing in this assert since at least 04/25 (unsure if Kusto is deleting results older than that):
Results (expand)
In 04/25 the message was:
And then it started showing up like this:
The history of
src/libraries/System.Diagnostics.PerformanceCounterdoes not show any changes in April. So I suspect it's the same error (the array length was not larger than zero, it was zero, so it's technically out of the range of valid values... it is an unhelpful message in both cases).The failure happens in Win11, mostly in arm64 but also in x64. There are only PR hits, no rolling build hits.
While I investigate the potential root cause, I'm going to change it to
AssertExtensions.GreaterThanand will add a meaningful message argument.carlossanlop commentedon Jul 27, 2023
The code tries to get the "Processor" performance counter category from the registry and then tries to get the list of all the elements under this category. The test seems to be failing very rarely to get such list. May be some configuration problem in the computer. The test even has several retries.
I'll modify the test so we get a more meaningful error message that we can attach to KnownBuildError properly.
carlossanlop commentedon Jul 27, 2023
Also wanted to mention that I've seen a few cases in related areas that need the process to be elevated in arm64 for the feature to work. Something we could consider.
[ci-scan] Skip DnsGetHostAddresses_LocalhostSubdomainWithTrailingDot …
[ci-scan] Skip DnsGetHostAddresses_LocalhostSubdomainWithTrailingDot …