Repository navigation
Update performance benchmark skill workflow - #131047
Conversation
Document a local before-and-after runtime benchmarking workflow and keep EgorBot usage explicitly opt-in. Co-authored-by: Copilot <[email protected]> Copilot-Session: 8387c80b-f9c6-49f5-b357-9314713661e4
|
Azure Pipelines: Successfully started running 1 pipeline(s). 15 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Pull request overview
Updates the performance-benchmark skill documentation to prefer local BenchmarkDotNet comparisons (baseline vs. changed build) and to treat @EgorBot as an explicitly opt-in workflow.
Changes:
- Reframes the skill as primarily “local benchmarking first”, adding a baseline/changed build workflow.
- Adds guidance for running BenchmarkDotNet with multiple
--coreRunpaths locally and passing env vars. - Moves
@EgorBotusage into its own section and adds an additional resource link.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (2)
.github/skills/performance-benchmark/SKILL.md:141
- The copy step uses an arrow (
artifacts/bin/testhost -> ...) rather than an actual command, and it suggests copying the entireartifacts/bin/testhosttree. In practice the testhost layout is per-TFM/OS/arch (e.g.,artifacts/bin/testhost/net{ver}-{os}-Release-{arch}), and copying just that directory makes the baseline/changed CoreRun paths unambiguous (and avoids unnecessary copying).
4. Copy the generated testhost directory next to itself as `testhost_baseline`:
```text
artifacts/bin/testhost -> artifacts/bin/testhost_baseline
**.github/skills/performance-benchmark/SKILL.md:132**
* The command shown as `./build.cmd|.sh ...` is not a runnable invocation on any platform. Elsewhere in the repo docs this is typically written as `build.cmd/sh ...` or `build[.cmd|.sh] ...` to indicate Windows vs Unix. Consider using one of those established forms here to avoid copy/paste failures.
./build.cmd|.sh clr+libs -rc Release -lc Release
</details>
|
Workflow state for the Holistic Review Orchestrator. {
"version": 5,
"last_dispatched_commit": "c606e3a5e9a9dbec64582166b5f9a806d2cbaf88",
"last_dispatched_base_ref": "main",
"last_dispatched_base_sha": "f43516f45fff5920eabd11753bd5f1803cfacd0c",
"last_reviewed_commit": "c606e3a5e9a9dbec64582166b5f9a806d2cbaf88",
"last_reviewed_base_ref": "main",
"last_reviewed_base_sha": "f43516f45fff5920eabd11753bd5f1803cfacd0c",
"last_recorded_worker_run_id": "29705662941",
"review_attempt_commit": "",
"review_attempt_base_ref": "",
"review_attempt_count": 0,
"max_review_attempts": 5,
"review_history_format": "holistic-review-disclosure-v1",
"review_history": [
{
"commit": "c606e3a5e9a9dbec64582166b5f9a806d2cbaf88",
"review_id": 4731582913
}
]
} |
There was a problem hiding this comment.
Holistic Review
Motivation: AI agents have begun invoking @EgorBot aggressively for anything performance-related, and the bot runs on a personal subscription (except -arm). This PR reorients the performance-benchmark skill to prefer a local baseline-vs-changed benchmarking workflow and reserve @EgorBot for explicit user requests, protecting the shared resource from unintended agent-loop usage. This is a reasonable and well-justified goal.
Approach: The single changed file, .github/skills/performance-benchmark/SKILL.md, retitles the skill, rewrites Step 2 into local build steps (baseline testhost_baseline vs. changed testhost), adds a Step 3 for running BenchmarkDotNet locally via --coreRun against both hosts, and demotes the @EgorBot instructions into a dedicated "@EgorBot Usage" section gated on explicit user request. It also lowers the target-count cap from 4 to 3. The restructuring is coherent, the guidance is accurate (clr+libs -rc Release -lc Release, libs.pretest producing the testhost, --coreRun/--envvars usage all match repo conventions), and the AI-generated content disclosure is preserved.
Summary: Documentation-only change to an agent skill file, with no source, build, or test impact. The new local workflow is technically sound and internally consistent, and the @EgorBot guidance is correctly retained but de-prioritized. I found no correctness, safety, or consistency issues. LGTM.
A couple of minor, non-blocking observations: the "Do not include more than 3 targets" cap (down from 4) is stated only as a rule; if there's a rationale (cost/capacity) a brief note could help future readers. Also, the local-run dotnet run snippet assumes the reader has a benchmark project set up around the Step 1 code; a one-line pointer to where that project lives (e.g., an ad hoc console project referencing BenchmarkDotNet) would make Step 3 fully self-contained. Neither warrants a change.
Note
This review was generated by this repository's Holistic Review agentic workflow to complement the built-in Copilot review.
Generated by Holistic Review · 52.6 AIC · ⌖ 10.3 AIC · ⊞ 10K
New AI models have suddenly started using EgorBot more aggressively for anything remotely related to performance benchmarking. Since it's still on a personal subscription (except for
-armwhich is "helix macos arm64" machine), I changed the workflow to prefer local benchmarking and only use EgorBot when the user explicitly asks for it. It's still fine to call it whenever needed, I'm just protecting it from unintentional uses from agent loopsI've tested my changes locally by making LINQ's Sum intentionally slower and using the skill to benchmark the change