Skip to content

//src/test/py/bazel:py_test is broken with Python 3.11 #20660

@meteorcloudy

Description

@meteorcloudy

https://buildkite.com/bazel/bazel-bazel/builds/26029#018c915e-33cc-4272-9169-2722a7a94f6d

We recently update our mac machines on CI and python was upgraded to 3.11. This test started to fail with

File "/private/var/tmp/_bazel_buildkite/42e36ea1c1dcd25f4ab5af8d98bf3465/sandbox/darwin-sandbox/8220/execroot/_main/_tmp/9d5b13726e352fe4fa73b514c6621472/_bazel_buildkite/da87a3ce985221b3cb431edb4e3cae38/execroot/_main/bazel-out/darwin_x86_64-fastbuild/bin/a/a.runfiles/_main/a/a.py", line 1, in <module>
import b
ModuleNotFoundError: No module named 'b'

To reproduce on macOS

brew install python3
bazel test //src/test/py/bazel:py_test --test_filter=PyTest.testSmoke

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions