Skip to content

incompatible_remote_build_event_upload_respect_no_cache #15150

@coeuvre

Description

@coeuvre

Background

If remote cache is enabled, Bazel will upload blobs referenced in the BEP to remote cache and replace the file path in the BEP with URI pointing to the remote CAS so that consumers of BEP can find the blobs.

Problem

In some cases, we don't want to upload some blobs to remote cache by using tags (e.g. no-remote-cache-upload) or flags (e.g. --remote_upload_local_results=false). But the BEP file uploader ignores those flags and always upload blobs referenced in the BEP to remote cache even if the generating actions cannot be cached.

--incompatible_remote_build_event_upload_respect_no_cache was introduced by #14338 to fix this problem so that if the generating actions cannot be cached, their outputs won't be uploaded to remote cache by BEP.

Migration

If you don't use remote cache nor BEP, no migration is needed.

If you use tags or flags to prevent outputs being uploaded to remote cache, after the flag --incompatible_remote_build_event_upload_respect_no_cache is flipped, those blobs will not be uploaded to remote cache by BEP.

Expected timeline

We expect to flip --incompatible_remote_build_event_upload_respect_no_cache to true and remove it in Bazel 6.0.

Metadata

Metadata

Assignees

Labels

P2We'll consider working on this in future. (Assignee optional)incompatible-changeIncompatible/breaking changeteam-Remote-ExecIssues and PRs for the Execution (Remote) teamtype: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions