bazel-contrib / bazel-contrib/rules_python

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

Open
#3,613 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
688
Forks
721
Avg merge
15h 7m
Merged PRs (30d)
76

Description

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

Contributor guide

Open the contributing guide

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, ci-cd, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.