Skip to content

Long running test: System.Diagnostics.Tests.InstanceDataTests.InstanceDataCollectionCollection_CopyTo #33372

Closed

Description

@ViktorHofer

https://dev.azure.com/dnceng/public/_build/results?buildId=551597&view=ms.vss-test-web.build-test-results-tab&runId=17416796&resultId=180795&paneView=attachments

Configurations:

  • netcoreapp5.0-Windows_NT-Release-x86-CoreCLR_release-Windows.10.Amd64.Server19H1.ES.Open
  • netcoreapp5.0-Windows_NT-Debug-x64-CoreCLR_release-Windows.10.Amd64.Server19H1.ES.Open
  Discovering: System.Diagnostics.PerformanceCounter.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Diagnostics.PerformanceCounter.Tests (found 89 of 91 test cases)
  Starting:    System.Diagnostics.PerformanceCounter.Tests (parallel test collections = on, max threads = 2)
   System.Diagnostics.PerformanceCounter.Tests: [Long Running Test] 'System.Diagnostics.Tests.InstanceDataTests.InstanceDataCollectionCollection_CopyTo', Elapsed: 00:02:00

4808.1n2wfgek.bux.dmp: https://helix.dot.net/api/2019-06-17/jobs/ddf1dfcc-a4c5-4f13-9f9a-c49d9ca60a55/workitems/System.Diagnostics.PerformanceCounter.Tests/files/4808.1n2wfgek.bux.dmp

console.8477c80a.log: https://helix.dot.net/api/2019-06-17/jobs/ddf1dfcc-a4c5-4f13-9f9a-c49d9ca60a55/workitems/System.Diagnostics.PerformanceCounter.Tests/files/console.8477c80a.log

@tarekgh @Anipik can you please take a look?

Activity

  1. added
    untriaged
    on Mar 9, 2020
  2. Anipik commented on Mar 9, 2020

    @Anipik
    Contributor

    i can take a look at it today.

  3. tarekgh commented on Mar 9, 2020

    @tarekgh
    Member

    @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

  4. danmoseley commented on Mar 9, 2020

    @danmoseley
    Contributor

    Dupe of #33291 I think?

  5. danmoseley commented on Mar 9, 2020

    @danmoseley
    Contributor

    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.

  6. tarekgh commented on Mar 9, 2020

    @tarekgh
    Member

    @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.

  7. danmoseley commented on Mar 9, 2020

    @danmoseley
    Contributor

    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.

  8. ghost locked as resolved and limited conversation to collaborators on Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Diagnostics.PerformanceCounteruntriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions