cypress-io / cypress

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

Detect dropped video frames or frozen video #5061

Open bahmutov opened 5 years ago

bahmutov commented 5 years ago

If the CPU of the CI container is underpowered, video recording can stutter or even freeze completely as reported in #4722

It would be nice to detect when this happens and show a warning message in the terminal after the spec completes.

AndyDonits commented 2 years ago

@bahmutov Hey, I am using Cypress version 9.5.2 and I get the same problem. Videos are frozen on the cypress dash. Sometimes the videos pass to another frame but are still frozen. We run our tests using GitHub actions on Linux I've added an example of the video.

https://user-images.githubusercontent.com/96722829/162184044-86efb6dd-2013-4b11-9597-5e90a11bb143.mp4

Thanks in advance, Andrey

bahmutov commented 2 years ago

Sure, I would love to help but I cannot suggest anything but lower the window resolution or finding a bigger CI machines

Sent from my iPhone

On Apr 7, 2022, at 06:58, Andrey Donits @.***> wrote:

 @bahmutov Hey, I am using Cypress version 9.5.2 and I get the same problem. Videos are frozen on the cypress dash. Sometimes the videos pass to another frame but are still frozen. We run our tests using GitHub actions on Linux I've added an example of the video.

https://user-images.githubusercontent.com/96722829/162184044-86efb6dd-2013-4b11-9597-5e90a11bb143.mp4

Thanks in advance, Andrey

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

slavoroi commented 2 years ago

Increasing our aws machines from m4.large (2 CPUS and 8GB memory) => m4.xlarge (4 CPUS and 16GB memory) solved the issue. We had some instances that were smaller so we had the issue, once all of our instances became bigger it solved the issue.

Aravinth-Earth commented 2 years ago

@bahmutov @jennifer-shehane Is there any standard recommendations form Cypress, as an minimal system configuration to have for CI machine ?

I noticed there was a issue #5317 asking for same info, but not properly addressed (in my opinion). Also myself posted a question in stack-overflow forum nearly a month back, But got no response yet! Hence posting it again here!

bahmutov commented 2 years ago

It all depends on the CI and the app and the browser so it can only be determined experimentally by you when running your tests. If you find dropped tests and app crashing, time to try a larger machine.

Sent from my iPhone

On May 30, 2022, at 11:19, Aravinth @.***> wrote:

 @bahmutov @jennifer-shehane Is there any standard recommendations form Cypress, as an minimal system configuration to have for CI machine ?

I noticed there was a issue #5317 asking for same info, but not properly addressed (in my opinion). Also myself posted a question in stack-overflow forum nearly a month back, But got no response yet! Hence posting it again here!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.