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

Cypress hangs while running in Docker Node JS 20+ container on Mac Book Pro with apple silicone M2 processor #29526

Open
vitaliisavenchuk opened this issue May 15, 2024 · 3 comments
Labels
stage: needs information Not enough info to reproduce the issue

Comments

@vitaliisavenchuk
Copy link

vitaliisavenchuk commented May 15, 2024

Current behavior

While ordinary task to perfrom - cypress is hanging with a problems

Desired behavior

Run tests and process tasks

Test code to reproduce

describe('Add Company User', () => {

    before(() => {
    });

    it('Company can add new user', () => {

    });
    after(() => {
    
    })
});

Cypress Version

cypress >= 13.6.5

Node version

v20.5.1

Operating System

Docker 4.30 in Mac OS Sonoma 14.5 (23F79)

Debug Logs

cypress:server:run about to run spec { spec: { absolute: '/var/www/profesia/tests/cypress/e2e/acceptance_tests/companyAddNewUser.cy.js', fileExtension: '.js', fileName: 'companyAddNewUser', name: 'companyAddNewUser.cy.js', relative: 'cypress/e2e/acceptance_tests/companyAddNewUser.cy.js' }, isHeadless: true, browser: { channel: 'stable', displayName: 'Electron', family: 'chromium', majorVersion: 118, name: 'electron', path: '', version: '118.0.5993.159' } } +56ms

After this - no actions is in list or processing

Other

No response

@jennifer-shehane
Copy link
Member

@vitaliisavenchuk Could you try another browser than electron? And also try the latest version of Cypress? Could you include all of the DEBUG logs also?

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label May 15, 2024
@vitaliisavenchuk
Copy link
Author

vitaliisavenchuk commented May 16, 2024

changed to cypress 13.9 with chrome 125
cypress_hang.log

Additionally can say - that problem starts after Cypress 13.6.5 ( after updating of electron ), but for example - works with previous versions like 13.2

@jennifer-shehane
Copy link
Member

We might get an Electron update out soon. If it is related to Electron it may be fixed there.

Does this behavior happen if you just run one of our repos? Like https://github.com/cypress-io/cypress-example-kitchensink

The end of the log:

cypress:snapshot:error TypeError [ERR_INVALID_ARG_TYPE]: The "paths[1]" argument must be of type string. Received undefined
  cypress:snapshot:error     at new NodeError (node:internal/errors:405:5)
  cypress:snapshot:error     at validateString (node:internal/validators:162:11)
  cypress:snapshot:error     at Object.resolve (node:path:1097:7)
  cypress:snapshot:error     at Object.resolve (evalmachine.<anonymous>:1:776997)
  cypress:snapshot:error     at resolvePathsAndParent (<embedded>:4499:1089696)
  cypress:snapshot:error     at customRequire (<embedded>:4499:1088752)
  cypress:snapshot:error     at m (<embedded>:2684:111097)
  cypress:snapshot:error     at <embedded>:2684:111632
  cypress:snapshot:error     at <embedded>:4499:18500
  cypress:snapshot:error     at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) +0ms
  cypress:snapshot:error TypeError [ERR_INVALID_ARG_TYPE]: The "paths[1]" argument must be of type string. Received undefined
  cypress:snapshot:error     at new NodeError (node:internal/errors:405:5)
  cypress:snapshot:error     at validateString (node:internal/validators:162:11)
  cypress:snapshot:error     at Object.resolve (node:path:1097:7)
  cypress:snapshot:error     at Object.resolve (evalmachine.<anonymous>:1:776997)
  cypress:snapshot:error     at resolvePathsAndParent (<embedded>:4499:1089724)
  cypress:snapshot:error     at customRequire (<embedded>:4499:1088752)
  cypress:snapshot:error     at m (<embedded>:2684:111097)
  cypress:snapshot:error     at <embedded>:2684:111632
  cypress:snapshot:error     at <embedded>:4499:18500
  cypress:snapshot:error     at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) +1ms

====================================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        13.9.0                                                                         │
  │ Browser:        Chrome 125 (headless)                                                          │
  │ Node Version:   v20.5.1 (/usr/bin/node)                                                        │
  │ Specs:          10 found (companyAddNewUser.cy.js, companyCreditPackageOrder.cy.js, companyCvP │
  │                 ackageOrder.cy.js, companyInfo.cy.js, companyLogin.cy.js, companyRegistration. │
  │                 cy.js, offer/archiveOffer.js, offer/createOffer.cy.js, offer/readOffer.cy.js,  │
  │                 offer/updateOffer.cy.js)                                                       │
  │ Searched:       **/acceptance_tests/**/*                                                       │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

  cypress:lifecycle:EventRegistrar plugin event registered? { eventName: 'before:run', isRegistered: false } +866ms

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  companyAddNewUser.cy.js                                                        (1 of 10)
  cypress:server:run about to run spec { spec: { absolute: '/var/www/profesia/tests/cypress/e2e/acceptance_tests/companyAddNewUser.cy.js', fileExtension: '.js', fileName: 'companyAddNewUser', name: 'companyAddNewUser.cy.js', relative: 'cypress/e2e/acceptance_tests/companyAddNewUser.cy.js' }, isHeadless: true, browser: { channel: 'stable', displayName: 'Chrome', family: 'chromium', majorVersion: '125', name: 'chrome', path: 'google-chrome', version: '125.0.6422.60' } } +33ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: needs information Not enough info to reproduce the issue
Projects
None yet
Development

No branches or pull requests

2 participants