-
Notifications
You must be signed in to change notification settings - Fork 522
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
CI fails with Python toolchains (Bazel 0.27) #809
Comments
This problem does not reproduce in the most recent runs due to an unrelated breakage. |
I've confirmed that in the case of a
The It seems that a solution would be to add |
Ping @alexeagle for visibility, as this affects the 0.27 Bazel release candidate. |
The fix here is to remove any python use from this repo. We have a JS toolchain and should use only that. |
In the meantime, |
Can you please set |
looking at it now. The link to the build breakage you gave above takes me to a BuildKite page where everything is green. I tried to reproduce with Our one python test is for a starlark helper. I'll just comment out that test for now to unblock the release. (I don't want to put the $PATH in the action_env because it makes our action keys unstable when run under another tool that puts unique TMPDIR in the path for every run, totally breaking build incrementality.) I would love some help to get the starlark unit test working. I'm getting |
The breakage only occurs on Mac because the default The CI run I linked to is a pipeline that reports breakages with upcoming flags in the log output, not by turning red. You can see a red pipeline here, example run here. If you don't want to use |
+@c-parsons about the starlark unit test toolchain issue. |
Also as mentioned offline: Previously the failing test would have used the system |
Please see the README for https://github.com/bazelbuild/bazel-skylib , particularly the following note:
Hopefully that fixes things :) |
I think the 0.27 release should be unblocked, we added |
Confirmed that the (renamed) test target passes locally on Mac. If for whatever reason it's still a problem on CI I'll respond here. |
Bazel 0.27 enables
--incompatible_use_python_toolchains
. This breaksrules_nodejs
's BuildKite pipeline.The error message indicates that this is because you have Python 3 targets, and the autodetecting toolchain can't find the
python3
command. Our CI workers havepython3
installed under/usr/local/bin
, but thePATH
is apparently.:/bin:/usr/bin
.This is likely because you have
--incompatible_strict_action_env
in your bazelrc. I've filed bazelbuild/bazel#8536 to track this problem. In the meantime, you may be able to work around this by setting--action_env
in your bazelrc.The text was updated successfully, but these errors were encountered: