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: runIfWaitingForDebugger when targets are reloaded after crashing #28254

Merged
merged 5 commits into from Nov 7, 2023

Conversation

ryanthemanuel
Copy link
Collaborator

Additional details

In terms of CDP events, shared workers effectively crash when the page is reloaded. When that crash happens, we don't get any new Target events, but instead get a Target.targetReloadedAfterCrash event. However, since we are attaching to targets in a paused state, we need to make sure and runIfWaitingForDebugger when this happens.

Steps to test

The change to the system test on this PR shows tests the problem

How has the user experience changed?

Shared workers will no longer hang on cy.reload

PR Tasks

Copy link

cypress bot commented Nov 6, 2023

27 flaky tests on run #52171 ↗︎

0 28268 1346 0 Flakiness 27

Details:

Merge branch 'develop' into ryanm/fix/issue-with-reloaded-shared-workers
Project: cypress Commit: 48f4ec3747
Status: Passed Duration: 18:46 💡
Started: Nov 6, 2023 10:52 PM Ended: Nov 6, 2023 11:10 PM
Flakiness  e2e/origin/navigation.cy.ts • 1 flaky test • 5x-driver-firefox

View Output Video

Test Artifacts
... > establishes foobar spec bridge Output
Flakiness  e2e/origin/commands/assertions.cy.ts • 1 flaky test • 5x-driver-firefox

View Output Video

Test Artifacts
cy.origin assertions > #consoleProps > .should() and .and() Output
Flakiness  cypress/cypress.cy.js • 3 flaky tests • 5x-driver-firefox

View Output Video

Test Artifacts
... > correctly returns currentRetry Output
... > correctly returns currentRetry Output
... > correctly returns currentRetry Output
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 Test Replay Output Screenshots
Flakiness  e2e/origin/cookie_login.cy.ts • 1 flaky test • 5x-driver-electron

View Output Video

Test Artifacts
cy.origin - cookie login > Max-Age > past max-age -> not logged in Test Replay Output

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

Review all test suite changes for PR #28254 ↗︎

@ryanthemanuel ryanthemanuel merged commit d70ffea into develop Nov 7, 2023
80 of 82 checks passed
@ryanthemanuel ryanthemanuel deleted the ryanm/fix/issue-with-reloaded-shared-workers branch November 7, 2023 13:37
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Nov 8, 2023

Released in 13.5.0.

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

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

Shared Workers no longer work after page reload
3 participants