Video upload takes a long time, extending action runs from 10 minutes to over 50 minutes
See original GitHub issueWe use http://dashboard.cypress.io/ for free right now. We have observed that the video recording feature seems to result in our tests taking an exceptionally long time to run, but this wasn’t always the case.
When we first setup the dashboard, our tests took about 10 minutes to run. But after some weeks of running (we run probably 10k+ tests a month, which is well over the free tier limit) we started to notice that our test runs took anywhere from 20 minutes to 1 hour and 20 minutes to run. We use Github Actions with Github’s workers to run our tests.
After disabling the video recording feature, with the following setting:
`videoUploadOnPasses: false`
we stopped experiencing this issue.
Again, this wasn’t always an issue. Sometimes it is totally fine, but others it takes a really long time.
We were theorizing that we might be getting throttled when uploading videos, since we aren’t paying anything for cypress dashboard after all. Could this be the case? If so, perhaps Cypress could just reject video uploads for test runs beyond the free tier limit?
– This isn’t a blocker or anything for us, we just wanted to inform you of the behavior. Love the product so far!
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
I can add some further context here, initially we upgraded cypress from v6.8.0 to 7.1.0, and started seeing massive increases in timing to our CI pipelines for Cypress, as @pgerlich mentioned it went from ~14 mins to ~50-70mins, but would sometimes finish the CI pipeline in ~20mins. The actual tests time was usually around the 20 min mark, with something else having to account for the extra 30-50 mins.
We theorized this was likely due to one or both of the following reasons:
I’m not sure which may have been the real problem, as I never took the time to sit with a stopwatch and time our CI output, and this extra timing wasn’t happening locally likely due to not having the resource constraint that github action containers have.
In the implemented fix, the only changes made were to set
videoUploadOnPasses: false
, and bumping the cypress version to v7.3.0, as I know the team had addressed some performance items in v7.2.0. The version bump alone didn’t seem to be enough here, as we were still seeing 50min builds after the bump.Any insight into the real issue here given this? Since you mentioned uploads are never throttled, was there any changes to the default compression for videos that may have been responsible for the time, or could this be some other issue we weren’t aware of?
Hey @pgerlich, just following up to see if there’s any new information so we can investigate the video processing timing.