bazel-contrib / bazel-contrib/rules_python

Windows + Bazel 8 gets permission denied error in some configs

Đang mở
#3,407 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Starlark
Star
688
Fork
721
Merge trung bình
15 giờ 7 phút
Pull request đã merge (30 ngày)
76

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by reproducing PR #3406 on Windows with Bazel 8, focusing on the bzlmod example tests matching //tests:version_test_binary_*. Read the shell test that runs the Python program and compare behavior with and without copying files locally. Done means the affected tests run successfully in the reported Windows and Bazel 8 configuration.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python, shell
Lĩnh vực
build-system, operating-systems, testing
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.