Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Effective gate treats missing coverage totals as 0% and can pass without measurements

オープン
#15 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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 の本文から書いたものです。

説明

bug

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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eclipse-score/coverage_tool のほかの issue

eclipse-score/coverage_tool の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。