billions-appointment-73985
04/24/2023, 1:56 PMadventurous-dream-20049
04/25/2023, 2:39 AMexperimentalMemoryManagement=true if you have experienced "Out of Memory" issues. That would be the first recommendation.
You mention the machine resources are exhausted so the second recommendation would be to increase those resources because the amount of resources Cypress uses is heavily dependent on the underlying application. You may need a larger Docker image or increase the number of machines.
You may also need to split your longer running tests into shorter tests (https://www.cypress.io/blog/2019/10/29/split-a-very-long-cypress-test-into-shorter-ones-using-app-actions/). A longer running test is considered any test that runs longer than 1 minute.
Another option would be to update video options by setting video-false or videoUploadOnPasses=true in your cypress.config.
The exact cause isn't always clear as this can be a combination of any number of things, but you can check to see how much resources are being used with CPU and memory usage logs enabled (https://docs.cypress.io/guides/references/troubleshooting.html#Log-memory-and-CPU-usage)billions-appointment-73985
04/25/2023, 6:31 AMechoing-tent-95037
04/25/2023, 3:26 PMnumTestsKeptInMemory: 0echoing-tent-95037
04/25/2023, 3:26 PMlate-greece-72449
04/25/2023, 3:28 PMnumTestsKeptInMemory: 0 is a good way to save memory but I think that affects the screenshots & videos even on failure.
I do keep a small number when running locally but in ci env, I think that might be needed if you need something to analyze your runs and results.echoing-tent-95037
04/25/2023, 3:30 PMlate-greece-72449
04/25/2023, 3:35 PMechoing-tent-95037
04/25/2023, 3:39 PMbillions-appointment-73985
04/26/2023, 5:44 AMnumTestsKeptInMemory: 0late-greece-72449
04/26/2023, 12:35 PMbulky-bear-66396
05/11/2023, 11:11 AMcypress open runs and not headless cypress run so take that under considerationflaky-egg-13825
05/22/2023, 8:11 PM