-
Notifications
You must be signed in to change notification settings - Fork 1
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
improve caching in CI #128
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #128 +/- ##
==========================================
- Coverage 82.93% 82.77% -0.16%
==========================================
Files 16 16
Lines 627 627
Branches 38 38
==========================================
- Hits 520 519 -1
Misses 92 92
- Partials 15 16 +1 ☔ View full report in Codecov by Sentry. |
.github/workflows/check.yml
Outdated
if: github.ref == 'refs/heads/master' | ||
with: | ||
path: "~/.cache/bazel_disk_cache" | ||
key: bazel-disk-test-${{ matrix.toolchain }}-${{ matrix.feature }} |
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.
this will fail to save the cache once it is established
is it work deleting the cache so that it can be updated when commits are merged?
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 you think there's something low effort that I should do instead?
Next step I think would be to set up buildbuddy, but I don't want to spend the time to do that just yet.
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.
setting up buildbuddy was very low effort.
< 15 mins would be my guess
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.
OK, done. That was easier than expected!
1368d0a
to
7c91f21
Compare
7c91f21
to
2501c9f
Compare
use buildbuddy for build cache only write to non-build caches from master, which should save cache space and increase hit rates. Change-Id: I33464f548bd63ae790f328c58be767f48e62568b
2501c9f
to
6984734
Compare
this save disk space and should help cache hit rates