bazel icon indicating copy to clipboard operation
bazel copied to clipboard

Add an option to skip copying remote cache entries into the disk cache when using a combined cache

Open dkashyn-sfdc opened this issue 1 year ago • 2 comments

Description of the feature request:

Duplication of all of RemoteCache entries requires too much local disk space.

While DiskCache is beneficial for local rebuilds, it would be great to not flood it with RC entries if requested.

See discussion for this subject here https://bazelbuild.slack.com/archives/CA31HN1T3/p1726511948332319

Which category does this issue belong to?

No response

What underlying problem are you trying to solve with this feature?

Reduce overhead from DiskCache when the majority of entries are pulled from RC and we building once, for example in CI case.

Which operating system are you running Bazel on?

All of them

What is the output of bazel info release?

7.2.1

If bazel info release returns development 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

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

dkashyn-sfdc avatar Sep 21 '24 23:09 dkashyn-sfdc

Conditions here https://github.com/bazelbuild/bazel/blob/8683da90fb192a030fedb3191cc187e829f88ef2/src/main/java/com/google/devtools/build/lib/remote/RemoteCache.java#L399 and probably here https://github.com/bazelbuild/bazel/blob/8683da90fb192a030fedb3191cc187e829f88ef2/src/main/java/com/google/devtools/build/lib/remote/RemoteCache.java#L128 should probably check for that additional option.

dkashyn-sfdc avatar Sep 21 '24 23:09 dkashyn-sfdc

Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs. If you think this issue is still relevant and should stay open, please post any comment here and the issue will no longer be marked as stale.

github-actions[bot] avatar Dec 02 '25 01:12 github-actions[bot]