bazel-contrib / bazel-contrib/rules_python

[Bazel CI] Test Failure: The test //tests/exec_toolchain_matching:test_exec_matches_target_python_version fails due to exec/target version mismatch

Ouverte
#3,566 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Starlark
Étoiles
688
Forks
721
Merge moyen
15 h 7 min
PR mergées (30 j)
76

Description

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/5256#019c26da-74d1-4c54-b059-f5db2748e623

Platform: Ubuntu

Logs:

```
(04:14:44) FAIL: //tests/exec_toolchain_matching:test_exec_matches_target_python_version (Exit 1) (see /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/5dbf842aae7b505a6f2030bfc609fac1/execroot/_main/bazel-out/k8-fastbuild/testlogs/tests/exec_toolchain_matching/test_exec_matches_target_python_version/test_attempts/attempt_1.log)
--
(04:14:44) [305 / 676] 163 / 539 tests; 30 actions, 24 running; last test: //tests/base_rules/py_test:test_explicit_main_cannot_be_ambiguous
Testing //tests/py_runtime_info:test_can_create_py_runtime_info_without_interpreter_version_info; 6s remote-cache, linux-sandbox
Testing //tests/multiple_inputs:multiple_requirements_in.test; 6s local, remote-cache
Testing //tests/pypi/requirements_files_by_platform:test_simple; 5s remote-cache, linux-sandbox
Testing //tests/base_rules/py_binary:test_tags_can_be_tuple; 2s remote-cache, linux-sandbox
Testing //tests/version:test_normalization; 2s remote-cache, linux-sandbox
(04:14:45) FAIL: //tests/exec_toolchain_matching:test_exec_matches_target_python_version (Exit 1) (see /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/5dbf842aae7b505a6f2030bfc609fac1/execroot/_main/bazel-out/k8-fastbuild/testlogs/tests/exec_toolchain_matching/test_exec_matches_target_python_version/test_attempts/attempt_2.log)
(04:14:45) [311 / 676] 169 / 539 tests; 30 actions, 25 running; last test: //sphinxdocs/tests/sphinx_stardoc:bzl_providers_build_test
Testing //tests/py_runtime_info:test_can_create_py_runtime_info_without_interpreter_version_info; 7s remote-cache, linux-sandbox
(04:14:45) FAIL: //tests/exec_toolchain_matching:test_exec_matches_target_python_version (Exit 1) (see /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/5dbf842aae7b505a6f2030bfc609fac1/execroot/_main/bazel-out/k8-fastbuild/testlogs/tests/exec_toolchain_matching/test_exec_matches_target_python_version/test.log)
 
FAILED: //tests/exec_toolchain_matching:test_exec_matches_target_python_version (Summary)
/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/5dbf842aae7b505a6f2030bfc609fac1/execroot/_main/bazel-out/k8-fastbuild/testlogs/tests/exec_toolchain_matching/test_exec_matches_target_python_version/test.log

```

Culprit:

Steps:

git clone -v https://github.com/bazel-contrib/rules_python.git
git reset 39e9a3f2d7844128c7e78ad42f1e373ba8fa0a7a --hard
export USE_BAZEL_VERSION=0327100c98a126b9fc83223ba41303fe8b37d331
bazel build --keep_going --verbose_failures --build_tag_filters=-integration-test --lockfile_mode=off @rules_python//examples/wheel/...

CC Greenteam @kotlaja

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Reproduisez l’échec à l’aide des commandes git reset, USE_BAZEL_VERSION et bazel build indiquées. Commencez par //tests/exec_toolchain_matching:test_exec_matches_target_python_version et son test.log référencé afin de déterminer l’incompatibilité de versions entre exec et target. Le travail est terminé lorsque le test n’échoue plus et que la compilation de l’exemple de wheel indiqué se termine avec succès.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
build-system
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.