Repository navigation
ASV Benchmarking Pull Request Workflow - #831
Conversation
|
An example of this workflow in action can be seen in this dummy PR on my fork. |
ASV BenchmarkingBenchmark Comparison ResultsBenchmarks that have improved:
Benchmarks that have stayed the same:
|
rajeeja
left a comment
There was a problem hiding this comment.
This is excellent and very timely for our project.
We can tackle some of my comments in another future PR.
The table units of before and after and the function calls look a little verbose.
Thanks for the review! Yeah, the table can definitely be trimmed a bit to look cleaner. I didn't do any processing of the data, simply returned the result of the I'll definitely look into at least removing the |
erogluorhan
left a comment
There was a problem hiding this comment.
This is incredibly useful! Despite some issues (e.g. the Change column), I am fine with getting this merged and fixing those issues in a separate PR since this will not break any functionality and instead will be usable for other PRs immediately after the merge.
The PR benchmark workflow failed in Setup with "Could not find 'conda' in PATH": asv.conf.json uses environment_type "conda", so asv shells out to a conda executable, which micromamba does not provide. `mamba` in create-args used to pull conda in, but mamba 2.x is a standalone binary that no longer depends on it. mamba itself was only needed while environment_type was "mamba" (#831, switched back to "conda" in #844); asv 0.6.6 has no mamba backend. Install `conda` instead of `mamba`, and drop `python-build`: asv builds the wheel in its own env, where the asv.conf.json matrix provides it. asv's faster "rattler" backend was considered, but it passes the `nodefaults` entry of ci/environment.yml to the solver as a real channel and fails fetching conda.anaconda.org/nodefaults. `nodefaults` stays: it is what keeps uxarray_build defined by the repo alone, not by a user's .condarc. Also: - ci.yml link-check and upstream-dev-ci.yml set up with micromamba but ran `conda list`, which micromamba cannot satisfy; use `micromamba list`. - asv.conf.json: list the environment types asv 0.6.6 actually has. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The PR benchmark workflow failed in Setup with "Could not find 'conda' in PATH": asv.conf.json uses environment_type "conda", so asv shells out to a conda executable, which micromamba does not provide. `mamba` in create-args used to pull conda in, but mamba 2.x is a standalone binary that no longer depends on it. mamba itself was only needed while environment_type was "mamba" (#831, switched back to "conda" in #844); asv 0.6.6 has no mamba backend. Install `conda` instead of `mamba`, and drop `python-build`: asv builds the wheel in its own env, where the asv.conf.json matrix provides it. asv's faster "rattler" backend was considered, but it passes the `nodefaults` entry of ci/environment.yml to the solver as a real channel and fails fetching conda.anaconda.org/nodefaults. `nodefaults` stays: it is what keeps uxarray_build defined by the repo alone, not by a user's .condarc. Also: - ci.yml link-check and upstream-dev-ci.yml set up with micromamba but ran `conda list`, which micromamba cannot satisfy; use `micromamba list`. - asv.conf.json: list the environment types asv 0.6.6 actually has. Co-authored-by: Claude Opus 5.5 <[email protected]>
Overview
Introduces a Github Actions Workflow for running ASV Benchmarks on Pull Requests, getting compared to the
mainbranch.The workflow is triggered using the
run-benchmarklabel.By default, the workflow is skipped unless it is queued using the label above.
The workflow can be re-queued by removing and adding the label.
Once the workflow is complete, the results are posted (or updated) by a Github Bot.
New benchmarks, including those that test new functionality, can be run using this bot as well. They will fail for older versions that raise an error, but that is expected.
Example screenshot of the output: