Repository navigation
Show the target rate in a stepped --load run's text header - #2970
Merged
Merged
Conversation
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]>
There was a problem hiding this comment.
🟢 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
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2965
What changed
A stepped run (
--load-steps/--load-ramp) keeps its--load-ratefigures on each stage rather than at the top level of the summary (#2841), soformatLoadSummaryHumannever found arateto 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
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