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

fix(cypress): enabling Cypress experimentalMemoryManagement setting #27430

Closed
wants to merge 1 commit into from

Conversation

rusackas
Copy link
Member

@rusackas rusackas commented Mar 7, 2024

SUMMARY

We keep seeing this error in Cypress:

We detected that the Chromium Renderer process just crashed.
  
  This is the equivalent to seeing the 'sad face' when Chrome dies.
  
  This can happen for a number of different reasons:
  
  - You wrote an endless loop and you must fix your own code
  - You are running Docker (there is an easy fix for this: see link below)
  - You are running lots of tests on a memory intense application
  - You are running in a memory starved VM environment
  - There are problems with your GPU / GPU drivers
  - There are browser bugs in Chromium
  
  You can learn more including how to fix Docker here:
  
  https://on.cypress.io/renderer-process-crashed

When I go to that URL, it doesn't actually say anything about how to fix Docker, but it does suggest turning on the experimentalMemoryManagement flag for Chromium based browsers. So... well... here goes nothing!

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

Well, CI should pass without that error, that's for sure!

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

Copy link

codecov bot commented Mar 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.34%. Comparing base (9ced255) to head (d8a571e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #27430   +/-   ##
=======================================
  Coverage   67.34%   67.34%           
=======================================
  Files        1909     1909           
  Lines       74623    74623           
  Branches     8324     8324           
=======================================
  Hits        50256    50256           
  Misses      22314    22314           
  Partials     2053     2053           
Flag Coverage Δ
javascript 57.20% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rusackas
Copy link
Member Author

This setting is only available in Cypress 12. Ugh.

@rusackas rusackas closed this Mar 11, 2024
@rusackas rusackas deleted the cypress-memory-management branch April 16, 2024 16:51
@eschutho eschutho mentioned this pull request Sep 12, 2024
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants