Skip to content

Show the target rate in a stepped --load run's text header - #2970

Merged
cliffhall merged 1 commit into
v2/mainfrom
v2/fix/2965-stepped-header-rate
Nov 12, 2026
Merged

cliffhall merged 1 commit into
v2/mainfrom
v2/fix/2965-stepped-header-rate

Conversation

@cliffhall

Copy link
Copy Markdown
Member

Closes #2965

What changed

A stepped run (--load-steps / --load-ramp) keeps its --load-rate figures on each stage rather than at the top level of the summary (#2841), so formatLoadSummaryHuman never found a rate to print in the header. When the run steps concurrency at one fixed rate, the header now reads that rate back from the stages. A run stepping the rate still shows none in the header, because there is no single target; each stage line already names its own.

The fix is display-only, in core/cli/handlers/load-format.ts (shared by the one-shot CLI and mcpdo). The JSON summary is unchanged.

Before / after

$ mcp-inspector --cli --method tools/call --tool-name echo --tool-arg message=hi \
    --load --load-steps 1,2,4 --load-step-duration 1 --load-rate 300 --format text -- <server>

# before
Load test `echo` (concurrency 4, duration 3s)
# after
Load test `echo` (concurrency 4, duration 3s, rate 300/s)

Tests

clients/cli/__tests__/load-output.test.ts: a stepped-concurrency run with a rate shows it in the header; a stepped run with no rate, and one stepping the rate, show none.

🤖 Generated with Claude Code

A stepped run keeps its --load-rate figures on each stage rather than the
top level, so the text header never printed the rate. When stepping
concurrency at one fixed rate, read that rate back from the stages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: cliffhall <[email protected]>
@cliffhall cliffhall added the v2 Issues and PRs for v2 label Nov 12, 2026
@cliffhall cliffhall linked an issue Nov 12, 2026 that may be closed by this pull request
@cliffhall
cliffhall requested a balanced review from Copilot November 12, 2026 05:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues with the load-test header formatting change.

No open issues 🎉

What changed in this PR

Fixes #2965 by showing the fixed target rate in stepped-concurrency load-test headers. The display-only change applies to the shared formatter used by the one-shot CLI and mcpdo; JSON output remains unchanged.

Changes:

  • Falls back to the first concurrency stage’s rate when the summary has no top-level rate.
  • Adds regression tests for fixed-rate, unset-rate, and rate-stepped headers.
File Description
core/​cli/​handlers/​load-format.ts Reads the fixed rate from concurrency stages for the text header.
clients/​cli/​__tests__/​load-output.test.ts Tests when stepped-run headers should include or omit the rate.

Review effort: Balanced

@cliffhall

Copy link
Copy Markdown
Member Author

Copilot review loop closed: round 1 was clean (no inline comments, no headline or suppressed findings), so the loop stopped on the first clean round.

@cliffhall
cliffhall merged commit f07fd7e into v2/main Nov 12, 2026
12 checks passed
@cliffhall
cliffhall deleted the v2/fix/2965-stepped-header-rate branch November 12, 2026 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v2 Issues and PRs for v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--load: stepped-run text header omits the target rate

2 participants