Repository navigation
Description
Possibly related to #51279 which landed right before the tests started failing. Example failures, all on macOS:
-
fix: respect iframe sandbox flags on the OpenURL navigation path (Use Releases #51… electron/get getCachePath function Return error path #21519
landing in main: https://github.com/electron/electron/actions/runs/25233403438/job/73999052689 -
fix: preserve mouse hook handle when UnhookWindowsHookEx fails (fix: preserve mouse hook handle when UnhookWindowsHookEx fails #51098) landing in main: https://github.com/electron/electron/actions/runs/25185406102/job/73847499770
-
fix: do not pass a DesktopMediaList* to DesktopCapturer::OnListReady() (fix: do not pass a
DesktopMediaList* to DesktopCapturer::OnListReady()#51399) - https://github.com/electron/electron/actions/runs/25222125028/job/73962440857 -
feat: rounded corners for frameless windows on Linux fix: set enable_negotiate_port to false in allowNTLMCredentialsForDomains #21571 PR https://github.com/electron/electron/actions/runs/25264134193/job/74077957739
-
fix: remove 1px line from the top of frameless windows on Linux How add Print preview feature within Electron Application? currently using PDF.Js to open the documents #21565 https://github.com/electron/electron/actions/runs/25262289857/job/74073960920
-
chore: bump chromium to 149.0.7820.0 (main) https://github.com/electron/electron/actions/runs/25241520252/job/74064125671
Failure in test: "esm renderer process nodeIntegration without context isolation should use import.meta callback handling from Node.js for Node.js modules"
Error: Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/runner/work/electron/electron/src/electron/spec/esm-spec.ts)
at createTimeoutError (/Users/runner/work/electron/electron/src/electron/spec/node_modules/mocha/lib/errors.js:498:15)
at Test.Runnable._timeoutError (/Users/runner/work/electron/electron/src/electron/spec/node_modules/mocha/lib/runnable.js:429:10)
Retrying test (1/3)...
Failure in test: "esm renderer process nodeIntegration without context isolation should use import.meta callback handling from Node.js for Node.js modules"
Error: Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/runner/work/electron/electron/src/electron/spec/esm-spec.ts)
at createTimeoutError (/Users/runner/work/electron/electron/src/electron/spec/node_modules/mocha/lib/errors.js:498:15)
at Test.Runnable._timeoutError (/Users/runner/work/electron/electron/src/electron/spec/node_modules/mocha/lib/runnable.js:429:10)
Retrying test (2/3)...
Failure in test: "esm renderer process nodeIntegration without context isolation should use import.meta callback handling from Node.js for Node.js modules"
Error: Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/runner/work/electron/electron/src/electron/spec/esm-spec.ts)
at createTimeoutError (/Users/runner/work/electron/electron/src/electron/spec/node_modules/mocha/lib/errors.js:498:15)
at Test.Runnable._timeoutError (/Users/runner/work/electron/electron/src/electron/spec/node_modules/mocha/lib/runnable.js:429:10)
Retrying test (3/3)...
not ok 912 esm renderer process nodeIntegration without context isolation should use import.meta callback handling from Node.js for Node.js modules
Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/runner/work/electron/electron/src/electron/spec/esm-spec.ts)
Error: Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/runner/work/electron/electron/src/electron/spec/esm-spec.ts)
I've opened a couple of related test fixes at #51432 and #51441 that make the fixtures less brittle, but I think there is still a root problem here.
CC @deepak1556 in the theory this is related to #51279.
Activity
deepak1556 commentedon May 4, 2026
Based on the linked runs, its always macOS x64 that is affected ? Also I think #51386 is more likely the culprit than #51279, will take a look.
ckerr commentedon May 4, 2026
agreed about 51386. See #51463 for another data point there
deepak1556 commentedon May 4, 2026
I am unable to repro with gc stresses locally with x64 build, debugging now in CI https://github.com/electron/electron/tree/robo/debug_esm_flake
deepak1556 commentedon May 4, 2026
#51463 would hide the bug by disconnecting the object lifetimes
deepak1556 commentedon May 4, 2026
First trace run shows hang in app.whenReady promise, its getting interesting.
ckerr commentedon May 4, 2026
#51432 and #51441 did some cleanup to the test runner and the code that was failing in this test.
deepak1556 commentedon May 4, 2026
With extended traces from https://github.com/electron/electron/actions/runs/25338512128 the flake is unrelated to the Promise helper cppgc refactor. The failing spec gets
NSApplicationWillFinishLaunchingNotificationbut the main process is just idle after that and never receivesapplicationDidFinishLaunchingwhich explains the app ready promise hanging. The isolate and cppgc heap state are healthy when the promise ctor was invoked, just for sanity.ci: add savedState capture, screenshot, atos, and ApplePersistenceIgn…
ci: suppress macOS 'reopen windows' prompt for Electron test bundle (#…
ci: suppress macOS 'reopen windows' prompt for Electron test bundle (#…
ci: suppress macOS 'reopen windows' prompt for Electron test bundle (#…
ci: suppress macOS 'reopen windows' prompt for Electron test bundle (#…