-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: Download cached remote files in benchmarks.yml #2923
Conversation
Make the benchmark GitHub Actions workflow faster by pre-downloading some cached files.
CodSpeed Performance ReportMerging #2923 will improve performances by 8.13%Comparing Summary
Benchmarks breakdown
|
Hmm, the benchmark CI actually got slower 😅 Running the benchmarks themselves consistently takes 10m30s, but the setup with the cache download adds a few seconds... |
Maybe we can just close this PR. CodSpeed should only be counting CPU cycles according to https://codspeed.io/blog/pinpoint-performance-regressions-with-ci-integrated-differential-profiling, and not execution time. I.e. we won't removing any variance in the benchmarking due to network latency. |
But tests may fail due to unstable internet connections, so caching is still useful. |
Mm, true, let me reopen this then. |
Btw, I'm seeing lots of warnings at in the benchmarks CI at https://github.com/GenericMappingTools/pygmt/actions/runs/7335964733/job/19974594560#step:8:178 that look like this:
Looking at matplotlib/pytest-mpl#183, it seems like installing pygmt/.github/workflows/benchmarks.yml Line 64 in 94e4598
So not sure what's up with that warning. I also tried reproducing this locally, but can't seem to get the same PytestReturnNotNoneWarning for some reason. |
Gonna ignore the PytestReturnNotNoneWarning mentioned at #2923 (comment) for now, but we'll need to fix it properly before pytest 8.0 comes out. |
Description of proposed changes
Make the benchmark GitHub Actions workflow more reliable by pre-downloading some cached files.
Current benchmark tests at 94e4598 takes 12min26s to run. In this PR, it also takes 12min26s 😅
Patches #2908.
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.Slash Commands
You can write slash commands (
/command
) in the first line of a comment to performspecific operations. Supported slash commands are:
/format
: automatically format and lint the code/test-gmt-dev
: run full tests on the latest GMT development version