Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New exit code for remote cache errors #16513

Closed
linzhp opened this issue Oct 19, 2022 · 2 comments
Closed

New exit code for remote cache errors #16513

linzhp opened this issue Oct 19, 2022 · 2 comments
Assignees
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

Comments

@linzhp
Copy link
Contributor

linzhp commented Oct 19, 2022

Description of the feature request:

It would be better if Bazel can have a different exit code for remote cache errors. Currently:

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 returns development 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

@sgowroji sgowroji added type: feature request untriaged team-Remote-Exec Issues and PRs for the Execution (Remote) team labels Oct 20, 2022
@tjgq
Copy link
Contributor

tjgq commented Oct 20, 2022

@tjgq tjgq added P2 We'll consider working on this in future. (Assignee optional) and removed untriaged labels Oct 25, 2022
@coeuvre
Copy link
Member

coeuvre commented Sep 7, 2023

New exit code 39 was introduced by #17358.

@coeuvre coeuvre closed this as completed Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

4 participants