Bazel does not populate/sync all caches in a combined cache #22357
Labels
awaiting-user-response
Awaiting a response from the author
team-Documentation
Documentation improvements that cannot be directly linked to other team labels
team-Remote-Exec
Issues and PRs for the Execution (Remote) team
type: bug
untriaged
Description of the bug:
When attempting to speed up a remote-cache-enabled build (
--remote_cache
, HTTP) using a local disk cache (--disk_cache
, same drive), I discovered Bazel would not populate the disk cache with artifacts it retrieved from the remote cache for faster access. Bazel also populated only the remote cache upon a cache miss/rebuild. This left us with an empty disk cache that was never accessed.This seems to be undocumented or inconsistent with anecdotes claiming Bazel reads and writes to both caches as a single cache.
Which category does this issue belong to?
Documentation, Remote Execution
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
I was able repro this with just disk caches:
In this example,
:targetX
's do not share any dependencies.Which operating system are you running Bazel on?
Linux, macOS, Windows
What is the output of
bazel info release
?release 7.1.1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?No response
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
No response
Have you found anything relevant by searching the web?
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: