diff options
author | 2017-09-01 13:14:19 +0200 | |
---|---|---|
committer | 2017-09-01 15:28:54 +0200 | |
commit | a659135bb1dd5a3e7000a0fb0979c235a54f6190 (patch) | |
tree | 563cf2efbacf97267fbd72de9fa31d651e5ba24c /src/main/java/com/google/devtools/build/lib/exec/SpawnResult.java | |
parent | 621c096ff76b898118f2033b3ac974d73e137ede (diff) |
remote: Return exit code 34 for remote caching/execution errors.
For any errors that are due to failures in the remote caching /
execution layers Bazel now returns exit code 34 (ExitCode.REMOTE_ERROR).
This includes errors where the remote cache / executor is unreachable or
crashes. It does not include errors if the test / build failure is due
to user errors i.e. compilation or test failures.
PiperOrigin-RevId: 167259236
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/exec/SpawnResult.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/exec/SpawnResult.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/exec/SpawnResult.java b/src/main/java/com/google/devtools/build/lib/exec/SpawnResult.java index b3a03839d3..d2d3ee8ad6 100644 --- a/src/main/java/com/google/devtools/build/lib/exec/SpawnResult.java +++ b/src/main/java/com/google/devtools/build/lib/exec/SpawnResult.java @@ -94,6 +94,12 @@ public interface SpawnResult { REMOTE_EXECUTOR_OVERLOADED, /** + * The result of the remotely executed Spawn could not be retrieved due to errors in the remote + * caching layer. + */ + REMOTE_CACHE_FAILED, + + /** * The remote execution system did not allow the request due to missing authorization or * authentication. */ |