forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not add a leading slash if REAPI instance name is empty (pantsbuil…
…d#12103) ## Problem The Remote Execution API requires that resource names used with the `Read` and `Write` methods of the `Bytestream` gRPC service must not begin with a leading slash if the REAPI instance name is empty. > `instance_name` is an identifier, possibly containing multiple path segments, used to distinguish between the various instances on the server, in a manner defined by the server. If it is the empty path, the leading slash is omitted https://github.com/pantsbuild/pants/blob/bc7fbd3905a96540a0e0d5a10dc5560d14968ff8/src/rust/engine/process_execution/bazel_protos/protos/bazelbuild_remote-apis/build/bazel/remote/execution/v2/remote_execution.proto#L210-L214 ## Solution Do not add a leading slash if the REAPI instance name is empty. Update the `StubCAS` test mock to better parse resource names. [ci skip-build-wheels]
- Loading branch information
Tom Dyas
authored
May 21, 2021
1 parent
0e6d204
commit 10759c3
Showing
2 changed files
with
255 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters