You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flaky under load: agent-page-tool.it.test.ts hits 30s timeout when the machine is saturated #311
Observed 2026-08-07 during unrelated gate runs (tiptap epic worktree; core untouched by that stack, zero lines):
packages/core/test/api/page/agent-page-tool.it.test.ts — "journals an agent-driven mutation exactly as the CLI path journals it" and "never journals an agent-driven read" hit their 30_000ms timeouts intermittently during FULL-graph turbo run test --force --concurrency=1 runs on a saturated box (load ~15, multiple sessions, dev server running). Pattern across runs: fail(1)/pass/fail(2)/pass.
Isolated evidence: the same file run solo 3× serially in a fresh worktree (stack applied, VITEST_MAX_FORKS=1) passes in ~2s total per run, the affected tests in ~450ms — under the same machine load.
So the test is fast when scheduled fairly and times out only under whole-graph contention — likely kit boot (bootKit + connectWidget) starving. Per the no-tolerated-flakes policy this needs a real fix, not a timeout bump alone: instrument/boot-log which await hangs (kit boot? widget connect? approval round-trip?), then fix the starvation (e.g. serialize this suite's boots, or make the hung step fail fast with a diagnostic).
Not related to the TipTap epic (#293 stack) — reproduced independently of it.
More data: at stack tip dfd2212 the same two tests now fail consistently in the long-lived tiptap-composer worktree (solo --filter run, 2 failed) while the identical content passes 3/3 solo in a freshly-created worktree under the same machine load. Points at per-worktree environmental residue (long-lived node/playwright daemons, dev-server cohabitation) rather than load alone. Worth reproducing with a stale vs fresh worktree pair when fixing.
Activity
omridevk commentedon Aug 7, 2026
More data: at stack tip dfd2212 the same two tests now fail consistently in the long-lived tiptap-composer worktree (solo --filter run, 2 failed) while the identical content passes 3/3 solo in a freshly-created worktree under the same machine load. Points at per-worktree environmental residue (long-lived node/playwright daemons, dev-server cohabitation) rather than load alone. Worth reproducing with a stale vs fresh worktree pair when fixing.
fix(core): annotate agent-page-tool stages so a timeout names where i…