Effective coverage gate compares a floored percentage instead of the unrounded value
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
- 領域
- testing-qa
調査の方向性
Start with score_coverage/effective_coverage.py around the flooring logic and score_coverage/generate_coverage_html.py around the gate’s use of report.json. Reproduce the 99,999/100,000 case through the real generate_coverage_html CLI with and without the empty YAML, then add coverage for a threshold between the displayed and actual percentages. Done means both paths compare the unrounded value while displayed values remain floored.
索引モデルが 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 gate reads summary.effective_line_coverage_pct from report.json, but that field is already floored to two decimal places. This can reject coverage that meets the configured threshold and makes an empty justification YAML change the gate verdict.
Reproduction
Use a report zip whose LLVM HTML Totals row and LCOV both contain 99,999 covered lines out of 100,000. Set COVERAGE_THRESHOLD=99.995.
- Without YAML: raw 99.999%, exit 0.
- With a valid YAML containing
version: 1andjustifications: []: effective value stored as 99.99%, exit 1.
Both results were reproduced through the real CLI and effective coverage calculation with synthetic report inputs.
Expected
Both paths compare the unrounded percentage against the threshold. Display values may remain floored as required by the effective-report requirement. The gate should reconstruct its value from validated counts or receive a separate full-precision value.
This violates tool_req__coverage_gate_unrounded. Add coverage for a fractional threshold between the displayed and actual value, using an empty YAML to prove raw/effective parity.
Relevant code
- 主要言語
- Python
- スター
- 0
- フォーク
- 3
- 平均マージ
- 21時間 14分
- マージ済み PR(30日)
- 13
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eclipse-score/coverage_tool のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
eclipse-score/coverage_tool#27 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
eclipse-score/coverage_tool#30 ·
メンテナーはふだん 1 日以内に返信
-
update copyright check to use the one from tools対応中かも @AlexanderLanin が今日担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 53/100
eclipse-score/coverage_tool#28 ·
メンテナーはふだん 1 日以内に返信
-
refactor integration tests for readability and traceability対応中かも @AlexanderLanin が 1 日前に担当しました。 オープン
eclipse-score/coverage_tool#25 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
eclipse-score/coverage_tool#16 ·
メンテナーはふだん 1 日以内に返信
eclipse-score/coverage_tool の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
mishraprafful/multihull#150 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
python-caldav/caldav#735 ·
メンテナーはふだん 1 日以内に返信
-
bug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
mealie-recipes/mealie#8682 ·
メンテナーはふだん 1 日以内に返信
-
good first issue lane:repo
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100