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
Long running test: System.Diagnostics.Tests.InstanceDataTests.InstanceDataCollectionCollection_CopyTo #33372
@ViktorHofer does this test consistently timeout? or it just fails sporadically?
I am seeing the test is written in a way with trying many times (10 times for each PerformanceCounter creation) which looks in some circumstances can timeout I guess because of that considering many other tests runs there too.
If we've done all we can with retries, maybe we should disable the perf counter tests with [NotForCi]. We would have to manually run them for various OS periodically. Not ideal, but it's very unlikely we'll regress the code since we don't change it.
@danmosemsft I believe adding [NotForCi] is reasonable.
one note here, the time out is not mainly from InstanceDataCollectionCollection_CopyTo but looks from PerformanceCounter_PerformanceData(). I guess we can try adding NotForCi to PerformanceCounter_PerformanceData() and watch if this would be enough.
My theory is that there is nothing special about hte tests and somehow the OS gets too busy to return from the calls we make into it. This was apparently hte case in the linked issue.
Activity
Anipik commentedon Mar 9, 2020
i can take a look at it today.
tarekgh commentedon Mar 9, 2020
@ViktorHofer does this test consistently timeout? or it just fails sporadically?
I am seeing the test is written in a way with trying many times (10 times for each PerformanceCounter creation) which looks in some circumstances can timeout I guess because of that considering many other tests runs there too.
https://github.com/tarekgh/runtime/blob/6c7c41b9a508d1f7b9fe2de6816e2a35aeabd496/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceDataTests.cs#L57
danmoseley commentedon Mar 9, 2020
Dupe of #33291 I think?
danmoseley commentedon Mar 9, 2020
If we've done all we can with retries, maybe we should disable the perf counter tests with
[NotForCi]. We would have to manually run them for various OS periodically. Not ideal, but it's very unlikely we'll regress the code since we don't change it.tarekgh commentedon Mar 9, 2020
@danmosemsft I believe adding [NotForCi] is reasonable.
one note here, the time out is not mainly from InstanceDataCollectionCollection_CopyTo but looks from PerformanceCounter_PerformanceData(). I guess we can try adding NotForCi to PerformanceCounter_PerformanceData() and watch if this would be enough.
danmoseley commentedon Mar 9, 2020
My theory is that there is nothing special about hte tests and somehow the OS gets too busy to return from the calls we make into it. This was apparently hte case in the linked issue.