cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
46.62k stars 3.16k forks source link

Hey people, we are having regular chromium crash issue for some tests in our UI_E2E setup. I believe this is related to cypress. #28526

Closed Harikesh1610 closed 1 month ago

Harikesh1610 commented 8 months ago

Test code to reproduce

We have already kept numTestsKeptInMemory low in our config file and it still doesn't help. The tests are failing randomly (different suite) but it keeps failing continuously for some time.

Cypress Mode

cypress run

Cypress Version

12.17.0

Browser Version

chrome : 119

Node version

18.14.2

Operating System

circleCi VM

Memory Debug Logs

This can happen for a number of different reasons.

If you're running lots of tests on a memory intense application.
  - Try increasing the CPU/memory on the machine you're running on.
  - Try enabling experimentalMemoryManagement in your config file.
  - Try lowering numTestsKeptInMemory in your config file during 'cypress open'.

You can learn more here:

https://on.cypress.io/renderer-process-crashed

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        0                                                                                │
  │ Passing:      0                                                                                │
  │ Failing:      1                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     0 seconds                                                                        │
  │ Spec Ran:     parts-custom-ordering.spec.ts                                                    │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

  (Video)

  -  Started compressing: Compressing to 32 CRF                                                     
  -  Finished compressing: 6 seconds                                                 

  -  Video output: /home/circleci/project/dist/cypress/apps/product-e2e/videos/parts-custom-ordering.spec.ts.mp4

failed e2e file names [ 'parts-custom-ordering.spec.ts' ]
e2e failed in before:  false

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

  (Run Finished)

       Spec                                              Tests  Passing  Failing  Pending  Skipped  
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✖  parts-custom-ordering.spec.ts              0ms        -        -        1        -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✖  1 of 1 failed (100%)                       0ms        -        -        1        -        -  

CYPRESS_ACTIVE_ENV=$ACTIVE_ENV  RUN_NAME=parts-list npx cypress run --config-file=./cypress.config.ts --browser=chrome --config '{ "userAgent" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/12.17 HeadlessChrome/115.0.5790.102 Safari/537.36"}' --headless --project=./apps/product-e2e/ --spec=./apps/product-e2e/src/integration/parts-list/parts-custom-ordering.spec.ts Failed...
Failed: parts-custom-ordering.spec.ts

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

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        12.17.0                                                                        │
  │ Browser:        Chrome 120 (headless)                                                          │
  │ Node Version:   v18.14.2 (/home/circleci/.nvm/versions/node/v18.14.2/bin/node)                 │
  │ Specs:          1 found (parts-list-filter.spec.ts)                                            │
  │ Searched:       src/integration/parts-list/parts-list-filter.spec.ts                           │
  │ Experiments:    experimentalMemoryManagement=true                                              │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

Starting test in the run name of parts-list and env QA

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

  Running:  parts-list-filter.spec.ts                                                       (1 of 1)
Launching browser chrome and disable --disable-dev-shm-usage
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="48.082" tests="3" failures="0">
  <testsuite name="Root Suite" timestamp="2023-12-13T11:24:43" tests="0" file="src/integration/parts-list/parts-list-filter.spec.ts" time="0.000" failures="0">
  </testsuite>
  <testsuite name="Parts Filter" timestamp="2023-12-13T11:24:43" tests="3" time="48.078" failures="0">
    <testcase name="Parts Filter Should create product and enhancement" time="32.357" classname="Should create product and enhancement">
    </testcase>
    <testcase name="Parts Filter Should apply parent part filter" time="5.695" classname="Should apply parent part filter">
    </testcase>
    <testcase name="Parts Filter Should apply actual start date filter filter" time="3.319" classname="Should apply actual start date filter filter">
    </testcase>
  </testsuite>
</testsuites>

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        3                                                                                │
  │ Passing:      3                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     48 seconds                                                                       │
  │ Spec Ran:     parts-list-filter.spec.ts                                                        │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

  (Video)

  -  Started compressing: Compressing to 32 CRF                                                     
  -  Finished compressing: 6 seconds                                                 

  -  Video output: /home/circleci/project/dist/cypress/apps/product-e2e/videos/parts-list-filter.spec.ts.mp4

failed e2e file names []
e2e failed in before:  true

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

  (Run Finished)

       Spec                                              Tests  Passing  Failing  Pending  Skipped  
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✔  parts-list-filter.spec.ts                00:48        3        3        -        -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✔  All specs passed!                        00:48        3        3        -        -        -  

⚠ Unable to attach to the target (e.g. page, worker, etc). 

Possible reasons for the failure include:
  - Chrome not running in headless mode.
  - The target may have closed during initialization.
  - The target may have crashed due to memory issues.

Please open an issue on the repository: https://github.com/NeuraLegion/cypress-har-generator/issues for assistance.

The stack trace for this error is:
Error: WebSocket connection closed
    at /home/circleci/cache/node_modules/chrome-remote-interface/lib/chrome.js:94:35
    at Chrome._handleConnectionClose (/home/circleci/cache/node_modules/chrome-remote-interface/lib/chrome.js:256:13)
    at WebSocket.<anonymous> (/home/circleci/cache/node_modules/chrome-remote-interface/lib/chrome.js:243:22)
    at WebSocket.emit (node:events:513:28)
    at WebSocket.emit (node:domain:489:12)
    at WebSocket.emitClose (/home/circleci/cache/node_modules/chrome-remote-interface/node_modules/ws/lib/websocket.js:246:10)
    at Socket.socketOnClose (/home/circleci/cache/node_modules/chrome-remote-interface/node_modules/ws/lib/websocket.js:1148:15)
    at Socket.emit (node:events:513:28)
    at Socket.emit (node:domain:489:12)
    at TCP.<anonymous> (node:net:322:12)
⚠ Unable to attach to the target (e.g. page, worker, etc). 

Possible reasons for the failure include:
  - Chrome not running in headless mode.
  - The target may have closed during initialization.
  - The target may have crashed due to memory issues.

Please open an issue on the repository: https://github.com/NeuraLegion/cypress-har-generator/issues for assistance.

The stack trace for this error is:
Error: WebSocket connection closed
    at /home/circleci/cache/node_modules/chrome-remote-interface/lib/chrome.js:94:35
    at Chrome._handleConnectionClose (/home/circleci/cache/node_modules/chrome-remote-interface/lib/chrome.js:256:13)
    at WebSocket.<anonymous> (/home/circleci/cache/node_modules/chrome-remote-interface/lib/chrome.js:243:22)
    at WebSocket.emit (node:events:513:28)
    at WebSocket.emit (node:domain:489:12)
    at WebSocket.emitClose (/home/circleci/cache/node_modules/chrome-remote-interface/node_modules/ws/lib/websocket.js:246:10)
    at Socket.socketOnClose (/home/circleci/cache/node_modules/chrome-remote-interface/node_modules/ws/lib/websocket.js:1148:15)
    at Socket.emit (node:events:513:28)
    at Socket.emit (node:domain:489:12)
    at TCP.<anonymous> (node:net:322:12)
⚠ Unable to attach to the target (e.g. page, worker, etc). 

Possible reasons for the failure include:
  - Chrome not running in headless mode.
  - The target may have closed during initialization.
  - The target may have crashed due to memory issues.

Please open an issue on the repository: https://github.com/NeuraLegion/cypress-har-generator/issues for assistance.

The stack trace for this error is:
Error: WebSocket connection closed
    at /home/circleci/cache/node_modules/chrome-remote-interface/lib/chrome.js:94:35
    at Chrome._handleConnectionClose (/home/circleci/cache/node_modules/chrome-remote-interface/lib/chrome.js:256:13)
    at WebSocket.<anonymous> (/home/circleci/cache/node_modules/chrome-remote-interface/lib/chrome.js:243:22)
    at WebSocket.emit (node:events:513:28)
    at WebSocket.emit (node:domain:489:12)
    at WebSocket.emitClose (/home/circleci/cache/node_modules/chrome-remote-interface/node_modules/ws/lib/websocket.js:246:10)
    at Socket.socketOnClose (/home/circleci/cache/node_modules/chrome-remote-interface/node_modules/ws/lib/websocket.js:1148:15)
    at Socket.emit (node:events:513:28)
    at Socket.emit (node:domain:489:12)
    at TCP.<anonymous> (node:net:322:12)
⚠ Unable to attach to the target (e.g. page, worker, etc). 

Possible reasons for the failure include:
  - Chrome not running in headless mode.
  - The target may have closed during initialization.
  - The target may have crashed due to memory issues.

Please open an issue on the repository: https://github.com/NeuraLegion/cypress-har-generator/issues for assistance.

The stack trace for this error is:
Error: WebSocket connection closed
    at /home/circleci/cache/node_modules/chrome-remote-interface/lib/chrome.js:94:35
    at Chrome._handleConnectionClose (/home/circleci/cache/node_modules/chrome-remote-interface/lib/chrome.js:256:13)
    at WebSocket.<anonymous> (/home/circleci/cache/node_modules/chrome-remote-interface/lib/chrome.js:243:22)
    at WebSocket.emit (node:events:513:28)
    at WebSocket.emit (node:domain:489:12)
    at WebSocket.emitClose (/home/circleci/cache/node_modules/chrome-remote-interface/node_modules/ws/lib/websocket.js:246:10)
    at Socket.socketOnClose (/home/circleci/cache/node_modules/chrome-remote-interface/node_modules/ws/lib/websocket.js:1148:15)
    at Socket.emit (node:events:513:28)
    at Socket.emit (node:domain:489:12)
    at TCP.<anonymous> (node:net:322:12)
Failed files: parts-custom-ordering.spec.ts
Failed files: parts-custom-ordering.spec.ts
Running E2E for parts-list with count 2
Renaming folder:  ./dist/cypress/apps/product-e2e/videos
Renaming folder:  ./dist/cypress/apps/product-e2e/screenshots
Renaming folder:  ./dist/cypress/apps/product-e2e/hars
Current files: parts-custom-ordering.spec.ts

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

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        12.17.0                                                                        │
  │ Browser:        Chrome 120 (headless)                                                          │
  │ Node Version:   v18.14.2 (/home/circleci/.nvm/versions/node/v18.14.2/bin/node)                 │
  │ Specs:          1 found (parts-custom-ordering.spec.ts)                                        │
  │ Searched:       src/integration/parts-list/parts-custom-ordering.spec.ts                       │
  │ Experiments:    experimentalMemoryManagement=true                                              │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

