-
Notifications
You must be signed in to change notification settings - Fork 4.5k
incompatible_remote_results_ignore_disk #15148
Copy link
Copy link
Closed
Labels
P2We'll consider working on this in future. (Assignee optional)We'll consider working on this in future. (Assignee optional)breaking-change-6.0Incompatible flags to be flipped in Bazel 6.0Incompatible flags to be flipped in Bazel 6.0incompatible-changeIncompatible/breaking changeIncompatible/breaking changemigration-readyIncompatible flag is ready for migration with Bazel rolling releases or Bazel@last_greenIncompatible flag is ready for migration with Bazel rolling releases or Bazel@last_greenteam-Remote-ExecIssues and PRs for the Execution (Remote) teamIssues and PRs for the Execution (Remote) team
Metadata
Metadata
Assignees
Labels
P2We'll consider working on this in future. (Assignee optional)We'll consider working on this in future. (Assignee optional)breaking-change-6.0Incompatible flags to be flipped in Bazel 6.0Incompatible flags to be flipped in Bazel 6.0incompatible-changeIncompatible/breaking changeIncompatible/breaking changemigration-readyIncompatible flag is ready for migration with Bazel rolling releases or Bazel@last_greenIncompatible flag is ready for migration with Bazel rolling releases or Bazel@last_greenteam-Remote-ExecIssues and PRs for the Execution (Remote) teamIssues and PRs for the Execution (Remote) team
Background
Disk cache is a local supplement for the remote cache and can be used solely or combined with the remote cache. When both disk cache and remote cache are enabled (combined cache), Bazel will fetch blobs from remote cache and save them to the disk cache, as well as, upload blobs to both disk and remote cache for later read.
Problem
When disk cache was first introduced, it was treated as remote cache since the implementation was hidden behind the same interface for remote cache. It means some tags (e.g.
no-remote) or flags (e.g.--remote_upload_local_results) which should only apply to remote cache also affect disk cache. #8216 #13621--incompatible_remote_results_ignore_diskwas then introduced by #9338 to solve this problem and more features are added behind that switch (e.g. #13769).Migration
If you don't use combined cache, no migration is needed.
If you use tags or flags to prevent blobs being uploaded/downloaded to/from remote cache, please note that, after
--incompatible_remote_results_ignore_diskis flipped, those blobs will be uploaded/downloaded to/from disk cache.Expected timeline
We expect to flip
--incompatible_remote_results_ignore_disktotrueand remove it in Bazel 6.0.