Skip to content

devops(electron): suppress macOS reopen windows prompt in tests#41344

Merged
dgozman merged 1 commit into
microsoft:mainfrom
dgozman:devops-electron-macos-reopen-prompt
Jun 17, 2026
Merged

devops(electron): suppress macOS reopen windows prompt in tests#41344
dgozman merged 1 commit into
microsoft:mainfrom
dgozman:devops-electron-macos-reopen-prompt

Conversation

@dgozman

@dgozman dgozman commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Disable macOS's persistent-UI machinery for the Electron test bundle so the "reopen windows" modal doesn't hang the fixtures after Electron processes are killed with SIGINT.
  • Mirrors electron/electron@c16c6da.

Tests spawn many Electron instances and kill them with SIGINT. After
enough abnormal exits of the same bundle id, macOS shows a modal asking
to reopen windows, which is handled inside the AppleEvent handler before
launch finishes and hangs app.whenReady() until the fixtures time out.
Disable the persistent-UI machinery on macOS, mirroring
electron/electron@c16c6da
@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

7354 passed, 1122 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

2 flaky ⚠️ [chromium-library] › library/popup.spec.ts:260 › should not throw when click closes popup `@chromium-ubuntu-22.04-node20`
⚠️ [chromium-library] › library/popup.spec.ts:260 › should not throw when click closes popup `@chromium-ubuntu-22.04-node22`

39607 passed, 743 skipped


Merge workflow run.

@dgozman dgozman merged commit 3c15446 into microsoft:main Jun 17, 2026
45 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants