From ceaf43543d7593f5a99504c6cb055ec02067bb54 Mon Sep 17 00:00:00 2001 From: Malte Poll <1780588+malt3@users.noreply.github.com> Date: Fri, 3 Nov 2023 19:00:14 +0100 Subject: [PATCH] bazel: disable local repository and disk cache --- .bazelrc | 5 ----- bazel/bazelrc/performance.bazelrc | 9 --------- 2 files changed, 14 deletions(-) diff --git a/.bazelrc b/.bazelrc index 50e2989f732..f5268600af3 100644 --- a/.bazelrc +++ b/.bazelrc @@ -6,11 +6,6 @@ import %workspace%/bazel/bazelrc/debug.bazelrc import %workspace%/bazel/bazelrc/performance.bazelrc import %workspace%/bazel/bazelrc/cc.bazelrc -# share bazel cache between checkouts of the same project -# and keep old build caches around for longer -common --disk_cache=~/.cache/shared_bazel_action_cache -common --repository_cache=~/.cache/shared_bazel_repository_cache - # inject version information into binaries common --stamp --workspace_status_command=tools/workspace_status.sh diff --git a/bazel/bazelrc/performance.bazelrc b/bazel/bazelrc/performance.bazelrc index 9d0ba305774..1338c3f91b5 100644 --- a/bazel/bazelrc/performance.bazelrc +++ b/bazel/bazelrc/performance.bazelrc @@ -28,15 +28,6 @@ build --experimental_reuse_sandbox_directories # Docs: https://bazel.build/reference/command-line-reference#flag--legacy_external_runfiles build --nolegacy_external_runfiles -# Some actions are always IO-intensive but require little compute. It's wasteful to put the output -# in the remote cache, it just saturates the network and fills the cache storage causing earlier -# evictions. It's also not worth sending them for remote execution. -# For actions like PackageTar it's usually faster to just re-run the work locally every time. -# You'll have to look at an execution log to figure out what other action mnemonics you care about. -# In some cases you may need to patch rulesets to add a mnemonic to actions that don't have one. -# https://bazel.build/reference/command-line-reference#flag--modify_execution_info -build --modify_execution_info=PackageTar=+no-remote,OCIImage=+no-remote - # build only what is needed for tests test --build_tests_only