New exit code for remote cache errors #16513
Labels
P2
We'll consider working on this in future. (Assignee optional)
team-Remote-Exec
Issues and PRs for the Execution (Remote) team
type: feature request
Description of the feature request:
It would be better if Bazel can have a different exit code for remote cache errors. Currently:
bazel/src/main/java/com/google/devtools/build/lib/remote/RemoteActionInputFetcher.java
Line 99 in e7218d5
What underlying problem are you trying to solve with this feature?
Remote cache errors can often be fixed after retrying, maybe with slightly different Bazel flags such as cache misses in Build without the bytes. However, regular build errors such as compilation error cannot be fixed by retrying. Having a separate exit code for remote cache errors allow our CI to easily detect them and retry.
Which operating system are you running Bazel on?
Linux
What is the output of
bazel info release
?release 5.3.1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: