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: electron crashing prematurely when window closes prematurely while browser launch process is ongoing #27167

Merged
merged 3 commits into from Jun 29, 2023

Conversation

AtofStryker
Copy link
Contributor

@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 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

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.

@@ -12,6 +12,8 @@ _Released 07/05/2023 (PENDING)_
- Fixed issues where commands would fail with the error `must only be invoked from the spec file or support file`. Fixes [#27149](https://github.com/cypress-io/cypress/issues/27149).
- 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
Contributor 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
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
78 of 79 checks passed
@AtofStryker AtofStryker deleted the chore/fix_electron_w_o_video branch June 29, 2023 18:30
@cypress-bot
Copy link
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.

None yet

3 participants