Skip to content

test: browser stall, relay and Chrome startup tests flake under load #251

Closed

Description

@ElbertePlinio

Found while investigating #224. These browser tests fail under CPU contention. #224 itself did not reproduce.

packages/browser/test/session.test.ts "partial-failure cleanup (fake binaries) > kills the process group and removes the profile when Chrome stalls" uses cdpTimeoutMs: 500. Under contention the fake has not printed its stall message before the timeout. It failed 6 of 6 with busy loops on 2 pinned CPUs.

packages/browser/test/evidence-integration.test.ts "turns a failed relay flow into a useful secret-free HTML report" got { code: null, signal: 'SIGTERM' } instead of a clean exit (shutdownTimeoutMs: 100). It failed in every concurrent full-suite run.

packages/browser/test/integration.test.ts "real headed Chrome under Xvfb > starts from a deeply nested home without exceeding Chrome socket limits" failed in CI on PR #247 with "Chrome startup timed out after 45000ms". A rerun passed.

packages/browser/test/pre-identity-cleanup.test.ts uses FAKE_XVFB_PID = 4_194_301, which is a valid pid when pid_max is 4194304. Cleanup is identity-checked, so it is safe today, but a pid above pid_max would be more robust.

  • Size the stall and relay shutdown budgets for a loaded host
  • Find why Chrome startup can exceed 45 s in CI
  • Use an impossible pid in the pre-identity fixture

Activity

  1. added
    bug
    on Oct 5, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions