Skip to content

test_stdio_response_concurrency fails on slow machines: one 10 s deadline for the whole batch #1556

Todo

Description

@LambdaBytes

raw_client_concurrent_large_stdio_tool_responses_are_not_lost gives the whole batch of 200 × 64 KiB responses a single 10 s deadline.

On Debian's loong64 CI (rmcp 3.10.0), it fails just after 10 s with a contiguous tail of IDs missing:

https://ci.debian.net/packages/r/rust-rmcp/testing/loong64/78100719/

Passing loong64 runs take up to 9.55 s.

I reproduced similar failures on amd64 with rmcp 3.10.0, pinning the test and 32–48 busy loops to the same CPU. The original test failed 6/6 times after 10.3–10.6 s. With a longer deadline, all responses arrived.

I suspect the same cause on loong64, although I haven't reproduced it on that architecture.

I have a patch that applies the 10 s timeout to the wait for each complete line, with a separate 120 s overall deadline.

The patched test passed 11/11 runs, including runs under heavier CPU contention. It also continued to detect dropped responses, a stalled server and continuous output that never completes the batch.

The patch has also been revalidated on main (043f22d) with Rust 1.96.1: both tests pass, and clippy and fmt checks are clean.

I can open a PR if the approach looks right.

Activity

  1. added
    bug
    P2
    T-test
    ready for work
    on Dec 3, 2026
  2. github-actions commented on Dec 3, 2026

    @github-actions
    Contributor

    @connor4312 is on triage rotation this week and is the reviewer for this one.

    Codex labeled this bug / P2 (T-test). Please confirm or correct those labels.

    Automated triage. Labels are a first pass and the assigned maintainer has the final say.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2T-testbugready for work

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions