-
Notifications
You must be signed in to change notification settings - Fork 541
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
[RunAllTests] Remove caching for Bazel CI workflows #2884
Conversation
Remove caching from Bazel tests.
Remove caching for Bazel builds.
@seanlip @rt4914 @anandwana001 assigning this broadly to try and get the PR in sooner since it's a priority. Please feel free to let it get auto-merged if any of you approve it (no need for more than one approval here, I think). Please reach out if you have any questions or concerns. |
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.
Thanks, LGTM!
(or not?) EDIT: Ah, ignore that. I was confused about why the PR got closed, which is explained in the next comment. |
Restarting CI to force Bazel tests to run to verify that they are actually not using caching anymore. |
Fix environment variable conditions.
Thanks for the super fast review @seanlip! |
Bazel caching is currently not cost effective: it only caches 25-30% of actions, and we're not seeing worthwhile performance benefits from it. This PR makes caching configurable for both unit tests and binary builds, and disables it for CI workflows. #1861 is tracking improving this over time, including upstream patching Bazel itself to fix some of the caching issues. We may revisit
reenabling caching at that time.
Runs verifying that caching is now disabled:
Builds
![image](https://user-images.githubusercontent.com/12983742/110753818-e72a1000-81fb-11eb-962d-9b7165c0ca29.png)
Unit tests
![image](https://user-images.githubusercontent.com/12983742/110753949-104aa080-81fc-11eb-9c6d-e5202a401aef.png)