Repository navigation
Keep ASV benchmark regressions visible in bot comments - #1872
anishpentyala wants to merge 3 commits into
Conversation
AI-generated and tested contribution. Exercises the actual inline workflow script with mocked artifact and GitHub calls, without executing fork code.
AI-generated and tested. Reorder existing split tables without hiding regressions, improvements or unfamiliar output. Only unchanged benchmarks are collapsed. No new privileged checkout or execution of fork code.
ASV BenchmarkingBenchmark Comparison ResultsBenchmarks that have stayed the same:
Benchmarks that have got worse:
|
|
Hi @anishpentyala thanks very much for your contribution! FYI: I've added the "run-benchmark" label to this to trigger the ASV benchmark runs and see how their results show up. See it above in the "ASV Benchmarking" cell. Luckily, we have some of those benchmarks that got worse, but they are still shown in the bottom-most part of that cell. |
|
@erogluorhan Thanks for checking the live output. That comment still uses the existing renderer: the comment workflow run ran from commit The workflow's The draft's offline tests exercise its actual inline JavaScript with mocked artifact reads and GitHub calls, including real ASV-formatted synthetic comparison output. Those checks support the proposed ordering, but they are not live validation of the patch against this benchmark run. The PR remains draft, and the personal-responsibility checkbox remains unchecked. AI disclosure: this source check and reply were prepared by the AI assistant operating for @anishpentyala. No personal human review or readiness attestation is claimed. |
|
Hi @anishpentyala, thank you for working on this! I'm excited to see progress on this issue, and I would be happy to take a closer look once this gets marked as ready for review. I suspect that before this can be approved, reviewers would want to see a properly-formatted message on an actual PR somewhere. I understand your comment above describing why that is tricky to do here, though! I have a suggestion though it might be a bit complicated to get working: could you set up a PR in your personal fork which shows the benchmarking comment with correct formatting? This would likely involve making a new "workflow comment test branch", which mostly matches the branch here aside from some small additional changes to the read/write permissions, and a PR inside your own fork for merging that branch into a different branch on your fork (probably the asv-regressions-visible branch, to show that the changes are minimal in comparison). You would probably also need to define the "run-benchmark" label in your fork, and label that PR with it, so that the bot can run the benchmarks and leave a comment. Does that make sense? If you have any questions or get stuck, please don't hesitate to reach out, I would be happy to help! Also, though I haven't taken a very close look yet and I could be wrong, I have an initial suspicion that people might not want any "test/ci/…" tests which test the CI itself, directly inside the pytest test suite. The rest of the pytest test suite is just for testing that uxarray runs correctly, so reviewers might end up requesting to remove your test_asv_comment.py file (or, to at least put it somewhere else which can be run manually on an opt-in basis when debugging the CI, but which isn't part of the pytest test suite by default). The CI itself is usually only "tested" by-eye / by running it live (or in a fork, as described above) to see if it works! Another example of this is #1629, where the changes themselves weren't huge, but demonstrating that they fully fixed the underlying issue involved finding a way to show, on my own personal fork, that the bot behaved appropriately. |
Closes #1739
Overview
Keep ASV regressions visible at the top of the benchmark bot comment, followed by improvements. Only unchanged benchmarks go in a collapsed details section. Non-comparable and unfamiliar output stays visible; the table content is retained rather than interpreted or recalculated.
The change stays inside the existing trusted inline
github-script. It does not check out or execute PR/fork code in the write-token workflow, and it does not change benchmark thresholds, execution or artifact handling.Tests
Compare.print_tableoutput, including a 14x slowdown and introduced failure, was passed through the renderer. This is synthetic comparison data, not a UXarray performance claim.git diff --checkpass.Run the offline tests with Node.js available:
The full UXarray scientific test suite and live GitHub Actions execution were not run locally. No UXarray runtime code changes.
AI Disclosure
AI assistance generated, inspected and tested this patch and its tests. This is not a claim that Anish personally wrote or reviewed the changes. The personal-responsibility checkbox is left unchecked rather than making an attestation on his behalf.