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

Different exit code for internal failures #23878

Open
samsternatretool opened this issue Oct 4, 2024 · 0 comments
Open

Different exit code for internal failures #23878

samsternatretool opened this issue Oct 4, 2024 · 0 comments
Labels
P3 We're not considering working on this, but happy to review a PR. (No assignee) team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. type: feature request

Comments

@samsternatretool
Copy link

Description of the feature request:

I recently had a build fail with this error:

ERROR: loading failure: com.google.devtools.build.lib.rules.repository.RepositoryFunction$AlreadyReportedRepositoryAccessException: java.io.IOException: Error downloading [https://nodejs.org/dist/v18.18.2/node-v18.18.2-linux-x64.tar.xz] to {...}: GET returned 500 Internal Server Error

The build exited with code 1, which indicates build failure (according to this page). However I'd love to be able to distinguish between "could not build the code" and "an exception was thrown within Bazel itself".

Unfortunately a lot of modern builds do require downloading toolchains / dependencies from external sources and occasionally those sources experience downtime. In that case I'd like to retry my build, but I don't want to retry an actual failure to build my code once dependencies have been downloaded.

This is sort of like how I get code 39 when there is a remote cache eviction error, which is very useful.

Which category does this issue belong to?

CLI, External Dependency

What underlying problem are you trying to solve with this feature?

I'd like to know when retrying my failed build has some chance of success (transient external issue) vs actual fatal errors (code is not buildable).

Which operating system are you running Bazel on?

Mac

What is the output of bazel info release?

release 7.2.1

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

N/A

What's the output of git remote get-url origin; git rev-parse HEAD ?

Private.

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

@github-actions github-actions bot added team-CLI Console UI team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. labels Oct 4, 2024
@meisterT meisterT removed the team-CLI Console UI label Oct 7, 2024
@meteorcloudy meteorcloudy added P3 We're not considering working on this, but happy to review a PR. (No assignee) and removed untriaged labels Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 We're not considering working on this, but happy to review a PR. (No assignee) team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. type: feature request
Projects
None yet
Development

No branches or pull requests

6 participants