bazel-contrib / bazel-contrib/rules_python

[Bazel CI] Test failure: Bazel Toolchain Resolution Error: Linux vs. Darwin Path Mismatch

Đang mở
#3,613 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Starlark
Star
688
Fork
721
Merge trung bình
15 giờ 7 phút
Pull request đã merge (30 ngày)
76

Mô tả

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/5285#019c6eff-8761-4678-a00b-7649b613b390

Platform: MacOs

Logs:

```
(04:28:32) FAIL: //tests/toolchains/transitions:test_minor_versions (Exit 1) (see /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/c61fdf562e46a6fbb164048a7ed7694a/execroot/_main/bazel-out/k8-fastbuild/testlogs/tests/toolchains/transitions/test_minor_versions/test_attempts/attempt_1.log)
(04:28:32) [335 / 671] 207 / 543 tests, 1 failed; 28 actions running; last test: ...n_create_py_runtime_info_without_interpreter_version_info
Testing //examples/wheel:requirements_server.test; 9s local, remote-cache
Testing //tests/pypi/whl_installer:wheel_test; 3s remote-cache, linux-sandbox
Testing //tests/multiple_inputs:multiple_requirements_in.test; 3s local, remote-cache
Testing //tests/bootstrap_impls:external_binary_test; 2s remote-cache, linux-sandbox
Testing //tests/runfiles:runfiles_test; 1s remote-cache, linux-sandbox
Testing //tests/toolchains/multi_platform_resolution:test_3_15_0a1_x86_64_apple_darwin; 1s remote-cache, linux-sandbox
(04:28:32) FAIL: //tests/toolchains/transitions:test_minor_versions (Exit 1) (see /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/c61fdf562e46a6fbb164048a7ed7694a/execroot/_main/bazel-out/k8-fastbuild/testlogs/tests/toolchains/transitions/test_minor_versions/test_attempts/attempt_2.log)
(04:28:34) FAIL: //tests/toolchains/transitions:test_minor_versions (Exit 1) (see /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/c61fdf562e46a6fbb164048a7ed7694a/execroot/_main/bazel-out/k8-fastbuild/testlogs/tests/toolchains/transitions/test_minor_versions/test.log)
 
FAILED: //tests/toolchains/transitions:test_minor_versions (Summary)
```

Culprit:

Steps:

git clone -v https://github.com/bazel-contrib/rules_python.git
git reset d31ec0d92d3c45d8898be5228b88f3c29f6a6eee --hard
export USE_BAZEL_VERSION=24ec866bc2c0761a7ceba400ad07f484841ff9a2
bazel build -- ... @rules_python//examples/wheel/...

CC Greenteam @pcloudy

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Reproduce the failure with the provided repository reset, USE_BAZEL_VERSION, and bazel build command. Start with tests/toolchains/transitions:test_minor_versions and its referenced test logs, then compare the Linux and Darwin paths involved in toolchain resolution. Done means the test passes on macOS without the reported path mismatch.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
build-system, ci-cd, testing
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.