Conversation
The benchmark job now writes a summary of `asv compare` with a title depending on whether benchmarks got better, worse or both. A separate workflow_run workflow posts it as a comment, because pull_request runs from forks cannot write to the PR. It only comments on the PR whose head commit was benchmarked. Co-authored-by: Claude <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Also count fixed benchmarks (*) as better and stop counting not comparable benchmarks (x) as worse. Co-authored-by: Claude <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 tasks done
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.
When the
run-benchmark(ortopic-performance) label is set, the benchmark workflow now also posts its results as a comment on the PR. Later runs update the same comment.benchmarks.ymlwrites the comment: theasv comparetable of the changed benchmarks, with emoji instead of asv's markers (🚀 better, 🐌 worse, 💥 now failing, 🩹 fixed, 🤷 not comparable) and a (slightly funny) title depending on whether benchmarks got better, worse, both, or did not change.benchmarks-comment.ymlposts it asgithub-actions[bot]. This needs a separateworkflow_runworkflow, becausepull_requestruns from forks cannot write to the PR (same approach aspublish-test-results.yaml). The comment comes from the PR's own run, so it is only posted on the PR whose head commit was benchmarked.workflow_runworkflows only run from the default branch, so this can only be tested after merging. I tested the comment generation locally with real asv results. Example (the real comment links to the specific workflow run):AI Disclosure
🤖 Generated with Claude Code