Skip to content

fix: electron crashing prematurely when window closes prematurely while browser launch process is ongoing#27167

Merged
AtofStryker merged 3 commits into
developfrom
chore/fix_electron_w_o_video
Jun 29, 2023
Merged

fix: electron crashing prematurely when window closes prematurely while browser launch process is ongoing#27167
AtofStryker merged 3 commits into
developfrom
chore/fix_electron_w_o_video

Conversation

@AtofStryker
Copy link
Copy Markdown
Collaborator

@AtofStryker AtofStryker commented Jun 29, 2023

  • Closes N/A

Additional details

Fixes an issue where electron is crashing the server process when the window is closed mid launch process, which seems to always happen when video is false. My guess is the additional process time with video set to true gives the window time to close after the launch process occurs, which is a non issue. This is only exposed when video is false, which is very common on the release/13.0.0 branch and is causing severe flake

Steps to test

How has the user experience changed?

PR Tasks

@AtofStryker AtofStryker changed the title Chore/fix electron w o video chore: fix electron crashing prematurely when window closes prematurely while browser launch process is ongoing Jun 29, 2023
@AtofStryker AtofStryker force-pushed the chore/fix_electron_w_o_video branch from e0ef3b6 to 22f8970 Compare June 29, 2023 15:28
@AtofStryker AtofStryker changed the title chore: fix electron crashing prematurely when window closes prematurely while browser launch process is ongoing fix: electron crashing prematurely when window closes prematurely while browser launch process is ongoing Jun 29, 2023
@cypress
Copy link
Copy Markdown

cypress Bot commented Jun 29, 2023

Passing run #48408 ↗︎

0 214 20 0 Flakiness 0

Details:

chore: add changelog entry
Project: cypress Commit: 22f89707b8
Status: Passed Duration: 10:47 💡
Started: Jun 29, 2023 4:16 PM Ended: Jun 29, 2023 4:27 PM

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

Comment thread cli/CHANGELOG.md
- Fixed an issue where chrome was not recovering from browser crashes properly. Fixes [#24650](https://github.com/cypress-io/cypress/issues/24650).
- Fixed a race condition that was causing a GraphQL error to appear on the [Debug page](https://docs.cypress.io/guides/cloud/runs#Debug) when viewing a running Cypress Cloud build. Fixed in [#27134](https://github.com/cypress-io/cypress/pull/27134).
- Fixed a race condition in electron where the test window exiting prematurely during the browser launch process was causing the whole test run to fail. Addressed in [#27167](https://github.com/cypress-io/cypress/pull/27167).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change

Copy link
Copy Markdown
Collaborator

@ryanthemanuel ryanthemanuel left a comment

Choose a reason for hiding this comment

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

Nice work. Thanks for getting this one figured out!

@AtofStryker AtofStryker merged commit f05f623 into develop Jun 29, 2023
@AtofStryker AtofStryker deleted the chore/fix_electron_w_o_video branch June 29, 2023 18:30
@cypress-bot
Copy link
Copy Markdown
Contributor

cypress-bot Bot commented Jul 6, 2023

Released in 12.17.0.

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

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

3 participants