`fetch_ci_report.js --failed` reports running workflows as all-green

オープン 初心者向け
#137,642 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, node.js
領域
testing, tooling

調査の方向性

.claude/tools/fetch_ci_report.js の 791 行目と 1011 行目付近から始めます。ここでは複数レポートのサマリーと --failed ショートカットが結果を分類しています。workflow と job のステータスがどのように表現されるかを追い、その後、保留中および完了済みの job を使って両方の経路を確認します。実行中の workflow と保留中の job が、両方のサマリーで成功したチェックと区別されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

comp-ai-tooling

fetch_ci_report.js --failed treats the absence of a failed job as proof that the workflow is all-green, including when the workflow is RUNNING and the release builds and performance comparisons are PENDING. This can mislead CI investigations and automated reviews into treating unexecuted checks as successful. The multi-report summary also marks pending jobs with ✅ when their test list is empty.

Observed on 2026-12-04 for the head b38ad45a0443623e289f12210c53bc1026ad801a of https://github.com/ClickHouse/ClickHouse/pull/137356:

node .claude/tools/fetch_ci_report.js \
  'https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=137356&sha=b38ad45a0443623e289f12210c53bc1026ad801a&name_0=PR' --failed
# Actual: Top-level 'PR' index is all-green: 192 job(s), none failed.
# Expected: distinguish the running workflow and pending jobs from passed checks.

At that time the underlying result_pr.json contained "status": "RUNNING", Build (amd_release) and Build (arm_release) had "status": "PENDING", and all 14 selected performance shards had "status": "PENDING". The report is mutable, so these jobs may have completed when the command is rerun.

At .claude/tools/fetch_ci_report.js:1011, the --failed shortcut checks only whether failedChildren.length === 0, without consulting workflow or job status. At line 791, the multi-report summary likewise chooses ✅ whenever there are no failed leaf tests. Both paths need to preserve the distinction between not failed and finished successfully.

The helper is unchanged by PR #137356: its Git blob is 59eabf0e52d3d9e40bfa568facd878afb6b5ff88 in both the reviewed tree and its base 29a235a688cfb0c83e72600ed87d795af9ab8525. The explicit all-green --failed shortcut was introduced by c23febe36ba428bc29cf049bb547e4714b07ddfb in https://github.com/ClickHouse/ClickHouse/pull/134814. The older multi-report icon has the same classification problem; its original introduction was not determined. This affects developer tooling, so no server release label applies.

Caused by: https://github.com/ClickHouse/ClickHouse/pull/134814

Related: https://github.com/ClickHouse/ClickHouse/pull/137356

主要言語
C++
スター
51.3k
フォーク
9.4k
平均マージ
10時間 16分
マージ済み PR(30日)
507

環境構築

はじめの一歩

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

ClickHouse/ClickHouse のほかの issue

ClickHouse/ClickHouse の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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