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

fix: no longer use capture script url as default upload url for test replay recordings #29512

Merged
merged 4 commits into from
May 17, 2024

Conversation

cacieprins
Copy link
Contributor

  • Closes

Additional details

When Cloud responds to the instance results POST with an empty protocol upload url, the artifact upload logic was defaulting to using the URL of the capture protocol script. This URL does not accept uploads, and was causing HTTP errors similar to Failed to upload after 1 attempts. Errors: Request Entity Too Large. Instead of attempting to upload to this URL, Cypress will now report to stdout that the upload URL for Test Replay was missing or invalid, and it cannot upload the recording. Further investigation is necessary into why Cypress Cloud is returning an undefined upload url for runs that have Test Replay enabled.

Steps to test

How has the user experience changed?

PR Tasks

@cacieprins cacieprins marked this pull request as ready for review May 13, 2024 21:00
Copy link

cypress bot commented May 13, 2024

9 flaky tests on run #55469 ↗︎

0 29194 1328 0 Flakiness 9

Details:

Merge branch 'develop' into cacie/fix/use-correct-upload-url-always
Project: cypress Commit: 498ec0f034
Status: Passed Duration: 20:30 💡
Started: May 17, 2024 2:16 PM Ended: May 17, 2024 2:36 PM
Flakiness  e2e/origin/cookie_login.cy.ts • 1 flaky test • 5x-driver-firefox

View Output

Test Artifacts
... > past Max-Age, before Expires -> not logged in
    </td>
  </tr></table>
Flakiness  commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-electron

View Output

Test Artifacts
... > stops waiting when an fetch request is canceled Test Replay
Flakiness  project-setup.cy.ts • 1 flaky test • launchpad-e2e

View Output

Test Artifacts
Launchpad: Setup Project > switch testing types > takes the user to first step of e2e setup when switching from app Test Replay Screenshots
Flakiness  commands/querying/querying.cy.js • 1 flaky test • 5x-driver-chrome

View Output

Test Artifacts
... > throws after timing out after a .wait() alias reference Test Replay
Flakiness  commands/waiting.cy.js • 1 flaky test • 5x-driver-chrome

View Output

Test Artifacts
... > errors > throws when route is never resolved Test Replay

The first 5 flaky specs are shown, see all 7 specs in Cypress Cloud.

Review all test suite changes for PR #29512 ↗︎

@cacieprins cacieprins merged commit b62fc3f into develop May 17, 2024
80 of 82 checks passed
@cacieprins cacieprins deleted the cacie/fix/use-correct-upload-url-always branch May 17, 2024 15:27
@AtofStryker AtofStryker mentioned this pull request May 21, 2024
3 tasks
@cypress-bot
Copy link
Contributor

cypress-bot bot commented May 21, 2024

Released in 13.10.0.

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

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators May 21, 2024
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.

None yet

3 participants