Skip to content

recent CI main regression: esm renderer process nodeIntegration without context isolation should use import.meta callback handling from Node.js for Node.js modules #51462

Closed

Description

@ckerr

Possibly related to #51279 which landed right before the tests started failing. Example failures, all on macOS:

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

  1. added
    bug/regression ↩️
    on May 3, 2026
  2. deepak1556 commented on May 4, 2026

    @deepak1556
    Member

    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.

  3. self-assigned this
    on May 4, 2026
  4. added
    status/confirmed
    on May 4, 2026
  5. ckerr commented on May 4, 2026

    @ckerr
    MemberAuthor

    agreed about 51386. See #51463 for another data point there

  6. deepak1556 commented on May 4, 2026

    @deepak1556
    Member
  7. deepak1556 commented on May 4, 2026

    @deepak1556
    Member

    #51463 would hide the bug by disconnecting the object lifetimes

  8. deepak1556 commented on May 4, 2026

    @deepak1556
    Member

    First trace run shows hang in app.whenReady promise, its getting interesting.

  9. ckerr commented on May 4, 2026

    @ckerr
    MemberAuthor

    #51432 and #51441 did some cleanup to the test runner and the code that was failing in this test.

  10. deepak1556 commented on May 4, 2026

    @deepak1556
    Member

    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 NSApplicationWillFinishLaunchingNotification but the main process is just idle after that and never receives applicationDidFinishLaunching which explains the app ready promise hanging. The isolate and cppgc heap state are healthy when the promise ctor was invoked, just for sanity.

  11. removed their assignment
    on May 5, 2026
  12. added 4 commits that reference this issue on May 5, 2026
    c16c6da
    39aa90c
    8384a9c
    a61c92c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug/regression ↩️status/confirmed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions