Skip to content

test(browser): pre-identity live Chrome test races the fake's pid file under load #260

Closed

Description

@ElbertePlinio

Found while fixing #251 (PR #255).

packages/browser/test/pre-identity-cleanup.test.ts "kills a live Chrome left behind when the supervisor's own identity never resolves" fails on a starved host. The product waits 1 s for an identity that the mock never returns, then kills the group. Under load, the real supervisor and the fake have not written chrome.pid by then. The test then fails at expect(fs.existsSync(pidFile)).toBe(true) after its 20 s wait, and never exercises a live leftover Chrome. origin/main failed 4 of 4 runs with 32 busy loops on 2 CPUs.

  • Hold the identity window open until the fake's marker exists
  • Repeat-run evidence under load

Activity

  1. added
    bug
    on Oct 6, 2026
  2. ElbertePlinio commented on Oct 7, 2026

    @ElbertePlinio
    MemberAuthor

    Re-checked after the host RTTIME fix from #253. Four rounds of two concurrent full suites on main be2d00c did not reproduce this, and no test process was SIGKILLed. The issue describes a timing assumption in the test code, so it stays open. A starved-CPU run, as in the original report, is still the way to confirm the fix.

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