Skip to content

test: agents doctor link and unlink test times out under parallel load #239

Closed

Description

@ElbertePlinio

Found while validating #225 (issue #207).

packages/cli/test/agents.test.ts "pickforge-lab agents doctor > exits 0 with no problem entries after link then unlink" timed out at the default 5000 ms once during a full bun run test:coverage run on a busy host (load average near 10, other test suites running). The test spawns the built CLI four times. It passed three times in a row when run alone on the same revision. #225 does not touch the agents code; CLI startup on that branch measured 339 ms median against 324 ms on main.

Acceptance criteria:

  • The test does not fail on time under parallel load, for example with an explicit timeout sized for four CLI spawns, or by sharing one spawned process where that keeps the behavior under test.
  • Ten full-suite runs under load pass this test.

Checklist:

  • Reproduce under load
  • Fix the timing budget or the test structure
  • Repeat-run evidence in the PR

Activity

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