Skip to content

Missing browserCriClient in connectToNewSpec #24650

Description

@jazpearson

Current behavior

Unfortunately, this issue is intermittent and only happens in our CI pipeline. But i wanted to see if could raise the issue in case there's something obvious.

We run cypress with the following: cypress-run cross-env NODE_OPTIONS=--max-http-header-size=1000000 cypress run --browser chrome. And we run in a docker container, using the cypress/included images.

This error happens mid-way running through our test suites. Our tests can take 30 minutes, and the following error seems to occur when ending a test suite (or conversely, when starting the next test suite).

Timed out waiting for the browser to connect. Retrying...
Missing browserCriClient in connectToNewSpec
Error: Missing browserCriClient in connectToNewSpec
    at Object.connectToNewSpec (<embedded>:2744:242702)
    at Object.connectToNewSpec (<embedded>:2750:24813)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async v.relaunchBrowser (<embedded>:2802:346537)

When this happens, the test run completely exits and the remaining suites do not run.

Desired behavior

For the test run not to crash

Test code to reproduce

Really difficult to do, sorry. It's intermittent, and it's a fairly large, sensitive, code-base.

Cypress Version

11.0.1

Node version

16.16.0

Operating System

Jenkins CI - CentOS (but runs the cypress docker image)

Debug Logs

No response

Other

We've seen this happening in v10 and v11.

Activity

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

    E2EIssue related to end-to-end testingTriagedIssue has been routed to backlog. This is not a commitment to have it prioritized by the team.type: regressionA bug that didn't appear until a specific Cy version release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions