Skip to content

Conversation

@tjgq
Copy link
Collaborator

@tjgq tjgq commented Nov 13, 2025

As discussed at the 2025-10-14 working group meeting.

As discussed at the 2025-10-14 working group meeting.
Comment on lines +183 to +186
// The client SHOULD also upload other blobs transitively referenced by the
// [Action][build.bazel.remote.execution.v2.Action] message into the
// `ContentAddressableStorage`. The server MAY return `FAILED_PRECONDITION`
// if this condition has not been met.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious- why is this recommended?

If the this call is made by a remote execution worker uploading build results then all the CAS blobs required by the Action must already be in the cache. And if the caller is a regular client just using remote caching and not remote execution, then the Action is not technically required to be in the CAS.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps this should read "The client is not required to" instead of "The client SHOULD"? The discussion happened a while ago, but if I recall correctly, the intent was precisely to document that clients are free not to meet the precondition, and servers are not required to enforce it. (If one of the other maintainers remembers it differently, please chime in.)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The less strict version sounds good to me.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The less strict version sounds good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants