bazel-contrib / bazel-contrib/rules_python
[Bazel CI] Test failure: Bazel Toolchain Resolution Error: Linux vs. Darwin Path Mismatch
- Vorherrschende Sprache
- Starlark
- Sterne
- 688
- Forks
- 721
- Ø Merge
- 15 Std. 7 Min.
- Gemergte PRs (30 T.)
- 76
Beschreibung
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
Beitragsleitfaden
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- build-system, ci-cd, testing
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100