Starting test in the run name of parts-list and env QA

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

  Running:  parts-custom-ordering.spec.ts                                                   (1 of 1)
Launching browser chrome and disable --disable-dev-shm-usage

We detected that the Chromium Renderer process just crashed.

This can happen for a number of different reasons.

If you're running lots of tests on a memory intense application.
  - Try increasing the CPU/memory on the machine you're running on.
  - Try enabling experimentalMemoryManagement in your config file.
  - Try lowering numTestsKeptInMemory in your config file during 'cypress open'.

You can learn more here:

https://on.cypress.io/renderer-process-crashed

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        0                                                                                │
  │ Passing:      0                                                                                │
  │ Failing:      1                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     0 seconds                                                                        │
  │ Spec Ran:     parts-custom-ordering.spec.ts                                                    │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

  (Video)

  -  Started compressing: Compressing to 32 CRF                                                     
  -  Finished compressing: 4 seconds                                                 

  -  Video output: /home/circleci/project/dist/cypress/apps/product-e2e/videos/parts-custom-ordering.spec.ts.mp4

failed e2e file names [ 'parts-custom-ordering.spec.ts' ]
e2e failed in before:  false

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

  (Run Finished)

       Spec                                              Tests  Passing  Failing  Pending  Skipped  
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✖  parts-custom-ordering.spec.ts              0ms        -        -        1        -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✖  1 of 1 failed (100%)                       0ms        -        -        1        -        -  

CYPRESS_ACTIVE_ENV=$ACTIVE_ENV  RUN_NAME=parts-list npx cypress run --config-file=./cypress.config.ts --browser=chrome --config '{ "userAgent" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/12.17 HeadlessChrome/115.0.5790.102 Safari/537.36"}' --headless --project=./apps/product-e2e/ --spec=./apps/product-e2e/src/integration/parts-list/parts-custom-ordering.spec.ts Failed...
Failed: parts-custom-ordering.spec.ts
Failed files: parts-custom-ordering.spec.ts
Failed files: parts-custom-ordering.spec.ts
Running E2E for parts-list with count 3
Renaming folder:  ./dist/cypress/apps/product-e2e/videos
Renaming folder:  ./dist/cypress/apps/product-e2e/screenshots
Renaming folder:  ./dist/cypress/apps/product-e2e/hars
Current files: parts-custom-ordering.spec.ts

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

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        12.17.0                                                                        │
  │ Browser:        Chrome 120 (headless)                                                          │
  │ Node Version:   v18.14.2 (/home/circleci/.nvm/versions/node/v18.14.2/bin/node)                 │
  │ Specs:          1 found (parts-custom-ordering.spec.ts)                                        │
  │ Searched:       src/integration/parts-list/parts-custom-ordering.spec.ts                       │
  │ Experiments:    experimentalMemoryManagement=true                                              │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

Starting test in the run name of parts-list and env QA

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

  Running:  parts-custom-ordering.spec.ts                                                   (1 of 1)
Launching browser chrome and disable --disable-dev-shm-usage

We detected that the Chromium Renderer process just crashed.

This can happen for a number of different reasons.

If you're running lots of tests on a memory intense application.
  - Try increasing the CPU/memory on the machine you're running on.
  - Try enabling experimentalMemoryManagement in your config file.
  - Try lowering numTestsKeptInMemory in your config file during 'cypress open'.

You can learn more here:

https://on.cypress.io/renderer-process-crashed

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        0                                                                                │
  │ Passing:      0                                                                                │
  │ Failing:      1                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     0 seconds                                                                        │
  │ Spec Ran:     parts-custom-ordering.spec.ts                                                    │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

  (Video)

  -  Started compressing: Compressing to 32 CRF                                                     
  -  Finished compressing: 5 seconds                                                 

  -  Video output: /home/circleci/project/dist/cypress/apps/product-e2e/videos/parts-custom-ordering.spec.ts.mp4

failed e2e file names [ 'parts-custom-ordering.spec.ts' ]
e2e failed in before:  false

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

  (Run Finished)

       Spec                                              Tests  Passing  Failing  Pending  Skipped  
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✖  parts-custom-ordering.spec.ts              0ms        -        -        1        -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✖  1 of 1 failed (100%)                       0ms        -        -        1        -        -  

CYPRESS_ACTIVE_ENV=$ACTIVE_ENV  RUN_NAME=parts-list npx cypress run --config-file=./cypress.config.ts --browser=chrome --config '{ "userAgent" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/12.17 HeadlessChrome/115.0.5790.102 Safari/537.36"}' --headless --project=./apps/product-e2e/ --spec=./apps/product-e2e/src/integration/parts-list/parts-custom-ordering.spec.ts Failed...
Failed: parts-custom-ordering.spec.ts
Failed files: parts-custom-ordering.spec.ts
Failed files: parts-custom-ordering.spec.ts
Renaming folder:  ./dist/cypress/apps/product-e2e/videos
Renaming folder:  ./dist/cypress/apps/product-e2e/screenshots
Renaming folder:  ./dist/cypress/apps/product-e2e/hars
Failed files: parts-custom-ordering.spec.ts
Error: Failed files: parts-custom-ordering.spec.ts
    at runE2E (/home/circleci/project/tools/product-e2e-runner.js:175:11)
    at /home/circleci/project/tools/product-e2e-runner.js:212:13

