Skip to content

unreliable test: prepareRepoData Performance Tests #6457

@Hweinstock

Description

@Hweinstock

Test Details

  • Name of test: prepareRepoData Performance Tests
  • OS of failure: Linux (Integ)
  • VSCode version of failure (minimum/insider/stable): stable
  • Link to failing run:e54d549
  • Link to failing test:
    describe('prepareRepoData', function () {
    describe('Performance Tests', function () {
    afterEach(function () {
    sinon.restore()
    })
    performanceTestWrapper(10, 1000)
    performanceTestWrapper(50, 500)
    performanceTestWrapper(100, 100)
    performanceTestWrapper(250, 10)
    })
    })

Log of Test Failure

AssertionError [ERR_ASSERTION]: Expected total user CPU usage for handles 10 files of size 1000 bytes to be less than 200. Actual user CPU usage was 240.89446059590207
    at assertPerformanceMetrics (/codebuild/output/src3874270705/src/github.com/aws/aws-toolkit-vscode/packages/core/src/shared/performance/performance.ts:182:11)
    at Context.<anonymous> (/codebuild/output/src3874270705/src/github.com/aws/aws-toolkit-vscode/packages/core/src/shared/performance/performance.ts:160:13)
    at Context.fn (/codebuild/output/src3874270705/src/github.com/aws/aws-toolkit-vscode/packages/core/src/test/setupUtil.ts:34:24)
    at processImmediate (node:internal/timers:483:21)
    at process.topLevelDomainCallback (node:domain:161:15)
    at process.callbackTrampoline (node:internal/async_hooks:128:24)

      + expected - actual

      -false
      +true
      ```

## Additional Information

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions