Skip to content

ci: suppress macOS 'reopen windows' prompt for Electron test bundle - #51496

Merged
jkleinsc merged 1 commit into
42-x-yfrom
trop/42-x-y-bp-ci-suppress-macos-reopen-windows-prompt-for-electron-test-bundle-1777974326023
May 5, 2026
Merged

jkleinsc merged 1 commit into
42-x-yfrom
trop/42-x-y-bp-ci-suppress-macos-reopen-windows-prompt-for-electron-test-bundle-1777974326023

Conversation

@trop

@trop trop Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

Backport of #51488

See that PR for details.

Notes: none

Tests spawn child Electron.app instances and kill them with SIGINT (e.g.
startRemoteControlApp). After enough abnormal exits of the same bundle ID,
AppKit shows a modal "...unexpectedly quit while reopening windows. Do you
want to try to reopen its windows again?" alert inside the
open-application AppleEvent handler. That handler runs before
applicationDidFinishLaunching: is posted, so the alert blocks
app.whenReady() forever and the spawned fixture hangs until the job times
out.

Setting ApplePersistenceIgnoreState for com.github.Electron disables the
persistent-UI machinery (including this prompt) for every Electron launch
in the test job, mirroring the existing CrashReporter DialogType
suppression directly above.

Fixes #51462

Co-authored-by: Sam Attard <[email protected]>
@trop
trop Bot requested a review from a team as a code owner May 5, 2026 09:45
@trop
trop Bot requested a review from MarshallOfSound May 5, 2026 09:45
@trop trop Bot added 42-x-y backport This is a backport PR semver/none labels May 5, 2026
@jkleinsc

jkleinsc commented May 5, 2026

Copy link
Copy Markdown
Member

Merging as CI failure unrelated to PR change.

@jkleinsc
jkleinsc merged commit a61c92c into 42-x-y May 5, 2026
228 of 236 checks passed
@jkleinsc
jkleinsc deleted the trop/42-x-y-bp-ci-suppress-macos-reopen-windows-prompt-for-electron-test-bundle-1777974326023 branch May 5, 2026 20:14
@release-clerk

release-clerk Bot commented May 5, 2026

Copy link
Copy Markdown

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants