Effective gate treats missing coverage totals as 0% and can pass without measurements
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 74/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- testing-qa
Hướng nghiên cứu
Start with score_coverage/effective_coverage.py around the effective totals and zero-denominator fallback, then inspect score_coverage/generate_coverage_html.py where the gate reads the effective percentage. Reproduce the supplied archive and threshold cases with the real generate_coverage_html CLI. Done means missing or unusable HTML and LCOV measurements consistently exit 2, including at threshold 0, for both HTML backends.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Found while reviewing the architecture documentation. Verified against upstream HEAD d99515b87bbe1dde89984403e9c330d640fc5d33 using synthetic report archives and the real generate_coverage_html CLI (no gate/justification mocks).
The effective coverage path converts missing/unparseable/zero HTML totals to a numeric 0% report. The gate treats this as an evaluated percentage. At the default threshold it exits 1; at threshold 0 it exits 0, although there are no usable measurements. The raw LCOV path rejects zero instrumented lines with exit 2.
Reproduction
Create a report zip containing html_report/index.html with no parseable LLVM Totals row, an empty html_report/style.css, and lcov_report/lcov.dat with LF:0 and LH:0. Supply a valid empty YAML:
version: 1
justifications: []
Run the real generate_coverage_html CLI with --yaml:
COVERAGE_THRESHOLD=100: warning about unparseable totals, effective 0%, exit 1.COVERAGE_THRESHOLD=0: same warning, effective 0%, exit 0.
Without YAML the zero-line LCOV yields exit 2.
Expected
Unavailable measurements must produce exit 2 for every threshold, including 0. Validate usable totals before constructing/accepting an effective gate value. Cover missing/malformed HTML totals and zero instrumented lines in both HTML backends.
This violates tool_req__coverage_gate_exit_codes and tool_req__coverage_gate_no_verdict.
Relevant code
- Ngôn ngữ chính
- Python
- Star
- 0
- Fork
- 3
- Merge trung bình
- 18 giờ 44 phút
- Pull request đã merge (30 ngày)
- 17
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eclipse-score/coverage_tool
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
eclipse-score/coverage_tool#27 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
eclipse-score/coverage_tool#39 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
switch from pylint to basedpyrightCó thể đã có người làm @kirankumar-H-V đã nhận 6 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
eclipse-score/coverage_tool#30 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
refactor integration tests for readability and traceabilityCó thể đã có người làm @AlexanderLanin đã nhận 7 ngày trước. Đang mở
eclipse-score/coverage_tool#25 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 78/100
eclipse-score/coverage_tool#17 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của eclipse-score/coverage_tool
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
huggingface/sentence-transformers#4186 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
documentation good first issue
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 72/100
sujithputta02/Esapay#13 ·
-
bot-triaged module: correctness (silent) module: mps module: NaNs and Infs triage review
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
README: CI link/badge checkĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
SCIInstitute/SCIRun#2842 ·
Maintainer thường phản hồi trong vòng 3 ngày