bazel-contrib / bazel-contrib/rules_python
Windows + Bazel 8 gets permission denied error in some configs
- 主要言語
- Starlark
- スター
- 688
- フォーク
- 721
- 平均マージ
- 15時間 7分
- マージ済み PR(30日)
- 76
説明
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.
コントリビューションガイド
調査の方向性
まず、Windows 上の Bazel 8 で PR #3406 を再現し、//tests:version_test_binary_* に一致する bzlmod の例のテストに重点を置きます。Python プログラムを実行する shell テストを読み、ファイルをローカルにコピーする場合としない場合の動作を比較します。報告された Windows および Bazel 8 の構成で、影響を受けるテストが正常に実行されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python, shell
- 領域
- build-system, operating-systems, testing
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100