-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
5.5.0 regression of 'We failed to record the video' error in Firefox when running 2 spec files #9128
Comments
Another reproducible example https://app.circleci.com/pipelines/github/cypress-io/cypress-docker-images/365/workflows/45962043-b650-4df3-8edf-fc3da95ad8f7/jobs/22074 Using Docker image cypress/browsers:node14.15.0-chrome86-ff82 |
Same outcome, with similar error happens here in some cases when running tests in parallel. Using
BTW: Problem disappears as soon as I enable debug output... For now running with debug output, but hoping this will be resolved.
|
I have the same issue. I tried updating Firefox to 84.0.1, but it didn't help. Downgrading to 79.0 did help - Cypress forces a GC there, causing additional time to make everything work (I assume). |
I'm also seeing this issue on version 5.6 |
I have the same issue with version 6.3 |
I have the same issue running when running in parallel with docker cypress/base:ubuntu16-12.13.1 |
Having a similar issue on
|
Also occuring on
|
Also occurs with Chrome on 6.5.0 |
Started to happen with Chrome 89, was working fine with Chrome 88
|
Also occurs on |
|
Have the same problem with Chrome 89. Found a quick temp fix is to add the below to the cypress config: |
I am experiencing the same problem on |
also getting it on it no longer fails the runs so that's nice. |
@ahoad did u play with video compression options? I would try myself but my builds don't always have that issue, seems a bit random :( |
humm, it did fail the build now :(
|
This might help someone.
|
@VickyLund I saw something similar today: we don't have parallel tests but the error appeared after a very short suit of tests after a long one, making me think that ffmpeg is still working on the previous video and when it's called again the error appears |
I just started having this issue as well. I am using |
@jarretmoses adding |
@jpita Im saving that as a last resort as the recordings are important for debugging. |
If the issue is the chrome version you can force the version in CI, right? |
We are experiencing this issue using Electron when trying to run in parallel on Jenkins. Cypress v6.5.0 |
@jpita Yes, you can change the version you're using/downloading during setup e.g. from |
@VickyLund - that's an interesting idea. I'm running Cypress fully dockerized and I'm having trouble with Firefox newer than 79. I didn't try Chrome 89 yet, but I can see that it has some issues. Maybe there is a bug in handling FFMPEG in Cypress? |
@meganwebmaster yeah that's my theory as well. |
@jpita - I think FFMPEG is called after every test to process the video, not after a processed file. |
@megawebmaster I see it in the command line being called after each spec.js file, but I might be wrong |
this seems to have fixed it for me (still testing but 10 clean runs so far):
|
Got the same problem when the workflow started using Chrome 89. I had to disable recordings for it to work, which is more than a little bit annoying. Thanks @jpita! |
even with |
I'm facing ffmpeg error with Cypress version : 7.5.0 . Do we have a fix were we can have parallel support + video recording ?? Below are the debug logs from cypress
|
So, this issue has become a bit of a catchall for ffmpeg errors in general, but there is at least one case that may have an explanation with a hint from #9128 (comment) Theory on some of these ffmpeg errorsCypress trashes the video and screenshot folder by default before each run when run via We haven't verified this completely but this seems like a scenario that could happen. SuggestionSet the Cypress config property Please let us know if this resolved any of your issues and we can come up with a larger solution. |
@jennifer-shehane This does not seem to fix the issue for me on Cypress 8.2.0 on GitHub actions with browser Firefox. The video processing still fails (and I am running them sequentially). The timeout would suggest that cypress gets killed before the video is finished processing. UPDATE: The full error text (after each test run) is: Warning: We failed processing this video.
This error will not alter the exit code.
TimeoutError: operation timed out
at afterTimeout (/github/home/.cache/Cypress/8.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/timers.js:46:19)
at Timeout.timeoutTimeout [as _onTimeout] (/github/home/.cache/Cypress/8.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/timers.js:76:13)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7) |
@jennifer-shehane - I'm running into the issue still with that flag in Jenkins
|
Otherwise we try running it as an integration test - which *seems* harmless, but appears to run afoul of a weird bug with video recording [1] [1] cypress-io/cypress#9128
We are also seeing this problem pop up in our gitlab pipelines with 8.3.0. We are using Electron 91 and only have videos set to save upon failure: |
For me the same happens for 8.6.0 in combination with Jenkins & Kubernetespods.
|
trashAssests to false helped |
Also running into a similar issue on Cypress 8.6 / Firefox 94 / Jenkins 2.316
|
Reproduces for me on the official Recording and uploading work in Chrome, but not in Firefox. Various facts:
A sample invocation command:
The
Here's a sample of the output for the error:
With
|
OK, that output from Looks like Firefox/Cypress is never outputting any video data into the input file/pipe that ffmpeg is reading from. Maybe something in Firefox's remote-control APIs changed? |
Found this issue today, I had posted a similar issue on 8th October here - #18415 . I've also added steps to reproduce this. |
Also having the above^ issue. Running Cypress
I ran with
(No additional I have Potentially unrelated, but I see the following output at the start of my run as well:
|
I'm also having the same problem as mentioned above. Running Cypress
I've tried to use the I've also tried to set up So, there I'll add something that could be valuable for someone facing the same problem or for Cypress team investigation. My problem is directly related to Firefox and its version . There are the images that I've used and the result that I've obtained in the matter of eliminating the video problem. With those images mentioned, I've faced the problem with recording the videos:
With those images mentioned, I've not faced the same problem: I may find important to add, that when using |
@laerteneto, @rubencodes, @ViniciusResende - It's an unfortunate state of affairs, but video in Cypress is just plain broken in FF93+. Pranajv1001 has created #18415, and I've started looking into the problem over there. I'm going to suggest we move conversation to that issue, just so we have one bug for tracking the problem. Closing this issue does not reflect a belief that this isn't a real issue, or a lack of interest in fixing it! It is both real and important. Just trying to consolidate the conversation into one place. |
In my case changing docker image to |
Regression of this fix #6408
Current behavior
We are running Cypress via Docker in our Gitlab CI/CD and it seems that the video recording issue is back with 5.5.0, reported here #6408 for Cypress 4.x. The specific image we are using is
cypress/included:5.5.0@sha256:1bade581de1f7ea02b8a000f4526ded862e020adfd5f5b95cf58eb884cb344d3
Note this only affects Firefox, not Chrome.
Desired behavior
Test code to reproduce
Code from here, running on Cypress 5.5.0 replicates this: #6408
Versions
cypress/included:5.5.0@sha256:1bade581de1f7ea02b8a000f4526ded862e020adfd5f5b95cf58eb884cb344d3
The text was updated successfully, but these errors were encountered: