From 1152bd6ad7176f5d53a4ae214f463431b5396f65 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Fri, 17 Jan 2025 12:37:04 +0100 Subject: 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. --- src/buildtool/serve_api/serve_service/just_serve.proto | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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. -- cgit v1.2.3