Repository navigation
Description
Context
While working #3414, two whole-file runs of packages/ui-react/tests/parallel-sessions-runtime.test.ts on this 16-core host failed in cases other than the 390-phone "A and B stream" case. Other workers' jobs pushed the one-minute load to about 36. Real Chromium 1243.
- Head of the ui-react: parallel-sessions runtime announces B's failure twice under load on 390 phone #3414 fix (
ce943f3df): "1279 desktop, dark, fine pointer: Actions Deny refuses a disconnected approval send and recovers for one explicit decision" threwPARALLEL_DURABLE_TERMINAL_NOT_OBSERVEDfromterminalRecovery(the helper's 5-second wait for the host's durable terminal settlement), called atparallel-sessions-runtime.test.ts:1080. The case passed 5 of 5 in isolation on the same tree and on its parent, and the whole file passed 46 of 46 on the next run. - Parent
b06d617bf(fix(ui-react): an answer still being written is not seen, so reopening a running session clears nothing #3416's head): "1440 desktop, light, fine pointer, reduced motion: an approval, all four question forms and running work fold into a summary; a reconnect, a reload and a host restart keep them, and none reads done" timed out atparallel-sessions-runtime.test.ts:781:never held: p.activeSessionId() !== null && ![].includes(p.activeSessionId()), so the first send never got a session within 15 s. The next case then failed and the host stopped answering, so the 16 cases after it failed withnet::ERR_CONNECTION_REFUSED.
Neither failure involves the announcer that #3414 changes, and neither has a known cause yet.
Both citations were re-checked in triage at the commits named above: the until at :781 in b06d617bf and the terminalRecovery call at :1080 in ce943f3df. On main d990c0ab3 the same lines are :766 (the first-send wait in the summary case, test at :747) and :1065 (the terminalRecovery call in the approval-refusal case, test at :985). terminalRecovery is at :284-294, with a 5-second deadline. On main fb999b8ba (after #3745 touched this file): the summary case test template is at :826 with its first-send until at :845; the approval-refusal test template (${run.name}: ${surface} ${decision} refuses a disconnected approval send and recovers for one explicit decision) is at :1064 with its terminalRecovery call at :1144; terminalRecovery is at :297-307, still a 5-second deadline; restartHost is at :226-235.
A lead for the cascade (inference from source, not observed). The summary case's finally always calls restartHost() (:989-993 in b06d617bf). restartHost (:213-221 on main) stops the server first, then awaits app.close(), which drains admitted turns, and only then calls startHost(). If close() does not settle, or throws, the server stays stopped, and every later case would fail with net::ERR_CONNECTION_REFUSED. That matches the second report. Check this first: time app.close() inside restartHost on a failing run, or inject a turn that ignores cancellation before the restart.
Reproduction attempts (triage, 2026-11-03)
Neither attempt produced usable evidence, and both are recorded so nobody repeats them:
- On the triage host at main
d990c0ab3, Chromium 1243 from the Playwright cache could not start (libnspr4.somissing), sobeforeAllfailed before any case ran. - In the pinned
mcr.microsoft.com/playwright@sha256:eff16c30…image (--network=none, Bun 1.4.2 mounted in, the worktree bind-mounted,bun run test packages/ui-react/tests/parallel-sessions-runtime.test.ts), 45 of 46 cases failed. That held under added CPU load (one-minute load about 35) and in a control run without it (load about 9). Every failure was a first send that never got a session (never held: p.activeSessionId() !== null …), and there was noERR_CONNECTION_REFUSED. The control fails the same way, so this ad-hoc container setup is broken for this file. It is not a reproduction of either report.
Next action to complete the reproduction
Run the file where it passes when unloaded: a host with a working system Chromium, or the CI browser job's own harness. First prove a clean whole-file pass there, then repeat under load until each reported signature appears at least once, and record the SHA, the load and the failing assertion. Separately, prove or rule out the restartHost lead above with an injected delay. That needs no load at all.
Acceptance criteria
- Each reported failure has a recorded reproduction (SHA, conditions, command, failing assertion) or a documented bound on attempts, and a named cause: a host settlement deadline, a product race, or a test reading state it does not control.
- One failed case no longer leaves the host refusing connections for the rest of the file. A test injects a failure (or a non-settling
close()) into a case that restarts the host, fails first on main, and shows the next case connecting. A mutation that restores the old restart order fails it. - A product race, if found, is filed as its own issue with that reproduction. It is not fixed here under a test label.
- No deadline is lengthened, no retry is added and no assertion is weakened.
Verification
bun run test packages/ui-react/tests/parallel-sessions-runtime.test.ts in the pinned offline browser image (real Chromium, keyless), whole file. Record the failing-first and mutation receipts in the PR.
Contract impact
None. Test fixture and diagnosis only, unless a product cause is filed separately.
Scope
- Reproduce each failure under load or with an injected delay, and name its cause: a host settlement deadline, a product race, or a test that reads state it does not control.
- Find out why one failed case leaves the host refusing connections for every later case in the file.
Out of scope
- Lengthening deadlines, retrying cases, or weakening assertions.
- The 390-phone "A and B stream" case (ui-react: parallel-sessions runtime "scrolled-up session clears after Scroll to latest" times out intermittently on 390 phone #3377, ui-react: parallel-sessions runtime "selecting A cleared nothing" reads cleared under heavy load on 390 phone #3406, ui-react: parallel-sessions runtime announces B's failure twice under load on 390 phone #3414).
Found while working #3414.
Triage 2026-11-03: re-verified the citations, added the source-level restartHost lead, acceptance criteria, verification and contract impact, and recorded two reproduction attempts that produced no usable evidence. Kept needs: repro. Set priority: p2: wanted proof stability for a 46-case runtime file whose single failure takes down the rest of the file. Attached to #1849 at the time (since removed by the maintainer; see below). No milestone: the cause is unknown, so the size is unknown.
Current ownership and source boundary
Standalone by maintainer choice. The native #1849 parent was removed by the maintainer on 2026-11-08 and again on 2026-11-09, after triage passes had attached it. Do not reattach this issue to #1849 or another epic in triage; membership is the maintainer's call.
Current restartHost (packages/ui-react/tests/parallel-sessions-runtime.test.ts:226-235) stops the server, cancels active turns, releases and clears fixture gates, awaits app.close, then starts the host. The historical close-wait lead must therefore account for the current gate release rather than assuming it is absent. Whether the original natural cascade still occurs remains unproven; keep needs: repro and the unchanged no-retry/no-weakened-assertion requirements.
Triage 2026-11-08 at main 8752570331ffebdbb9233196412781f6cd71f3d9: Verified no existing parent and the full shared-fixture outcome, then restored native #1849 membership. Refreshed the actual restart sequence without treating source inference or old passing controls as reproduction.
Triage 2026-11-09 at main fb999b8baeabbb3a9cb5756a19862eee45467ebf: The body no longer claims #1849 membership, which the maintainer removed on 2026-11-08 and 2026-11-09; this issue stays standalone. Current line navigation was added after #3745 moved the file. needs: repro, priority: p2 and scope are unchanged. No new runtime result is claimed.
Activity
schlessera commentedon Nov 3, 2026
Triage 2026-11-03: the body now carries checkable acceptance criteria, verification and contract impact, plus a lead from the source for the cascade.
restartHoststops the server before awaitingapp.close()and only restarts afterclose()settles, so a stuckclose()leaves later cases refused. That is an inference, not an observation. Two bounded reproduction attempts produced nothing usable, as recorded in the body: native Chromium could not start on the triage host, and an ad-hoc pinned-image container setup failed 45 of 46 cases both with and without added load, so that setup is broken for this file.needs: reprostays, and the body gives the exact next action.priority: p2. Attached to #1849, under its shared-environment failure-cleanup criterion. No milestone until the cause and size are known.schlessera commentedon Nov 10, 2026
2026-11-10 triage at main
3aadc8df5: recurrence check only. The body's current navigation (restartHost:226-235,terminalRecovery:297-307, the summary case:826/:845, the approval-refusal case:1064/:1144) still holds after #3776.Window checked: main
CIruns created 2026-11-03 00:00 UTC to 2026-11-10 09:15 UTC: 167 runs (102 green, 40 cancelled, 24 failed, 1 in progress). I read the failed-job logs of all 24 failed runs, plus the failed first attempts of reruns 42546211003 and 41737142970. None containsPARALLEL_DURABLE_TERMINAL_NOT_OBSERVEDornet::ERR_CONNECTION_REFUSED. The summary and approval-refusal cases passed wherever the file ran. The only parallel-session failure, run 42527788910A and B stream side by sideat 1279 px, belongs to #3414 (incident #3744) and did not stop the host for later cases. MainCIselects affected suites, so this loosely bounds hosted recurrence. It is not a flake rate, a reproduction or a repair.needs: repro, p2 and standalone membership are unchanged.schlessera commentedon Nov 13, 2026
Closing as not planned (maintainer-requested triage, 2026-11-13). Two local runs on one 16-core host at a one-minute load of about 36, and no hosted failure.
Recurrence sweep (2026-11-13). I read the failed-step log of every failed product job on main
CIfrom 2026-10-28 to 2026-11-13: 84 jobs across 300 runs. In the same window 1,005 unit, 764 browser, 501 layout and 256 runtime_host jobs passed. NeitherPARALLEL_DURABLE_TERMINAL_NOT_OBSERVEDnor thenever held: p.activeSessionId() !== nullwait appears in any of them. The two named cases pass in every one of those logs where they ran.The two failures are deadline expiries (5 s and 15 s) on a host with more than twice as much runnable work as cores. The cases passed 5 of 5 isolated and 46 of 46 on the next whole-file run.
The second half of this issue, that one failure stopped the host for the 16 cases after it, rested on an inference about
restartHost. That function now also cancels turns and releases gates before it restarts, so the lead may no longer apply. I did not test it.On recurrence: file the cascade as its own issue if a single failure takes down the rest of the file again, with the first failing case and what
app.close()was waiting on. The same file's other open failures stay in #3807 (now reproduced) and #3414.