Skip to content

test(cli): MCP stdio conformance helper bounds process startup at 5 s #274

Closed

Description

@ElbertePlinio

Found while reviewing #249 (PR #273).

packages/cli/test/mcp-stdio-conformance.test.ts sets TIMEOUT_MS = 5_000 for each frame read, readiness wait and exit inside WireProcess. The first frame read after a spawn absorbs the server's startup. Under CPU contention, one startup over 5 s fails the test from inside the helper, whatever the vitest test timeout is. PR #273 raised the vitest timeout of the two-spawn test, but that cannot help here. The validation runs did not hit this, so it is a residual hazard.

  • Give the first read after spawn a startup budget that holds on a loaded host, without loosening later per-frame bounds
  • 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