-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
PerformanceCounter tests failing in CI #44208
Comments
Apparently "Counter Names" may be String or Multistring? the code expects the latter. My guess is that here Lines 700 to 703 in c87e75e
It simply needs to use |
@Anipik owns S.D.PerformanceCounter. |
@steveisok hit the new assert:
|
This assert output is really weird. The assert I added is: Debug.Assert(counterNamesObject is string[], $"Expected string[], got '{counterNamesObject}' with kind '{categoryKey.GetValueKind("Counter Names")}'for category '{_categoryName}'"); So the above shows it failing an @jkotas, does this ring any bells? Could this be related to casting changes? Unless... maybe it actually is a String with the value "System.String[]"?! I'll update the assert. |
Well, that's our test Line 99 in 6072e4d
But it's just going through our API's. |
Oops, of course it's written by our test 😄 |
I tried finding this kind of issue first. I searched for "PerformanceCounters" and found 3 unrelated issues :-) |
Will take a look. Thanks! |
@stephentoub - did this start recently or was like this for months? |
To my knowledge, recently. |
Exception message should generally be correct about types. I think it is more likely that we are getting a string with The new assert in #44333 is a good idea - should help to verify this. |
Any new failures? Is there a way to check? |
I haven't seen any more but I'm also not at my computer to run a query right now. (I'm also wondering if this could possibly have been another effect of #44250? I haven't lined things up exactly, but the timing seems to correlate.) |
According to Kusto, this failed ~300 times on 11/2, ~100 times on 11/3, and then hasn't failed since. |
Likely another effect of #44250 |
Inconsistently but frequently, PRs in CI have been failing tests from the System.Diagnostics.Tests.PerformanceCounterTests suite. When one test fails, a ton fail. They all look along the lines of this:
e.g. https://dev.azure.com/dnceng/public/_build/results?buildId=874236&view=ms.vss-test-web.build-test-results-tab&runId=27965576&resultId=121120&paneView=debug
The text was updated successfully, but these errors were encountered: