Remote execution detected for disk_cache usages
sluongng opened this issue · 3 comments
Suggestion: "Build without the Bytes"
Consider setting the Bazel flag --remote_download_minimal to minimize the data downloaded while using remote execution.
Also see https://docs.bazel.build/versions/main/command-line-reference.html#flag--remote_download_minimal
Rationale
This profile includes events that indicate remote execution was used.
Caveats
The profile does not expose whether this flag is already set.
This is not accurate as in my testing, only disk_cache
was used.
I get that from Bazel's perspective, disk_cache
is a form of remote cache, but it's not that clear to end users and this recommendation was not applicable.
Can you confirm that the profile includes events of the category Remote execution process wall time
and/or Remote execution upload time
?
It was a build from https://github.com/bazelbuild/bazel master
branch on my Mac laptop
The only thing added was this file
> cat user.bazelrc
build --disk_cache=~/.cache/bazel/disk_cache
build --repository_cache=~/.cache/bazel/repository_cache
build --watchfs
build --incompatible_strict_action_env
build --java_runtime_version=remotejdk_11
No remote execution was configured.
I think there was remote action cache check
category, but no event of cat remote execution .*
.
Thanks for the steps to reproduce. The profile includes Remote execution upload time
(note capitalization). It seems this is an event that's also written to the profile when disk_cache
is set.