Effective gate treats missing coverage totals as 0% and can pass without measurements
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 74/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
- 領域
- testing-qa
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Python
- スター
- 0
- フォーク
- 3
- 平均マージ
- 21時間 15分
- マージ済み PR(30日)
- 14
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eclipse-score/coverage_tool のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
eclipse-score/coverage_tool#27 ·
メンテナーはふだん 1 日以内に返信
-
switch from pylint to basedpyright対応中かも @kirankumar-H-V が 5 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
eclipse-score/coverage_tool#30 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
refactor integration tests for readability and traceability対応中かも @AlexanderLanin が 6 日前に担当しました。 オープン
eclipse-score/coverage_tool#25 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
eclipse-score/coverage_tool#17 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
eclipse-score/coverage_tool#16 ·
メンテナーはふだん 1 日以内に返信
eclipse-score/coverage_tool の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
onyx-dot-app/onyx#16016 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
black --check exits 0 and prints All done when a multi file run is interrupted対応中かも @jiteshgulati が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
Non-positive worker counts wait for results without starting workers対応中かも @IlyaKhalafi が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信