-
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
rules_python is broken with Bazel@HEAD #18170
Comments
I'm skeptical that 1895585 is the actual cause. I suspect #17545 is more likely the cause (it removed the This sounds like a dupe of #17874, too, but it's not clear. On the rules_python side, bazelbuild/rules_python#1173 removed the reference to that removed file. |
SG, let's check if the downstream turns green for python tomorrow |
rules_python still fails in downstream: Looks like there are more places to fix: |
This makes the test pass on Bazel built from head. The failure appears due to not forcing the test to a Mac platform, so the underlying logic in `py_test` to detect the Mac platform fails and doesn't add the ExecutionInfo with the necessary info. Fixes bazelbuild/bazel/issues/18170
The latest versions of Bazel have removed the `@bazel_tools//tools/python:private/defs.bzl` file, so it can no longer be referenced. Work towards bazelbuild/bazel/issues/18170
) This makes the test pass on Bazel built from head. The failure appears due to not forcing the test to a Mac platform, so the underlying logic in `py_test` to detect the Mac platform fails and doesn't add the ExecutionInfo with the necessary info. Work towards bazelbuild/bazel/issues/18170
The latest versions of Bazel have removed the `@bazel_tools//tools/python:private/defs.bzl` file, so it can no longer be referenced. Work towards bazelbuild/bazel/issues/18170
Ok, fixing that error revealed another. Both are fixed at rules_python head now. I ran all the rules_python tests with a build from head and it looked ok (I think; there were failures, but they also happen with non-bazel head, so I think my invocation just wasn't ignoring something it should have). Let me know if the next downstream build has rules_python failures again. |
Failures in downstream rules_python (latest pipeline ) : https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/2982#0187bb51-ca68-4dae-9701-608fcc7178b1
|
@sgowroji If you check the rules_python commit in the log, it was still building at bazelbuild/rules_python@ba2a903, which is before the fix was submitted bazelbuild/rules_python@600dbe1 |
https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/2983#0187c078-0aeb-4374-b54d-c4073136627d
looks like more API changes we need to adapt? |
@sgowroji Can you file an issue against rules_python and close this one? |
…execution This is the inverse test of the one testing for the mac platform. As before, the line forcing the platform to a non-mac platform was commented out, which meant, when a mac host built it, it would build the underlying target for Mac, which violated the test's assumptions. Work towards bazelbuild/bazel/issues/18170
Thanks, I've sent bazelbuild/rules_python#1183 to fix that failure. How it's manifesting is a bit weird, but the bug is indeed on rules_python's side. |
…execution (#1183) This is the inverse test of the one testing for the mac platform. As before, the line forcing the platform to a non-mac platform was commented out, which meant, when a mac host built it, it would build the underlying target for Mac, which violated the test's assumptions. Work towards bazelbuild/bazel/issues/18170 Fixes #1185
https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/2972#0187a200-864b-46a7-987d-75766ba7fe83
Steps followed to reproduce :
Culprit : 1895585
CC @meteorcloudy
The text was updated successfully, but these errors were encountered: