Video Recording not working in latest release
See original GitHub issueI just updated to today’s new release (https://github.com/tnicola/cypress-parallel/releases/tag/0.5.0) and cypress video recording is no longer working
Error from console:
13:44:46 Warning: We failed to record the video.
13:44:46
13:44:46 This error will not alter the exit code.
13:44:46
13:44:46 Error: ffmpeg exited with code 1: /home/ubuntu/workspace/[branch]/cypress/videos/[filepath].mp4: No such file or directory
13:44:46
13:44:46 at ChildProcess.<anonymous> (/home/ubuntu/.cache/Cypress/8.3.1/Cypress/resources/app/packages/server/node_modules/fluent-ffmpeg/lib/processor.js:182:22)
13:44:46 at ChildProcess.emit (events.js:315:20)
13:44:46 at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
I’m not sure if this error is actually being caused by the new changes to this package or is an issue in cypress that was suddenly uncovered by the recent changes. I found a related issue here where other people seem to have a similar issue: https://github.com/cypress-io/cypress/issues/9128#issuecomment-896401759
reproduction steps:
in cypress.json set "video": true,
and then run cypress-parallel via command line
info: Cypress: v8.3.0 cypress-parallel: v0.5.0 run environment: ci/cypress run/jenkins and my local machine’s macOS browser: electron 91
possibly relevant:
"viewportWidth": 1920,
"viewportHeight": 1080
https://github.com/cypress-io/cypress/issues/3491#issuecomment-464222564
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top GitHub Comments
I left the project/team where I added Cypress tests, so I haven’t gotten the chance to revisit this issue… I ended up disabling video recordings. Would test it if there’s a known fix that addresses this issue though? @tnicola
For anyone getting this error. Make sure to add
"trashAssetsBeforeRuns": false
in your cypress config. Otherwise each instance of cypress will try to clear out your results folders. Once I added that to my config the error no long showed up.