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: issue with service worker attachments #28147

Merged

Conversation

ryanthemanuel
Copy link
Collaborator

@ryanthemanuel ryanthemanuel commented Oct 26, 2023

Additional details

When we added logic to ensure we were attaching to CDP traffic we were not resilient enough to handle situations where the worker targets would attach and the immediately be closed (this can happen due to navigations or refreshing of the page). To fix this we will catch the errors. There's nothing really to do if the targets have been disposed anyway.

Steps to test

n/a

How has the user experience changed?

PR Tasks

cli/CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Emily Rohrbough <[email protected]>
@cypress
Copy link

cypress bot commented Oct 26, 2023

4 flaky tests on run #51897 ↗︎

0 5354 80 0 Flakiness 4

Details:

Update cli/CHANGELOG.md
Project: cypress Commit: 376731116e
Status: Passed Duration: 14:34 💡
Started: Oct 26, 2023 1:40 PM Ended: Oct 26, 2023 1:55 PM
Flakiness  cypress/cypress.cy.js • 3 flaky tests • 5x-driver-chrome:beta

View Output Video

Test Artifacts
... > correctly returns currentRetry Test Replay Output
... > correctly returns currentRetry Test Replay Output
... > correctly returns currentRetry Test Replay Output
Flakiness  e2e/origin/snapshots.cy.ts • 1 flaky test • 5x-driver-chrome:beta

View Output Video

Test Artifacts
cy.origin - snapshots > e2e log verification > Does not take snapshots of XHR/fetch requests from secondary origin if the wrong origin is visited / origin mismatch, but instead the primary origin (existing behavior) Test Replay Output

Review all test suite changes for PR #28147 ↗︎

@ryanthemanuel ryanthemanuel merged commit 15f7300 into develop Oct 26, 2023
80 of 82 checks passed
@ryanthemanuel ryanthemanuel deleted the ryanm/fix/crash-with-service-worker-attachments branch October 26, 2023 14:16
@MikeMcC399
Copy link
Contributor

@ryanthemanuel

@jennifer-shehane
Copy link
Member

Thanks @MikeMcC399, we're still working on getting a release out.

@MikeMcC399
Copy link
Contributor

Shouldn't the https://github.com/apps/cypress-bot run to mark this as released?

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 31, 2023

Released in 13.4.0.

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

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