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

feat: swap websocket transport with cdp add binding/evaluate #27592

Merged
merged 136 commits into from Aug 26, 2023

Conversation

ryanthemanuel
Copy link
Collaborator

@ryanthemanuel ryanthemanuel commented Aug 18, 2023

Additional details

This PR:

  • Swaps out socket io transport with CDP transport on chromium browsers.
  • Cleans up some of the CDP connect/disconnect logic

Steps to test

This can be tested by just running Cypress to ensure that things worked as previously

How has the user experience changed?

n/a

PR Tasks

@cypress
Copy link

cypress bot commented Aug 18, 2023

4 flaky tests on run #50510 ↗︎

0 5352 78 0 Flakiness 4

Details:

fix test
Project: cypress Commit: ede32c504c
Status: Passed Duration: 15:52 💡
Started: Aug 26, 2023 1:41 AM Ended: Aug 26, 2023 1:56 AM
Flakiness  commands/querying/querying.cy.js • 1 flaky test • 5x-driver-electron

View Output Video

Test Artifacts
... > throws when alias property is `0` Test Replay Output
Flakiness  cypress/cypress.cy.js • 3 flaky tests • 5x-driver-electron

View Output Video

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

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

// @ts-ignore
import * as engineParser from 'engine.io-parser'

export const encode = (data: any, namespace: string): Promise<string> => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Add some error handling

Copy link
Contributor

Choose a reason for hiding this comment

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

Are you planning to add error handling each of the places that encode and decode are used?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah I was trying to think through that. I'm not sure what else we can do other than log. I'll push that for now, but I may chat with @brian-mann to see if he has additional thoughts

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Spoke with @brian-mann offline. We're going to let these bubble as they would be errors that are unrecoverable.

@jennifer-shehane jennifer-shehane requested review from chrisbreiding and removed request for mschile August 25, 2023 18:53
@ryanthemanuel ryanthemanuel merged commit 228a117 into release/13.0.0 Aug 26, 2023
77 of 80 checks passed
@ryanthemanuel ryanthemanuel deleted the ryanm/feat/swap-websockets-with-cdp branch August 26, 2023 02:05
@cypress cypress bot mentioned this pull request Aug 26, 2023
3 tasks
@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.

None yet

4 participants