cypress: Error: Session with given id not found.

Current behavior

Cypress is failing in GitHub Actions workflow:

Session with given id not found.
Error: Session with given id not found.
    at <embedded>:2466:519827
    at _._handleMessage (<embedded>:2466:521860)
    at A.<anonymous> (<embedded>:2466:521673)
    at A.emit (node:events:513:28)
    at g.U (<embedded>:2466:506953)
    at g.emit (node:events:513:28)
    at g.dataMessage (<embedded>:2466:487328)
    at <embedded>:2466:486860
    at <embedded>:2466:478182
    at <embedded>:2466:479134
    at afterWrite (node:internal/streams/writable:500:5)
    at onwrite (node:internal/streams/writable:480:7)
    at Zlib.<anonymous> (node:internal/streams/transform:190:7)
    at Zlib.processCallback (node:zlib:613:8)
Test run failed, code 1
More information might be available above
Cypress module has returned the following error message:
Could not find Cypress test run results
Error: Could not find Cypress test run results

Desired behavior

Cypress GitHub Action passes

Test code to reproduce

https://github.com/remarkablemark/cypress-cucumber-steps/pull/537

Cypress Version

13.3.3

Node version

18.18.2

Operating System

Ubuntu 22.04.3

Debug Logs

No response

Other

Related to https://github.com/cypress-io/cypress/issues/28136#issuecomment-1779617812

About this issue

  • Original URL
  • State: closed
  • Created 8 months ago
  • Reactions: 11
  • Comments: 15 (4 by maintainers)

Commits related to this issue

Most upvoted comments

@remarkablemark

Let us know if cypress@13.4.0 fixes this for you!

This was fixed with #28147 and will be released ASAP.

@remarkablemark

I was able to reproduce this locally as a regression in Cypress 13.3.3. The crash does not depend on GitHub Actions, nor does it depend on Chrome.

On Ubuntu 22.04.3 with the following steps:

git clone --branch dependabot/npm_and_yarn/cypress-13.3.3 https://github.com/remarkablemark/cypress-cucumber-steps
cd cypress-cucumber-steps
n 18.18.2 # to set Node.js to 18.18.2
npm ci
npx cypress info
npx cypress run --browser chrome

The crash shows itself as:

  Cypress docs
    ✓ Alt text (43265ms)
Session with given id not found.

and this only appears when using Cypress 13.3.3.

Testing with npx cypress open and selecting cypress/e2e/cypress/docs.feature with 3 scenarios:

Browser Version Result 13.3.2 Result 13.3.3
Electron v114 1/3 fail crash
Chrome 118.0.5993.117 0 fail crash
Chromium 118.0.5993.117 1/3 fail crash
Edge 118.0.2088.69 0 fail crash
Firefox 119.0 0 fail 2/3 tests failed