-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Update configuration of CircleCI builds #17183
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
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
61b2fc3
to
d77458e
Compare
I opted to just convert everything; see separate commits for individual changes, and the initial post for a new description of what this does. |
This allows embedding multiple steps into a command.
The `save_cache` and `restore_cache` entries need to be separate steps, not keys on the `run` step.
With re-usable commands, we can put those steps onto the command instead of in each job.
This probably doesn't save much time, but will save the intersphinx files in a cache that will hopefully reduce download errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am inclined to merge this. The proof is in the pudding for CI config and it does build.
|
||
- run: *doc-bundle | ||
- store_artifacts: | ||
path: doc/build/sphinx-gallery-files.tar.gz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this artifact?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure; it was originally there to confirm that sphinx-gallery was working, but that seems rather rare these days. On the other hand, it really doesn't spend much time doing this at all.
PR Summary
I noticed that CircleCI didn't seem to be doing any caching. This was because
save_cache
andrestore_cache
were on therun
step, but really should have been separate steps.Before doing that however, I re-wrote the config to use CircleCI's new re-usable command style (as opposed to using YAML anchors). Since this allows multiple steps in each named command, it allows removing some duplicated steps and putting the cache in the right place. Finally, I added a cache for Sphinx's doctrees. This is not intended to provide much speedup (it's about 30s out of 7m for me), but rather to hold on to the intersphinx mappings because we seem to fail to download them periodically.
These are in separate commits for slightly easier review.
PR Checklist