-
Notifications
You must be signed in to change notification settings - Fork 710
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] Use hermetic Python #1333
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
fd21ae3
to
757ad79
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks very much!
This change looks good, but it looks like the test failures are real. The Linux one is complaining because the user is root and the new python is insisting it shouldn't be run as root; this might just be a configuration issue? The Windows one is complaining about actual dependency failures. These need to be addressed before we can merge. I can take a closer look later this week if needed. |
Would changing the CI user to non-root be an acceptable solution here? |
@kon72 @kalmard0 was there an attempt to just use the Python interpreter directly instead of defining This way we could remove all the sh and bat scripts and a bunch of logic for switching between the two depending on the OS. |
@kalmard0 @walkingeyerobot the reason why the non-arm version of CircleCI appears to be due to the Moreover, the windows test is probably failing since it is pinned at quite an old version of Bazel which is probably not compatible with the |
If you wanted to send a PR that updates the bazel version, I'd be happy to accept it. The ubuntu image thing would be more of a question for @sbc100 I think. |
I'll put it together tomorrow. Bazel 5.4.0 (used by CircleCI on Windows) is not covered by @sbc100 @walkingeyerobot could you two decide on what the minimum supported version of Bazel should be for emsdk? This support matrix might help. |
Let's bump it to bazel 7 then. Seems to be the oldest version that's still under active support. |
This change removes the dependency on system Python.
Also fixes an issue where the build fails on Windows with
--incompatible_strict_action_env
flag specified: