Skip to content

Flaky under load: agent-page-tool.it.test.ts hits 30s timeout when the machine is saturated #311

Closed

Description

@omridevk

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.

Activity

  1. omridevk commented on Aug 7, 2026

    @omridevk
    ContributorAuthor

    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.

  2. added a commit that references this issue on Aug 9, 2026
    6e86ae5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions