summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-12-08 12:28:10 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-12-12 14:37:18 +0100
commit21a0e5ca4c9bb8d8b92822fac7d8dc66b5a4e0e8 (patch)
tree32fac9d4d59929be6dfe5e685d602ff5092c0dc9 /src
parent317a65938a236b02720d80545c4c0724ea733271 (diff)
downloadjustbuild-21a0e5ca4c9bb8d8b92822fac7d8dc66b5a4e0e8.tar.gz
just_serve.proto: Update serve target request
The request should only be restricted to the minimal information needed by the remote to answer it. In particular, the execution endpoint address should not be transmitted.
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/serve_api/serve_service/just_serve.proto27
1 files changed, 20 insertions, 7 deletions
diff --git a/src/buildtool/serve_api/serve_service/just_serve.proto b/src/buildtool/serve_api/serve_service/just_serve.proto
index 3472f646..a1803b01 100644
--- a/src/buildtool/serve_api/serve_service/just_serve.proto
+++ b/src/buildtool/serve_api/serve_service/just_serve.proto
@@ -211,17 +211,30 @@ service SourceTree {
}
message ServeTargetRequest {
- // Digest of the blob containing the target description
+ // Digest of the blob containing the target description.
//
- // The client has to guarantee that the blob is present in the remote CAS
- // before calling ServeTarget
+ // The client has to guarantee that the blob has been uploaded to the
+ // remote CAS.
build.bazel.remote.execution.v2.Digest target_cache_key_id = 1;
- // Digest of the blob containing the execution backend description
+ // A single property of the remote execution environment.
+ message Property {
+ // Property name
+ string name = 1;
+
+ // Property value
+ string value = 2;
+ }
+
+ // The execution properties. The key-value pairs accumulate, with latest
+ // value for each key being taken.
+ repeated Property execution_properties = 2;
+
+ // Digest of the blob containing the endpoint configuration.
//
- // The client has to guarantee that the blob has been uploaded to the remote
- // CAS
- build.bazel.remote.execution.v2.Digest execution_backend_description_id = 2;
+ // The client has to guarantee that the blob has been uploaded to the
+ // remote CAS.
+ build.bazel.remote.execution.v2.Digest dispatch_info = 3;
}
message ServeTargetResponse {