-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Remove videoUploadOnPasses as a configuration option #26899
Comments
The code for this is done, but this has yet to be released. We'll update this issue and reference the changelog when it's released. |
Why not just change the config option name to videoUploadOnlyOnFail, since that is what it does. |
@cdebro Can you explain the use case for wanting to keep a passing video locally and preventing it from uploading to the Cloud? Where in this situation there is no extra time taken to upload to the Cloud and no storage charges incurred on the Cypress Cloud for uploaded videos. |
@jennifer-shehane - I think that the original post conflates a few ideas.
I don't think that the setting is intentionally used to toggle video compression. To me, video compression control should be an obvious setting that simply indicates that use case. e.g. videoCompression = With that, the Cypress documentation directly indicates that using the --record flag affects uploading video to the cloud. Here is that passage. So, as indicated and tested, the setting is used to control the upload of video for failed tests only. It does not control the local video storage. With that, bang for the buck comes from analyzing failed videos. In general, we don't look at passing test's videos. We do look at failing test videos as that have potential inform a solution regarding the failed state. So, the goal is to clarify what this setting does and doesn't do in a way that retains the feature. Cypress documentation: Ok - that above part is just fine. No need to change. Cypress documentation: The above statement could be more clear. As written, it indicates that videos are only processed in that case that a test fails when set to false; meaning that both passed and failed tests are processed only in the case where a test fails. Clearly this is not the case. Change the sentence such that it indicates that only failed test videos are processed and uploaded. Of course that above verbiage requires a logic change but it's worth it for the clarity. Add to that sentence the following. Finally, change the flag as previously mentioned, to that shown below so as to clearly indicate the behavior. Control of local storage should be addressed separately and in a way that is easy and obvious to consume. |
@jennifer-shehane - any feedback on my comment? |
@cdebro I agree the documentation could have used more clarity upfront. The |
Released in Cypress 13.0.0. |
What would you like?
Remove
videoUploadOnPasses
configuration option as a breaking change for all users.Why is this needed?
This option itself only opens one extra configuration option, to skip compression and upload but save the video locally. Keeping the option introduces points of confusion for all users on what this option truly does and we expect it is used as a quick way to turn off compression for videos no one cares about.
This option is much less relevant with videoCompression being turned off for all users by default and videos being turned off for all users by default.
If someone wanted to skip compression/upload only for passing videos, they could delete the video moving forward. They could also copy the video elsewhere and delete the local video if they so desired to keep the video and also skip compression/upload. Overall, we think having code as configuration is better than a single, confusing config option.
Other
No response
The text was updated successfully, but these errors were encountered: