Change execution log proto to differentiate between remote and disk cache hits #8192
Labels
P2
We'll consider working on this in future. (Assignee optional)
stale
Issues or PRs that are stale (no activity for 30 days)
team-Remote-Exec
Issues and PRs for the Execution (Remote) team
type: feature request
Description of the bug and feature request:
The execution log protobuf contains
remote_cache_hit
, but does not have an equivalentdisk_cache_hit
.There appears to also be a bug here. @keith found that
remote_cache_hit
is being set to true for disk cache hits. For the purpose of metrics, these should be split out, as the times will be different.Feature requests: what underlying problem are you trying to solve with this feature?
We want to track performance of caching, including cache hit ratios and time to fetch from cache. The metrics would be more precise if the different types of cache hits were kept distinct.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Build twice, once to populate the disk cache, once to use the cache and generate an execution log.
--disk_cache=some/path --remote_upload_local_results
--disk_cache=some/path --experimental_execution_log_file=path/to/execution.log
Then, inspect the execution log to see that
remote_cache_hit
is true.What operating system are you running Bazel on?
macos
What's the output of
bazel info release
?0.25.0rc2
Any other information, logs, or outputs that you want to share?
This relates to the recent work to support using both disk and remote http cache together. See #7512, #8052, and #8141.
The text was updated successfully, but these errors were encountered: