You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bazel --keep_going exits successfully when encountering starlark errors in package loading #7674
b8ac792 probably fixed this. i believe 0.23.0 was the first bazel release that contained that commit. can anyone complaining about this issue please try again with that bazel release (or a newer one)?
i tried with the original repro instructions but was getting errors due to incompatibilities between bazel 0.23.0 and kythe @ c3919636ac995d78ceeef09b1e5b84d287b097c8.
This is still an issue in 0.24.0. You can repro by attempting to reference any undefined variable in a loaded .bzl file. That will cause the BUILD package load to fail.
Either Bazel should return a non successful code when there is such a failure, or BuildKite should detect that there was an error in the build and should mark the job as such. Possibly both.
changed the title [-]`bazel --keep_going` exits successfully when encountering package load errors[/-][+]`bazel --keep_going` exits successfully when encountering starlark errors in package loading[/+]on May 21, 2019
Activity
ci(buildbot): remove --keep_going option from Bazel build
ci(buildbot): remove --keep_going option from Bazel build (#3598)
aiuto commentedon Mar 8, 2019
It sounds like the right solution is that blaze should return non-zero if there were errors, regardless of them being package loading related or not.
alexeagle commentedon Apr 2, 2019
We pushed a bad commit to rules_typescript yesterday because of this issue.
/subscribe
haxorz commentedon Apr 2, 2019
b8ac792 probably fixed this. i believe 0.23.0 was the first bazel release that contained that commit. can anyone complaining about this issue please try again with that bazel release (or a newer one)?
i tried with the original repro instructions but was getting errors due to incompatibilities between bazel 0.23.0 and kythe @ c3919636ac995d78ceeef09b1e5b84d287b097c8.
schroederc commentedon Apr 2, 2019
This is still an issue in 0.24.0. You can repro by attempting to reference any undefined variable in a loaded
.bzlfile. That will cause the BUILD package load to fail.philwo commentedon May 21, 2019
@haxorz It seems like @sergiocampama encountered this in rules_apple again. I'm copying his internal bug report (b/133148805) here:
sergiocampama commentedon May 21, 2019
I wonder how many projects in BuildKite may be silently broken (rules_apple definitely is)
haxorz commentedon May 21, 2019
i or someone else will fix this (, probably internally).
assigning to myself for tracking purposes.
[-]`bazel --keep_going` exits successfully when encountering package load errors[/-][+]`bazel --keep_going` exits successfully when encountering starlark errors in package loading[/+]Failures early in package loading will now fail all --keep_going builds.
Failures early in package loading will now fail all --keep_going builds.