test(perf): compare saved CLI startup benchmarks#85400
Conversation
|
Codex review: needs changes before merge. Reviewed June 19, 2026, 1:08 AM ET / 05:08 UTC. Summary PR surface: Other +67. Total +67 across 1 file. Reproducibility: yes. for the PR defect: source inspection of the merge ref shows the compare branch returns before the existing Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Security Review findings
Review detailsBest possible solution: Keep the saved-report comparison mode in the benchmark script, but make it honor the existing JSON file-output convention before automerge. Do we have a high-confidence way to reproduce the issue? Yes for the PR defect: source inspection of the merge ref shows the compare branch returns before the existing Is this the best way to solve the issue? No. The benchmark script is the right layer for saved-report comparison, but the implementation should also write the comparison JSON when Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5e7a0b155808. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Other +67. Total +67 across 1 file. View PR surface stats
Acceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
ClawSweeper PR egg ✨ Hatched: 🥚 common Clockwork Shellbean Hatch commandComment Hatchability rules:
Rarity: 🥚 common. What is this egg doing here?
|
|
@clawsweeper re-review Pushed refreshed shrinkwrap snapshots for check-guards and normalized the Real behavior proof section with copied live benchmark comparison output. |
|
@clawsweeper re-review Rebuilt the branch on current main and replayed only the saved-report benchmark comparison change, with no shrinkwrap deltas. Focused checks passed: |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Heads up: this PR needs to be updated against current |
|
/clownfish automerge |
|
Clownfish is on the reef for this PR. 🐠 I tagged A maintainer can call |
|
ClawSweeper 🐠 reef update Thanks for the work on this. ClawSweeper did not have permission to update this branch directly, so it opened a narrow replacement PR instead. that's a branch access thing, not a knock on the contribution. Why replacement: ClawSweeper could not update the source PR branch directly; GitHub did not grant sufficient push rights to the bot for that branch.
fish notes: reasoning high; reviewed against 32da7b8. |
Summary
scripts/bench-cli-startup.tscheck-guardspasses under the current pnpm lockfileWhy
The follow-up performance PRs need repeatable before/after numbers. The benchmark harness could already save JSON reports, but comparing two saved reports required ad-hoc one-off scripts. This makes the comparison reusable for future PR bodies and review proof.
Real behavior proof (required for external PRs)
node scripts/bench-cli-startup.ts --compare-baseline /tmp/root-help-before.json --compare-candidate /tmp/root-help-after.json node scripts/bench-cli-startup.ts --compare-baseline /tmp/root-help-before.json --compare-candidate /tmp/root-help-after.json --json corepack pnpm exec oxfmt --write --threads=1 scripts/bench-cli-startup.ts node scripts/generate-npm-shrinkwrap.mjs --all --checkJSON mode emitted machine-readable
deltas[]entries containingdurationAvgDeltaMs,durationAvgDeltaPct,maxRssAvgDeltaMb, andmaxRssAvgDeltaPct.Tests
corepack pnpm exec oxfmt --write --threads=1 scripts/bench-cli-startup.ts(commit hook)git diff --check -- scripts/bench-cli-startup.tscorepack pnpm check:no-conflict-markers && node scripts/generate-npm-shrinkwrap.mjs --all --checkHygiene
scripts/bench-cli-startup.tsin the original feature commit and only generatednpm-shrinkwrap.jsonfiles in the follow-up guard-fix commitRelated follow-up to #85353, #85368, and #85396; this covers the benchmark/profiling harness bucket for the performance-audit series.