Skip to content
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

breaking: remove the shouldUploadVideoOnPass configuration #27010

Merged

Conversation

AtofStryker
Copy link
Contributor

@AtofStryker AtofStryker commented Jun 13, 2023

Additional details

see #26899 for details/rationale

Steps to test

How has the user experience changed?

PR Tasks

@@ -160,7 +160,7 @@ plugin stdout
│ Pending: 1 │
│ Skipped: 0 │
│ Screenshots: 1 │
│ Video: true
│ Video: false
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

snapshot is different because we are now deleting the video entirely, which is slightly different than videoUploadOnPasses, which keeps the video but skips compression and does NOT upload it to the cloud.

@AtofStryker AtofStryker force-pushed the breaking/video_compression_false branch from 50609b0 to 1d57c26 Compare June 20, 2023 18:07
Base automatically changed from breaking/video_compression_false to release/13.0.0 June 20, 2023 19:08
@AtofStryker AtofStryker force-pushed the breaking/remove_should_upload_video_on_pass branch from 0110c49 to 0566edc Compare June 20, 2023 19:18
@AtofStryker AtofStryker force-pushed the breaking/remove_should_upload_video_on_pass branch from 0566edc to 34fdb04 Compare June 20, 2023 19:34
@cypress
Copy link

cypress bot commented Jun 20, 2023

11 flaky tests on run #47963 ↗︎

0 10028 986 0 Flakiness 11

Details:

run ci
Project: cypress Commit: abef79b169
Status: Passed Duration: 14:16 💡
Started: Jun 21, 2023 3:10 PM Ended: Jun 21, 2023 3:24 PM
Flakiness  specs_list_latest_runs.cy.ts • 1 flaky test • app-e2e

View Output Video

Test Artifacts
App/Cloud Integration - Latest runs and Average duration > when no runs are recorded > shows placeholders for all visible specs Output Screenshots
Flakiness  cypress-origin-communicator.cy.ts • 1 flaky test • app-e2e

View Output Video

Test Artifacts
Cypress In Cypress Origin Communicator > cy.origin passivity with app interactions > passes upon test reload mid test execution Output Screenshots
Flakiness  cypress/cypress.cy.js • 3 flaky tests • 5x-driver-electron

View Output Video

Test Artifacts
... > correctly returns currentRetry Output
... > correctly returns currentRetry Output
... > correctly returns currentRetry Output
Flakiness  commands/net_stubbing.cy.ts • 3 flaky tests • 5x-driver-webkit

View Output Video

Test Artifacts
network stubbing > intercepting request > can delay and throttle a StaticResponse Output
... > with `times` > only uses each handler N times Output
... > stops waiting when an xhr request is canceled Output
Flakiness  cypress/cypress.cy.js • 3 flaky tests • 5x-driver-webkit

View Output Video

Test Artifacts
... > correctly returns currentRetry Output
... > correctly returns currentRetry Output
... > correctly returns currentRetry Output

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@AtofStryker AtofStryker merged commit 8607e65 into release/13.0.0 Jun 21, 2023
@AtofStryker AtofStryker deleted the breaking/remove_should_upload_video_on_pass branch June 21, 2023 15:37
@brian-mann
Copy link
Member

@AtofStryker I know that this PR is already merged - however even though this is a breaking change, you can't just remove this config and silently swallow config that has that property present.

In fact if you look at other breaking config change patterns - whenever we remove/rename config, we always leave a "check" in there that if the removed property still exists in the config we throw a nice error saying that this was removed as of vX.X.X.

If you look at other proxies for this pattern you'll find them in the code and in the error messages. Basically what we don't want to have happen is that this property is removed, but you keep the old value around and yet it no longer "works" or applies, and there's nothing prompting you that something is wrong. By throwing an error the user gets a very loud message indicating this was removed. The error message can also naturally guide them to know what to do in response to it being removed.

@brian-mann
Copy link
Member

Here's examples of that pattern. If you look at the error messages you can see the pattern of "guiding the users to recover from the failure"

Screen Shot 2023-06-28 at 12 29 41 PM Screen Shot 2023-06-28 at 12 29 57 PM Screen Shot 2023-06-28 at 12 30 12 PM

@AtofStryker
Copy link
Contributor Author

@brian-mann apologies for missing that. I created #27158 which should warn the user in the terminal if the videoUploadOnPasses is present so the user can remove it. I didn't elect to error since the config option is somewhat passive, but if you feel different let me know.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Aug 29, 2023

Released in 13.0.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.0.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Aug 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants