| commit | 4a12a2c4a08c67cb96bafa6c374bc0e4f8e41f20 | [log] [tgz] |
|---|---|---|
| author | chiwang <chiwang@google.com> | Thu Sep 02 21:15:54 2021 -0700 |
| committer | Copybara-Service <copybara-worker@google.com> | Thu Sep 02 21:17:07 2021 -0700 |
| tree | 6517dac217a0c71314d0e466ea47165fa77fc7b5 | |
| parent | 052dd92fb1bc0d7e46703b68cd6c8fd4ddc9e684 [diff] [blame] |
Remote: Async upload (Part 4) Remove RemoteCache#upload. Use UploadManifest#upload directly in RemoteExecutionService. Part of https://github.com/bazelbuild/bazel/pull/13655. PiperOrigin-RevId: 394606309
diff --git a/src/main/java/com/google/devtools/build/lib/remote/UploadManifest.java b/src/main/java/com/google/devtools/build/lib/remote/UploadManifest.java index 1645009..ee3043a 100644 --- a/src/main/java/com/google/devtools/build/lib/remote/UploadManifest.java +++ b/src/main/java/com/google/devtools/build/lib/remote/UploadManifest.java
@@ -337,6 +337,11 @@ throw new UserExecException(failureDetail); } + @VisibleForTesting + ActionResult getActionResult() { + return result.build(); + } + /** Uploads outputs and action result (if exit code is 0) to remote cache. */ public ActionResult upload(RemoteActionExecutionContext context, RemoteCache remoteCache) throws IOException, InterruptedException {