-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Ensure disk cache root exists #19202
Conversation
fb75f74
to
afca977
Compare
@bazel-io flag |
src/test/java/com/google/devtools/build/lib/remote/DiskCacheIntegrationTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/google/devtools/build/lib/remote/DiskCacheIntegrationTest.java
Outdated
Show resolved
Hide resolved
I tested this change (after manually cherry-picking it into release-.6.40 and fixing conflicts) and it fixed the issue we were seeing. Thank you! |
afca977
to
35436c4
Compare
@bazel-io fork 6.4.0 |
The disk cache root directory was previously being manually created in two places before creating the disk cache client. This CL instead ensures that the disk cache root directory is created when createDiskCache() is called, and simplifies the other callsites. This fixes an issue where the disk cache directory might not exist if using --digest_function=BLAKE3. Closes bazelbuild#19202. PiperOrigin-RevId: 555429326 Change-Id: Ifcfa8c686df30c03c9fca24be860b2db780a6374
@tylerwilliams @brentleyjones @coeuvre @BalestraPatrick When cherry-picking this to release-6.4.0, there were some conflicts.
In the master branch currently,
It does seem small conflicts. But if there's any commit you want me to push in order to resolve these conflicts, please let me know so we can cherry-pick this for our release-6.4.0. Thanks. cc: @bazelbuild/triage |
I'll submit a PR. |
The changes in this PR have been included in Bazel 6.4.0 RC1. Please test out the release candidate and report any issues as soon as possible. If you're using Bazelisk, you can point to the latest RC by setting USE_BAZEL_VERSION=last_rc. |
The disk cache root directory was previously being manually created in two places before creating the disk cache client. This CL instead ensures that the disk cache root directory is created when createDiskCache() is called, and simplifies the other callsites.
This fixes an issue where the disk cache directory might not exist if using --digest_function=BLAKE3.