ci(benchmarks): stable ratio comparison, fake-server integration, fork PR support#4173
Draft
ci(benchmarks): stable ratio comparison, fake-server integration, fork PR support#4173
Conversation
…R support Co-authored-by: sidorares <173025+sidorares@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] ci: improve benchmarks for consistency and reporting
Improve benchmarks: stable ratio comparison, fake-server integration, fork PR support
Mar 12, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4173 +/- ##
=======================================
Coverage 90.67% 90.67%
=======================================
Files 86 86
Lines 14227 14227
Branches 1796 1796
=======================================
Hits 12901 12901
Misses 1326 1326
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Benchmark results were environment-dependent (no ratio baseline), only surfaced regressions, required a MySQL server, and broke on fork PRs due to token write requirements.
Changes
benchmarks/integration/fake-server-select.js— refactoreddefer: trueso Benchmark.js measures actual async round-trip time, not Promise creation timeid & 0xff){ setup, teardown, benchmarks }instead of running a self-contained suitebenchmarks/benchmark.js— updatedbenchmarks/compare.js— new.github/workflows/benchmark.yml— updatedcompare.jsoutput to$GITHUB_STEP_SUMMARY— no write token needed, works for fork PRsbenchmark-actionfor historical trend tracking;comment-on-alert: falsedrops the write-token requirementExample job summary output for a PR:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.