Skip to content

Flaky test: timeouts on windows #23321

@rachelruderman

Description

@rachelruderman

Link to dashboard or CircleCI failure

https://app.circleci.com/pipelines/github/cypress-io/cypress/41761/workflows/958cb274-e0b3-4e6c-873f-2a60038625c7/jobs/1731172/parallel-runs/5

Link to failing test in GitHub

Here's the link to the taskInternal function in question: https://github.com/cypress-io/cypress/blob/develop/packages/frontend-shared/cypress/e2e/support/e2eSupport.ts#L456

Analysis

Digging through the logs/artifacts we see interesting hints such as:

  1. A look at the logs shows repeated instances of MaxListenersExceededWarning:
(node:1252) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 dev-server:specs:changed listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)
  1. A closer look at the logs shows a performance warning from NexusSlowGuard:

Screen Shot 2022-08-12 at 10 23 27 AM

  1. In the video, we don't see a loading spinner between this test and the previous test -- it's still showing the previous test. From our own log in the reporter we see "no commands were issued in this test". Perhaps teardown not working as expected?

Screen Shot 2022-08-12 at 10 15 00 AM

Cypress Version

10.4.0

Other

List of other timeout failures on windows with the same MaxListenersExceededWarning and NexusSlowGuard logs:

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS: windowsprocess: flaky testRelated to test(s) that have flake in our internal testsstaleno activity on this issue for a long period

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions