summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2025-01-17 12:37:04 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-01-22 10:15:56 +0100
commit1152bd6ad7176f5d53a4ae214f463431b5396f65 (patch)
tree0a8c83930098d36df59f0189f26a51bbf8c2d821 /src
parent5700e20a3c8321b70270a21579fcc15f5bbc1db2 (diff)
downloadjustbuild-1152bd6ad7176f5d53a4ae214f463431b5396f65.tar.gz
Serve protocol: support keeping the artifact stage as root
In the serve protocol, extend ServeTargetRequest by a flag indicating that the client whishes the server to keep the artifact stage as an additional root. In this way, if a computed root is built on serve it can be used as an absent root without additional communication overhead.
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/serve_api/serve_service/just_serve.proto4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildtool/serve_api/serve_service/just_serve.proto b/src/buildtool/serve_api/serve_service/just_serve.proto
index d99086fb..1122470c 100644
--- a/src/buildtool/serve_api/serve_service/just_serve.proto
+++ b/src/buildtool/serve_api/serve_service/just_serve.proto
@@ -402,6 +402,10 @@ message ServeTargetRequest {
// remote CAS.
build.bazel.remote.execution.v2.Digest target_cache_key_id = 1;
+ // Request that serve keep the artifact stage as an additional root,
+ // so that susequent requests to serve a target can use this root.
+ bool keep_artifact_root = 4;
+
// A single property of the remote-execution environment.
message Property {
// Property name.