bazel-contrib / bazel-contrib/rules_python

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

Aperta
#3,613 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Starlark
Stelle
688
Fork
721
Merge medio
15h 7m
PR unite (30g)
76

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
build-system, ci-cd, testing
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.