Skip to content

feat(scripts): server metrics get a --quick profile, one-line failures and a guide to the scenarios - #41373

Merged
juliusmarminge merged 1 commit into
mainfrom
perf/server-metrics-quick
Nov 23, 2026
Merged

juliusmarminge merged 1 commit into
mainfrom
perf/server-metrics-quick

Conversation

@juliusmarminge

Copy link
Copy Markdown
Member

A full run takes ~21 minutes on cups, too long for a per-PR or nightly check, and a failure deep in a scenario printed an RPC stack trace without saying which scenario failed.

Stacked on #41372.

  • --quick keeps every scenario but shortens it: 10 s windows (20 s for working), 5 s settles, 15 pipeline turns, working at 5 and 20 threads, quiet/clients at 0 and 10 threads, 3 firstWord runs, 5 s profiles. Explicit --threads/--runs still win. The profile lands in meta.profile, and compare refuses to mix quick and full files (table test).
  • Failures name the scenario and give the error chain on one line, such as server-metrics: the working scenario failed: RpcClientError: Command … was already handled, and exit 1 (table test for describeFailure).
  • The soak sends turns round robin instead of to random threads, so two soaks do the same work.
  • server-metrics --help opens with which scenario answers what, and how far to trust a result (ab on one machine, gated vs noisy, load warnings, quick vs full).

Cups: a full --quick pass ran every scenario in 9m07s (load 15, other processes 1.6 cores), against ~21 min for a full pass.

Model: Claude Opus 5.5, harness: Claude Code in T3 Code.

🤖 Generated with Claude Code

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Nov 23, 2026
@juliusmarminge
juliusmarminge force-pushed the perf/server-metrics-quick branch from 3fb9e75 to 9992873 Compare November 23, 2026 10:31
@juliusmarminge
juliusmarminge force-pushed the perf/server-metrics-reconnect branch from fd9cf26 to fa3dd5f Compare November 23, 2026 10:31
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Thread transfer impact

⚠️ The latest CI run did not produce a thread transfer result for 5cde319.

This comment will update automatically after the next completed run.

@juliusmarminge
juliusmarminge force-pushed the perf/server-metrics-reconnect branch from fa3dd5f to cfa006c Compare November 23, 2026 14:02
@juliusmarminge
juliusmarminge force-pushed the perf/server-metrics-quick branch 2 times, most recently from 9d8f439 to e4694ce Compare November 23, 2026 14:15
@juliusmarminge
juliusmarminge force-pushed the perf/server-metrics-reconnect branch from cfa006c to d742e66 Compare November 23, 2026 14:15
@juliusmarminge
juliusmarminge changed the base branch from perf/server-metrics-reconnect to main November 23, 2026 14:20
@juliusmarminge
juliusmarminge force-pushed the perf/server-metrics-quick branch from e4694ce to 4e9beee Compare November 23, 2026 14:21
@juliusmarminge
juliusmarminge changed the base branch from main to perf/server-metrics-reconnect November 23, 2026 14:21
@github-actions github-actions Bot added size:XL 500-999 changed lines (additions + deletions). and removed size:L 100-499 changed lines (additions + deletions). labels Nov 23, 2026
@juliusmarminge
juliusmarminge force-pushed the perf/server-metrics-reconnect branch from d77ac4b to dc9c942 Compare November 23, 2026 14:23
@juliusmarminge
juliusmarminge force-pushed the perf/server-metrics-quick branch from 4e9beee to 5cde319 Compare November 23, 2026 14:23
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions github-actions Bot added size:L 100-499 changed lines (additions + deletions). and removed size:XL 500-999 changed lines (additions + deletions). labels Nov 23, 2026
Base automatically changed from perf/server-metrics-reconnect to main November 23, 2026 14:24
…s and a guide to the scenarios

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@juliusmarminge
juliusmarminge force-pushed the perf/server-metrics-quick branch from 5cde319 to b6f7272 Compare November 23, 2026 14:24
@juliusmarminge
juliusmarminge merged commit 36413ad into main Nov 23, 2026
35 checks passed
@juliusmarminge
juliusmarminge deleted the perf/server-metrics-quick branch November 23, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant