Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error thrown when spec finishes for new Cypress 10 #116

Closed
CassenH opened this issue Jun 8, 2022 · 5 comments · Fixed by #126
Closed

Error thrown when spec finishes for new Cypress 10 #116

CassenH opened this issue Jun 8, 2022 · 5 comments · Fixed by #126

Comments

@CassenH
Copy link

CassenH commented Jun 8, 2022

I'm getting this error right then the first spec finishes for Cypress Version 10.0.3

Channel closed
Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
    at new NodeError (node:internal/errors:371:5)
    at ChildProcess.target.send (node:internal/child_process:721:16)
    at Runner.<anonymous> (/e2e/node_modules/@reportportal/agent-js-cypress/lib/cypressReporter.js:115:21)
    at Runner.emit (node:events:402:35)
    at Runner.emit (node:domain:475:12)
    at Reporter.emit (/root/.cache/Cypress/10.0.3/Cypress/resources/app/packages/server/lib/reporter.js:362:46)
    at Object.onMocha (/root/.cache/Cypress/10.0.3/Cypress/resources/app/packages/server/lib/project-base.js:283:34)
    at Socket.<anonymous> (/root/.cache/Cypress/10.0.3/Cypress/resources/app/packages/server/lib/socket-base.js:250:40)
    at Socket.emit (node:events:390:28)
    at Socket.emit (node:domain:475:12)
    at Socket.emitUntyped (/root/.cache/Cypress/10.0.3/Cypress/resources/app/packages/socket/node_modules/socket.io/dist/typed-events.js:69:22)
    at /root/.cache/Cypress/10.0.3/Cypress/resources/app/packages/socket/node_modules/socket.io/dist/socket.js:428:39
    at processTicksAndRejections (node:internal/process/task_queues:78:11)
@notfounnd
Copy link

@CassenH in an overview, I understand this agent ins't compatible with Cypress 10.

RP agent uses cypress.json to resolve its setup. The new version of Cypress changed config file format.

  • cypress.json --> cypress.config.js

You can see here: https://docs.cypress.io/guides/references/changelog#10-0-0

@AmsterGet
Copy link
Member

Hello @CassenH @notfounnd !
Please see #115
Any contribution is greatly appreciated 😄

@praveentata
Copy link

praveentata commented Aug 14, 2022

I see the same error with Cypress 10.
The error shows up immediately when the specs are run using tags using cypress-tags library.
When running one spec file, it runs for sometime and then throws the same error.

I am not able to run any test. In my case, even the first test is not finishing.

Any help is appreciated.
Thanks :)

orgads pushed a commit to orgads/agent-js-cypress that referenced this issue Sep 5, 2022
@orgads
Copy link
Contributor

orgads commented Sep 5, 2022

I pushed #126 (a revised version of #123), which fixes the issue.

Until this is merged, I created a forked package @audc/reportportal-agent-js-cypress.

You can install it without any code changes by: npm install @reportportal/agent-js-cypress@npm:@audc/reportportal-agent-js-cypress.

Once the fix is merged in and released, you can switch back to the original package.

@AmsterGet AmsterGet linked a pull request Sep 20, 2022 that will close this issue
@AmsterGet
Copy link
Member

Hello guys!
The version 5.1.0 released with Cypress 10.x support. Please try it.
Thanks to @orgads and @dwentland24 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants