bazel-contrib / bazel-contrib/rules_python
Empty coverage reports for Python 3.10.15 and 3.10.16
- 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ả
# 🐞 bug report
### Affected Rule
rules_python
### Is this a regression?
No
### Description
Running `bazel coverage` does not produce coverage reports for all versions of Python. The coverage.dat files are empty when using Python version 3.10.15 and 3.10.16. Other versions of Python 3.10 do seem to produce valid coverage reports.
I did not test Python 3.11 or 3.12.
## 🔬 Minimal Reproduction
I added tests on a fork of main: [python-3-10-16-coverage](https://github.com/keesvanhespen/rules_python/tree/python-3-10-16-coverage).
Running
`bazel coverage --action_env=COVERAGE_GCOV_OPTIONS=-b --combined_report=lcov --strategy=CoverageReport=local -- //test_code/...
`
from the `tests/coverage` directory returns a filled coverage.dat file in bazel-out for Python 3.10.14, but it is empty for 3.10.16.
## 🌍 Your Environment
**Operating System:**
MacOS Sequoia ARM 64
**Output of `bazel version`:**
Aspect CLI version: 2025.06.52+25667cae2
INFO: Invocation ID: 58fd115a-8c31-42c8-a32f-e11056aa355a
Build label: 8.2.1
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer
Build time: Thu Apr 17 18:31:45 2025 (1744914705)
Build timestamp: 1744914705
Build timestamp as int: 1744914705
**Rules_python version:**
1.3.0
**Anything else relevant?**
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu trong tests/coverage và so sánh lệnh bazel coverage được báo cáo cùng đầu ra của coverage.dat đối với Python 3.10.14 với 3.10.15 và 3.10.16, sử dụng branch python-3-10-16-coverage được liên kết làm bản tái hiện. Hoàn tất khi coverage.dat được tạo cho các phiên bản Python bị ảnh hưởng và các bài kiểm tra coverage đều vượt qua.
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
- Lĩnh vực
- build-system, 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
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100