-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Bazel reports build success when it was not successful #7115
Comments
In the interpreter, we throw an exception for this. It is properly reported one level up: |
Repro:
If one package cannot be loaded, but all other tests pass, Bazel returns 0. |
In the repro above: if cc @ericfelly who should own this? |
Nathan, can you take a look? |
is this really P1? |
@haxorz if it's not a P1 according to the definitions, please reassign the correct priority. thanks! |
If we don't fix this issue, Bazel users (including us) could miss potential failures in the build, I think it's a pretty serious issue (P1). |
I had a quick look yesterday. This issue also affects Google (Blaze) and has been around for at least a year. I'm surprised it didn't come up before. |
ok, i will look into this today |
Thank you! |
…n encountering a package loading error during target pattern parsing of patterns like "//foo:all" and "//foo/...". The bug is that we were completely ignoring package loading errors in the SkyFunction work that went into TargetPatternPhaseValue computation, and so therefore the control flow all the way from SkyframeExecutor#loadTargetPatterns to BuildView#createErrorMessage could never hope to take such a package loading error into account. Fixes bazelbuild#7115 RELNOTES: In --keep_going mode, Bazel now correctly returns a non-zero exit code when encountering a package loading error during target pattern parsing of patterns like "//foo:all" and "//foo/...". PiperOrigin-RevId: 229839139
This bug was filed at bazelbuild/continuous-integration#449, but it should be a Bazel bug
/cc @c-parsons @laurentlb
The text was updated successfully, but these errors were encountered: