Skip to content

fix: the browser suite gets the wait budget a loaded runner needs - #18

Merged
T-Crypt merged 1 commit into
oh-my-pocketfrom
fix/ci-runner-waits
Oct 13, 2026
Merged

T-Crypt merged 1 commit into
oh-my-pocketfrom
fix/ci-runner-waits

Conversation

@T-Crypt

@T-Crypt T-Crypt commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Four of today's push runs failed on waits with a ten second budget, on a runner with two cores that starts a browser per test file:

  • 38429841208: Timed out waiting for the title (10.6 s to answer, timeout at 13.9 s)
  • 38429902721: Timed out waiting for held back
  • 38431886203: a layout read at 844x390 taken before the dock had settled, after the teardown fix landed

What changed

  • test/helpers.ts: until's default budget is thirty seconds instead of ten. It only decides how long a wait that is going to fail takes to fail; a wait that succeeds still returns on the first poll that sees it.
  • test/browser.test.ts: the two title waits now use that default, so the reason lives in one place.
  • test/subagents-ui.test.ts: the dock's unfolded state is a bounded wait rather than a single read. The assertion still fails if the state never arrives.

Proof

  • npm test: 640 tests, 640 pass, 0 fail, 0 skipped, 75 s.
  • node --test test/subagents-ui.test.ts: 23 pass, 0 fail.
  • npm run check, npm run lint, npm run format:check: exit 0.

…waits too

The runner is two cores and the whole browser suite starts a browser per test
file. Four push runs failed on waits with a ten second budget: the page title at
10.6 s, 'held back', and one layout read taken before the dock had settled. The
budget only decides how long a wait that is going to fail takes to fail.
@T-Crypt
T-Crypt merged commit 02479aa into oh-my-pocket Oct 13, 2026
@T-Crypt
T-Crypt deleted the fix/ci-runner-waits branch October 14, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant