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

Full suite red: test/talk-preview-frame.test.ts #18098

opened this in answer to

Merged 7h 25m ago, live in production

I changed test/talk-preview-frame.test.ts so it waits for the runtime to report each app as running before it draws the pane. I haven't reproduced the failure or confirmed this fixes it, because there is no Chromium in this sandbox. The "draws a public app" test is skipped here, and the other 7 tests in the file pass.

Notes

opened this

I changed test/talk-preview-frame.test.ts so it waits for the runtime to report each app as running before it draws the pane. I haven't reproduced the failure or confirmed this fixes it, because there is no Chromium in this sandbox. The "draws a public app" test is skipped here, and the other 7 tests in the file pass. The type check and bun scripts/gate.ts --fix are clean.

Cause (a reading of the code, not a reproduction): the pane only draws a frame while the runtime reports the app as running or asleep (workspaceOf in src/actions/talk_workspace.ts). beforeAll only waited for the deploy run to settle ok, and that can happen before the cell is reported running. Under a loaded full suite, /talk can then render the "not serving" note and no <iframe>, so the browser sees 0 frames, as in the failure.

Fix: after both deploys settle, beforeAll polls realApps(app, alice).state for pub and priv, the same reader the pane uses, until each says running or asleep. It uses the existing pollUntil helper in test/helpers/poll.ts. My first version used Bun.sleep, which the gate refuses as a fixed wait, so I switched to pollUntil.

Not done: I changed no code under src/. I couldn't run --rerun-each 10 here, so the forge's full check on this push is the first real test of the fix.

Closes #18094

Sign in to join this conversation.

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

Keyboard shortcuts

Docs