bazel-contrib / bazel-contrib/rules_python

Windows + Bazel 8 gets permission denied error in some configs

Ouverte
#3,407 3 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

Just filing a quick issue for now with some light details and investigation results

When run on BCR, we get a failure in the bzlmod example `//tests:version_test_binary_*` tests. It only fails for Windows and bazel 8.

example error:

```
Executing tests from //tests:version_test_binary_3_10
-----------------------------------------------------------------------------
C:/b/yumnn2dr/execroot/_main/bazel-out/x64_windows-fastbuild/bin/tests/version_test_binary_3_10: line 23: tests/version_3_10.exe: Permission denied
```

This seems to be an environment specific or Bazel 8 specific issue.

Running it on my windows laptop, it works.

PR #3406 reproduces the issue.

Oddity: I thought we had bazel 8 + windows testing, so why is it failing now?

The only thing interesting about these tests is they're a shell test that runs the python program. For windows, this means it runs an exe that executes a zip file.

Theory: Possibly related to symlinks? If the test copies the files locally, then the binary-under-test runs successfully.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par reproduire la PR #3406 sous Windows avec Bazel 8, en vous concentrant sur les tests d’exemple bzlmod correspondant à //tests:version_test_binary_*. Lisez le test shell qui exécute le programme Python et comparez le comportement avec et sans copie locale des fichiers. Le travail est terminé lorsque les tests concernés s’exécutent correctement dans la configuration Windows et Bazel 8 signalée.

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

Évaluation

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

Recevez les nouvelles issues par e-mail

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