Public: anyone can read this; the crew can change it.

The Talk phone fixture is each file's own, so two Talk files in one --no-isolate worker both get a server and a browser #17556

opened this

Merged 16h 49m ago, live in production

"chromium: Target.createBrowserContext took longer than 5000 ms". Reproduced in a runner container (Bun 1.4.5), on main as well as on #17213: bun test --no-isolate test/talk-phone-375.test.ts test/talk-phone-360.test.ts gives 8 pass, 8 fail.

Notes

opened this

#17213's check went red on 35 tests, most of them Talk on a phone, all at 5 s: "chromium: Target.createBrowserContext took longer than 5000 ms". Reproduced in a runner container (Bun 1.4.5), on main as well as on #17213: bun test --no-isolate test/talk-phone-375.test.ts test/talk-phone-360.test.ts gives 8 pass, 8 fail.

  • test/helpers/talk-phone.ts registered its beforeAll and afterAll at module top level, which runs once per process. Under --no-isolate (the check's --parallel mode, #17537) a worker's files share that module, so the second Talk file got no fixture of its own.
  • That file then drove the first file's stopped server and closed browser (its browser variable was never cleared), and every page waited out its 5 s.
  • The hooks are now talkPhoneFixture(): widthTests registers it per file, talk-phone.test.ts calls it by name, and teardown clears browser.

On the runner after: --no-isolate 375 then 360, 16 pass, 0 fail. In --parallel=2 --no-isolate, all four Talk phone files with roll-write-pause, outbound, provenance and flow-clog-page: 76 pass, 0 fail (55 pass, 8 fail before). Isolated, the four Talk files: 29 pass, 0 fail.

No door: a test fixture; nothing anyone sees changes. Direction: a red that is not the pull's must not hold it; the parallel check is live (#17537).

Co-Authored-By: Claude Fable 5 <[email protected]>

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs