Skip to content

Make benchmark PR comment less verbose#4375

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/refactor-benchmark-comment
Draft

Make benchmark PR comment less verbose#4375
Copilot wants to merge 4 commits intomainfrom
copilot/refactor-benchmark-comment

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 4, 2026

Benchmark PR comments showed the full metrics table inline, making them noisy on every PR regardless of whether anything changed.

Changes

  • formatPrComment: Restructured comment output:
    • Top-level summary: ✅ "No regressions" when clean, or ⚠️ table of only regressed metrics when slowdowns exceed the threshold
    • Full details table (all metrics, legend, spec info) moved into a collapsed <details> element
  • FormatOptions: Removed changesOnly — superseded by the new structure where full details are always available on demand
  • cli.ts: Removed --changes-only flag and its wiring into formatPrComment

Example output (no regressions):

## ⚡ Benchmark Results

✅ No performance regressions detected.

<details>
<summary>Full details – comparing `abc1234` vs baseline `def5678`</summary>

| Metric | Baseline | Current | Change |
...
</details>

Copilot AI and others added 2 commits May 4, 2026 21:14
…lement, show regression summary

Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/f466ca11-42d8-472b-9318-2756aad71ca6

Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor benchmark comment to reduce verbosity Make benchmark PR comment less verbose May 4, 2026
Copilot AI requested a review from timotheeguerin May 4, 2026 21:16
@timotheeguerin
Copy link
Copy Markdown
Member

@copilot run formatter

Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/a233d106-06db-4121-be7c-b04165bf5bbd

Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 5, 2026

@copilot run formatter

Done in a99f13d.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Benchmark comment is a little too verbose.

2 participants