Exited with code exit status 1

The memory logs can be found from this link. I have printed memory at each point of time using top

https://app.circleci.com/pipelines/github/devrev/devrev-web/169711/workflows/88dad2aa-4e48-47eb-bb2e-4a86c8ffb0d0/jobs/2709003/parallel-runs/0/steps/0-104

Other

This is happening from quite some time now. Please try to debug it or help me find rca

jennifer-shehane commented 8 months ago

@HarikeshDevrev Have you tried disabling some plugins, like the cypress-har-generator plugin? It seems to be erroring.

Harikesh1610 commented 8 months ago

cypress-har-generator plugin

Hi @jennifer-shehane initially we also thought that is the culprit and we disbled it but it is still an issue for us. Looks like there is an issue with something else. Thanks for the reply

jennifer-shehane commented 8 months ago

@HarikeshDevrev If you can provide a way to reproduce, we can look into this. It could be a number of things contributing that we don't know about.

Harikesh1610 commented 8 months ago

@HarikeshDevrev If you can provide a way to reproduce, we can look into this. It could be a number of things contributing that we don't know about.

Hey @jennifer-shehane this is reproducible via our application. I am not sure how can we provide a testcode for this when we dont know RCA for this. I tried using cypress-debug mode but it didn't helped. Can you help me with some additional flags which I can use to get additional information?

The debug mode cypress output is given below:

We detected that the Chromium Renderer process just crashed.

This can happen for a number of different reasons.

If you're running lots of tests on a memory intense application.
  - Try increasing the CPU/memory on the machine you're running on.
  - Try enabling experimentalMemoryManagement in your config file.
  - Try lowering numTestsKeptInMemory in your config file during 'cypress open'.

You can learn more here:

https://on.cypress.io/renderer-process-crashed
  cypress:server:run received project end { error: 'We detected that the Chromium Renderer process just crashed.\n' + '\n' + 'This can happen for a number of different reasons.\n' + '\n' + "If you're running lots of tests on a memory intense application.\n" + "  - Try increasing the CPU/memory on the machine you're running on.\n" + '  - Try enabling experimentalMemoryManagement in your config file.\n' + "  - Try lowering numTestsKeptInMemory in your config file during 'cypress open'.\n" + '\n' + 'You can learn more here:\n' + '\n' + 'https://on.cypress.io/renderer-process-crashed', stats: { failures: 1, tests: 0, passes: 0, pending: 0, suites: 0, skipped: 0, wallClockDuration: 0, wallClockStartedAt: '2023-12-19T15:40:50.901Z', wallClockEndedAt: '2023-12-19T15:40:50.901Z' } } +57s
  cypress:server:run received videoController { videoController: { _pt: PassThrough { _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 4, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: true, [Symbol(kCapture)]: false, [Symbol(kCallback)]: null }, cmd: c { _events: [Object: null prototype], _eventsCount: 6, _maxListeners: undefined, _inputs: [Array], _currentInput: [Object], _outputs: [Array], _currentOutput: [Object], _global: [Function], _complexFilters: [Function], options: [Object], logger: [Object], ffmpegProc: [ChildProcess], [Symbol(kCapture)]: false }, endVideoCapture: [Function: c], writeVideoFrame: [Function: writeVideoFrame], startedVideoCapture: 2023-12-19T15:39:52.999Z, restart: [AsyncFunction: restart] } } +0ms
  cypress:server:run delaying to extend video { DELAY_TO_LET_VIDEO_FINISH_MS: 1000 } +0ms
  cypress:server:run ended video capture +1s
  cypress:server:run execute after:spec +0ms
  cypress:lifecycle:EventRegistrar plugin event registered? { eventName: 'after:spec', isRegistered: false } +43s

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        0                                                                                │
  │ Passing:      0                                                                                │
  │ Failing:      1                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     0 seconds                                                                        │
  │ Spec Ran:     part-vista-crud.spec.ts                                                          │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

  cypress:server:run attempting to close the browser tab +5ms
  cypress:server:browsers:browser-cri-client Closing current target CBAA0DE20B55E90554E52E9FEDC9CC8B +59s

  (Video)
  cypress:server:run resetting server state +4ms
  cypress:server:run compressing recording +1ms
  cypress:server:run ending the video recording { shouldUploadVideo: true, quiet: false, videoCompression: 32, processOptions: { compressedVideoName: '/home/circleci/repo/dist/cypress/apps/product-e2e/videos/part-vista-crud.spec.ts-compressed.mp4', videoName: '/home/circleci/repo/dist/cypress/apps/product-e2e/videos/part-vista-crud.spec.ts.mp4', chaptersConfig: undefined } } +0ms

  -  Started compressing: Compressing to 32 CRF                                                     
  -  Finished compressing: 5 seconds                                                 

  -  Video output: /home/circleci/repo/dist/cypress/apps/product-e2e/videos/part-vista-crud.spec.ts.mp4

  cypress:server:run spec results { error: 'We detected that the Chromium Renderer process just crashed.\n' + '\n' + 'This can happen for a number of different reasons.\n' + '\n' + "If you're running lots of tests on a memory intense application.\n" + "  - Try increasing the CPU/memory on the machine you're running on.\n" + '  - Try enabling experimentalMemoryManagement in your config file.\n' + "  - Try lowering numTestsKeptInMemory in your config file during 'cypress open'.\n" + '\n' + 'You can learn more here:\n' + '\n' + 'https://on.cypress.io/renderer-process-crashed', stats: { failures: 1, tests: 0, passes: 0, pending: 0, suites: 0, skipped: 0, wallClockDuration: 0, wallClockStartedAt: '2023-12-19T15:40:50.901Z', wallClockEndedAt: '2023-12-19T15:40:50.901Z' }, hooks: null, tests: null, video: '/home/circleci/repo/dist/cypress/apps/product-e2e/videos/part-vista-crud.spec.ts.mp4', screenshots: [], reporterStats: null, spec: { fileExtension: '.ts', baseName: 'part-vista-crud.spec.ts', fileName: 'part-vista-crud', specFileExtension: '.spec.ts', relativeToCommonRoot: 'part-vista-crud.spec.ts', specType: 'integration', name: 'src/integration/part/part-vista-crud.spec.ts', relative: 'src/integration/part/part-vista-crud.spec.ts', absolute: '/home/circleci/repo/apps/product-e2e/src/integration/part/part-vista-crud.spec.ts' }, shouldUploadVideo: true } +6s
  cypress:server:run final results of all runs: { status: 'finished', startedTestsAt: '2023-12-19T15:40:50.901Z', endedTestsAt: '2023-12-19T15:40:50.901Z', totalDuration: 0, totalSuites: 0, totalTests: 0, totalPassed: 0, totalPending: 0, totalFailed: 1, totalSkipped: 0, runs: [ { error: 'We detected that the Chromium Renderer process just crashed.\n' + '\n' + 'This can happen for a number of different reasons.\n' + '\n' + "If you're running lots of tests on a memory intense application.\n" + "  - Try increasing the CPU/memory on the machine you're running on.\n" + '  - Try enabling experimentalMemoryManagement in your config file.\n' + "  - Try lowering numTestsKeptInMemory in your config file during 'cypress open'.\n" + '\n' + 'You can learn more here:\n' + '\n' + 'https://on.cypress.io/renderer-process-crashed', stats: [Object], hooks: null, tests: null, video: '/home/circleci/repo/dist/cypress/apps/product-e2e/videos/part-vista-crud.spec.ts.mp4', screenshots: [], reporterStats: null, spec: [Object], shouldUploadVideo: true } ], browserPath: 'google-chrome', browserName: 'chrome', browserVersion: '120.0.6099.109', osName: 'linux', osVersion: 'Ubuntu - ', cypressVersion: '12.17.0', runUrl: undefined, config: { chromeWebSecurity: false, defaultCommandTimeout: 10000, env: { HOST: 'https://app.dev.devrev-eng.ai', hars_folders: '../../dist/cypress/apps/product-e2e/hars', ACTIVE_ENV: 'LOCAL' }, fileServerFolder: '/home/circleci/repo/apps/product-e2e', fixturesFolder: '/home/circleci/repo/apps/product-e2e/src/fixtures', modifyObstructiveCode: false, numTestsKeptInMemory: 0, reporter: 'junit', reporterOptions: { html: true, json: true, mochaFile: '../../dist/cypress/apps/product-e2e/xml-reports/report-[hash].xml', overwrite: false, reportDir: '../../dist/cypress/apps/product-e2e/reporter', toConsole: true, attachments: false, antMode: false, jenkinsMode: false, properties: null, rootSuiteTitle: 'Root Suite', testsuitesTitle: 'Mocha Tests', suiteTitleSeparatedBy: ' ' }, requestTimeout: 10000, screenshotsFolder: '/home/circleci/repo/dist/cypress/apps/product-e2e/screenshots', trashAssetsBeforeRuns: false, video: true, videosFolder: '/home/circleci/repo/dist/cypress/apps/product-e2e/videos', viewportHeight: 800, viewportWidth: 1280, experimentalMemoryManagement: true, setupNodeEvents: '[Function setupNodeEvents]', specPattern: [ './src/integration/**/*.{js,jsx,ts,tsx}' ], supportFile: '/home/circleci/repo/apps/product-e2e/src/support/index.ts', testIsolation: false, projectRoot: '/home/circleci/repo/apps/product-e2e', projectName: 'product-e2e', repoRoot: '/home/circleci/repo', rawJson: { chromeWebSecurity: false, defaultCommandTimeout: 10000, e2e: [Object], env: [Object], fileServerFolder: '.', fixturesFolder: './src/fixtures', modifyObstructiveCode: false, numTestsKeptInMemory: 0, reporter: 'junit', reporterOptions: [Object], requestTimeout: 10000, screenshotsFolder: '../../dist/cypress/apps/product-e2e/screenshots', trashAssetsBeforeRuns: false, video: true, videosFolder: '../../dist/cypress/apps/product-e2e/videos', viewportHeight: 800, viewportWidth: 1280, experimentalMemoryManagement: true, setupNodeEvents: '[Function setupNodeEvents]', specPattern: [Array], supportFile: './src/support/index.ts', testIsolation: false, envFile: {}, projectRoot: '/home/circleci/repo/apps/product-e2e', projectName: 'product-e2e', repoRoot: '/home/circleci/repo' }, configFile: 'cypress.config.ts', morgan: false, isTextTerminal: true, socketId: 'j25dlx8yfq', report: true, userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/12.17 HeadlessChrome/115.0.5790.102 Safari/537.36', animationDistanceThreshold: 5, arch: 'x64', baseUrl: null, blockHosts: null, clientCertificates: [], downloadsFolder: '/home/circleci/repo/apps/product-e2e/cypress/downloads', execTimeout: 60000, experimentalCspAllowList: false, experimentalFetchPolyfill: false, experimentalInteractiveRunEvents: false, experimentalRunAllSpecs: false, experimentalModifyObstructiveThirdPartyCode: false, experimentalSkipDomainInjection: null, experimentalOriginDependencies: false, experimentalSourceRewriting: false, experimentalSingleTabRunMode: false, experimentalStudio: false, experimentalWebKitSupport: false, excludeSpecPattern: '*.hot-update.js', includeShadowDom: false, keystrokeDelay: 0, nodeVersion: undefined, platform: 'linux', pageLoadTimeout: 60000, port: 43613, projectId: null, redirectionLimit: 20, resolvedNodePath: '/opt/circleci/.nvm/versions/node/v18.14.2/bin/node', resolvedNodeVersion: '18.14.2', responseTimeout: 30000, retries: { runMode: 0, openMode: 0 }, screenshotOnRunFailure: true, slowTestThreshold: 10000, scrollBehavior: 'top', supportFolder: '/home/circleci/repo/apps/product-e2e/src/support', taskTimeout: 60000, videoCompression: 32, videoUploadOnPasses: true, waitForAnimations: true, watchForFileChanges: false, additionalIgnorePattern: [], autoOpen: false, browsers: [ [Object], [Object], [Object] ], clientRoute: '/__/', cypressBinaryRoot: '/home/circleci/.cache/Cypress/12.17.0/Cypress/resources/app', devServerPublicPathRoute: '/__cypress/src', hosts: null, isInteractive: true, namespace: '__cypress', reporterRoute: '/__cypress/reporter', socketIoCookie: '__socket', socketIoRoute: '/__socket', version: '12.17.0', cypressEnv: 'production', resolved: { animationDistanceThreshold: [Object], arch: [Object], baseUrl: [Object], blockHosts: [Object], chromeWebSecurity: [Object], clientCertificates: [Object], defaultCommandTimeout: [Object], downloadsFolder: [Object], env: [Object], execTimeout: [Object], experimentalCspAllowList: [Object], experimentalFetchPolyfill: [Object], experimentalInteractiveRunEvents: [Object], experimentalRunAllSpecs: [Object], experimentalMemoryManagement: [Object], experimentalModifyObstructiveThirdPartyCode: [Object], experimentalSkipDomainInjection: [Object], experimentalOriginDependencies: [Object], experimentalSourceRewriting: [Object], experimentalSingleTabRunMode: [Object], experimentalStudio: [Object], experimentalWebKitSupport: [Object], fileServerFolder: [Object], fixturesFolder: [Object], excludeSpecPattern: [Object], includeShadowDom: [Object], keystrokeDelay: [Object], modifyObstructiveCode: [Object], nodeVersion: [Object], numTestsKeptInMemory: [Object], platform: [Object], pageLoadTimeout: [Object], port: [Object], projectId: [Object], redirectionLimit: [Object], reporter: [Object], reporterOptions: [Object], requestTimeout: [Object], resolvedNodePath: [Object], resolvedNodeVersion: [Object], responseTimeout: [Object], retries: [Object], screenshotOnRunFailure: [Object], screenshotsFolder: [Object], slowTestThreshold: [Object], scrollBehavior: [Object], supportFile: [Object], supportFolder: [Object], taskTimeout: [Object], testIsolation: [Object], trashAssetsBeforeRuns: [Object], userAgent: [Object], video: [Object], videoCompression: [Object], videosFolder: [Object], videoUploadOnPasses: [Object], viewportHeight: [Object], viewportWidth: [Object], waitForAnimations: [Object], watchForFileChanges: [Object], specPattern: [Object], browsers: [Object], hosts: [Object], isInteractive: [Object] }, testingType: 'e2e', remote: { auth: undefined, origin: 'http://localhost:43613', strategy: 'file', fileServer: 'http://localhost:45321', domainName: 'localhost', props: null }, browser: null, specs: [], proxyUrl: 'http://localhost:43613', browserUrl: 'http://localhost:43613/__/', reporterUrl: 'http://localhost:43613/__cypress/reporter', proxyServer: 'http://localhost:43613', state: {} } } +1ms
  cypress:lifecycle:EventRegistrar plugin event registered? { eventName: 'after:run', isRegistered: true } +6s
  cypress:lifecycle:EventRegistrar execute plugin event 'after:run' Node 'v16.16.0' with args: { status: 'finished', startedTestsAt: '2023-12-19T15:40:50.901Z', endedTestsAt: '2023-12-19T15:40:50.901Z', totalDuration: 0, totalSuites: 0, totalTests: 0, totalPassed: 0, totalPending: 0, totalFailed: 1, totalSkipped: 0, runs: [ { error: 'We detected that the Chromium Renderer process just crashed.\n' + '\n' + 'This can happen for a number of different reasons.\n' + '\n' + "If you're running lots of tests on a memory intense application.\n" + "  - Try increasing the CPU/memory on the machine you're running on.\n" + '  - Try enabling experimentalMemoryManagement in your config file.\n' + "  - Try lowering numTestsKeptInMemory in your config file during 'cypress open'.\n" + '\n' + 'You can learn more here:\n' + '\n' + 'https://on.cypress.io/renderer-process-crashed', stats: [Object], hooks: null, tests: null, video: '/home/circleci/repo/dist/cypress/apps/product-e2e/videos/part-vista-crud.spec.ts.mp4', reporterStats: null, spec: [Object], shouldUploadVideo: true } ], browserPath: 'google-chrome', browserName: 'chrome', browserVersion: '120.0.6099.109', osName: 'linux', osVersion: 'Ubuntu - ', cypressVersion: '12.17.0', runUrl: undefined, config: { chromeWebSecurity: false, defaultCommandTimeout: 10000, env: { HOST: 'https://app.dev.devrev-eng.ai', hars_folders: '../../dist/cypress/apps/product-e2e/hars', ACTIVE_ENV: 'LOCAL' }, fileServerFolder: '/home/circleci/repo/apps/product-e2e', fixturesFolder: '/home/circleci/repo/apps/product-e2e/src/fixtures', modifyObstructiveCode: false, numTestsKeptInMemory: 0, reporter: 'junit', reporterOptions: { html: true, json: true, mochaFile: '../../dist/cypress/apps/product-e2e/xml-reports/report-[hash].xml', overwrite: false, reportDir: '../../dist/cypress/apps/product-e2e/reporter', toConsole: true, attachments: false, antMode: false, jenkinsMode: false, properties: null, rootSuiteTitle: 'Root Suite', testsuitesTitle: 'Mocha Tests', suiteTitleSeparatedBy: ' ' }, requestTimeout: 10000, screenshotsFolder: '/home/circleci/repo/dist/cypress/apps/product-e2e/screenshots', trashAssetsBeforeRuns: false, video: true, videosFolder: '/home/circleci/repo/dist/cypress/apps/product-e2e/videos', viewportHeight: 800, viewportWidth: 1280, experimentalMemoryManagement: true, setupNodeEvents: '[Function setupNodeEvents]', specPattern: [ './src/integration/**/*.{js,jsx,ts,tsx}' ], supportFile: '/home/circleci/repo/apps/product-e2e/src/support/index.ts', testIsolation: false, projectRoot: '/home/circleci/repo/apps/product-e2e', projectName: 'product-e2e', repoRoot: '/home/circleci/repo', rawJson: { chromeWebSecurity: false, defaultCommandTimeout: 10000, e2e: [Object], env: [Object], fileServerFolder: '.', fixturesFolder: './src/fixtures', modifyObstructiveCode: false, numTestsKeptInMemory: 0, reporter: 'junit', reporterOptions: [Object], requestTimeout: 10000, screenshotsFolder: '../../dist/cypress/apps/product-e2e/screenshots', trashAssetsBeforeRuns: false, video: true, videosFolder: '../../dist/cypress/apps/product-e2e/videos', viewportHeight: 800, viewportWidth: 1280, experimentalMemoryManagement: true, setupNodeEvents: '[Function setupNodeEvents]', specPattern: [Array], supportFile: './src/support/index.ts', testIsolation: false, envFile: {}, projectRoot: '/home/circleci/repo/apps/product-e2e', projectName: 'product-e2e', repoRoot: '/home/circleci/repo' }, configFile: 'cypress.config.ts', morgan: false, isTextTerminal: true, socketId: 'j25dlx8yfq', report: true, userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/12.17 HeadlessChrome/115.0.5790.102 Safari/537.36', animationDistanceThreshold: 5, arch: 'x64', baseUrl: null, blockHosts: null, clientCertificates: [], downloadsFolder: '/home/circleci/repo/apps/product-e2e/cypress/downloads', execTimeout: 60000, experimentalCspAllowList: false, experimentalFetchPolyfill: false, experimentalInteractiveRunEvents: false, experimentalRunAllSpecs: false, experimentalModifyObstructiveThirdPartyCode: false, experimentalSkipDomainInjection: null, experimentalOriginDependencies: false, experimentalSourceRewriting: false, experimentalSingleTabRunMode: false, experimentalStudio: false, experimentalWebKitSupport: false, excludeSpecPattern: '*.hot-update.js', includeShadowDom: false, keystrokeDelay: 0, nodeVersion: undefined, platform: 'linux', pageLoadTimeout: 60000, port: 43613, projectId: null, redirectionLimit: 20, resolvedNodePath: '/opt/circleci/.nvm/versions/node/v18.14.2/bin/node', resolvedNodeVersion: '18.14.2', responseTimeout: 30000, retries: { runMode: 0, openMode: 0 }, screenshotOnRunFailure: true, slowTestThreshold: 10000, scrollBehavior: 'top', supportFolder: '/home/circleci/repo/apps/product-e2e/src/support', taskTimeout: 60000, videoCompression: 32, videoUploadOnPasses: true, waitForAnimations: true, watchForFileChanges: false, additionalIgnorePattern: [], autoOpen: false, browsers: [ [Object], [Object], [Object] ], clientRoute: '/__/', cypressBinaryRoot: '/home/circleci/.cache/Cypress/12.17.0/Cypress/resources/app', devServerPublicPathRoute: '/__cypress/src', hosts: null, isInteractive: true, namespace: '__cypress', reporterRoute: '/__cypress/reporter', socketIoCookie: '__socket', socketIoRoute: '/__socket', version: '12.17.0', cypressEnv: 'production', resolved: { animationDistanceThreshold: [Object], arch: [Object], baseUrl: [Object], blockHosts: [Object], chromeWebSecurity: [Object], clientCertificates: [Object], defaultCommandTimeout: [Object], downloadsFolder: [Object], env: [Object], execTimeout: [Object], experimentalCspAllowList: [Object], experimentalFetchPolyfill: [Object], experimentalInteractiveRunEvents: [Object], experimentalRunAllSpecs: [Object], experimentalMemoryManagement: [Object], experimentalModifyObstructiveThirdPartyCode: [Object], experimentalSkipDomainInjection: [Object], experimentalOriginDependencies: [Object], experimentalSourceRewriting: [Object], experimentalSingleTabRunMode: [Object], experimentalStudio: [Object], experimentalWebKitSupport: [Object], fileServerFolder: [Object], fixturesFolder: [Object], excludeSpecPattern: [Object], includeShadowDom: [Object], keystrokeDelay: [Object], modifyObstructiveCode: [Object], nodeVersion: [Object], numTestsKeptInMemory: [Object], platform: [Object], pageLoadTimeout: [Object], port: [Object], projectId: [Object], redirectionLimit: [Object], reporter: [Object], reporterOptions: [Object], requestTimeout: [Object], resolvedNodePath: [Object], resolvedNodeVersion: [Object], responseTimeout: [Object], retries: [Object], screenshotOnRunFailure: [Object], screenshotsFolder: [Object], slowTestThreshold: [Object], scrollBehavior: [Object], supportFile: [Object], supportFolder: [Object], taskTimeout: [Object], testIsolation: [Object], trashAssetsBeforeRuns: [Object], userAgent: [Object], video: [Object], videoCompression: [Object], videosFolder: [Object], videoUploadOnPasses: [Object], viewportHeight: [Object], viewportWidth: [Object], waitForAnimations: [Object], watchForFileChanges: [Object], specPattern: [Object], browsers: [Object], hosts: [Object], isInteractive: [Object] }, testingType: 'e2e', remote: { auth: undefined, origin: 'http://localhost:43613', strategy: 'file', fileServer: 'http://localhost:45321', domainName: 'localhost', props: null }, browser: null, specs: [], proxyUrl: 'http://localhost:43613', browserUrl: 'http://localhost:43613/__/', reporterUrl: 'http://localhost:43613/__cypress/reporter', proxyServer: 'http://localhost:43613', state: {} } } undefined undefined +0ms
  cypress:lifecycle:ProjectConfigManager call event after:run for invocation id inv542 +49s
  cypress:lifecycle:child:RunPlugins:29002 execute plugin event: after:run ({ invocationId: 'inv542', eventId: 6 }) +49s
failed e2e file names [ 'part-vista-crud.spec.ts' ]
e2e failed in before:  false
  cypress:lifecycle:ProjectConfigManager promise resolved for id 'inv542' with value undefined +3ms
Harikesh1610 commented 8 months ago

@HarikeshDevrev If you can provide a way to reproduce, we can look into this. It could be a number of things contributing that we don't know about.

Hi, @jennifer-shehane, @brian-mann , @chrisbreiding can you please help me here.

Harikesh1610 commented 8 months ago

@HarikeshDevrev If you can provide a way to reproduce, we can look into this. It could be a number of things contributing that we don't know about.

Hi, @jennifer-shehane, @brian-mann , @chrisbreiding can you please help me here.

Hi team! any updates/thoughts on this.

jennifer-shehane commented 7 months ago

@HarikeshDevrev We can't offer any assistance with the information provided, there's no way for us to track down what's causing the issue. We need a way to reproduce it.

jennifer-shehane commented 1 month ago

Please update to the latest version. If your still experiencing an issue, open a new issue with a reproducible example