A failed results upload passes silently

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

@ekamran がすでに取り組んでいます。

2026年11月30日 から。

  • #379 @ekamran による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github-actions, php
領域
backend, ci-cd

調査の方向性

.github/workflows/tests.yml、report.php、host-tools/testrunner.shを読み、アップロード失敗の処理とworkflowのレポートステップを調べてください。upload_results()がcURLの失敗をどのように報告するか、またクリーンアップの実行中にrunnerが失敗ステータスをどのように保持するかを確認してください。アップロードの失敗によってworkflowが失敗し、メッセージに具体的なcURLエラーが含まれる状態が完了です。

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

説明

When the results upload fails, nothing tells the host clearly.

1. The workflow stays green. In .github/workflows/tests.yml, the report step has continue-on-error: true. report.php exits 1 when the upload fails, but the job still passes, so the host keeps running tests while nothing reaches the results page. This was raised on #339: https://github.com/WordPress/phpunit-test-runner/pull/339#issuecomment-5481141761

host-tools/testrunner.sh already handles this the right way: a failed report sets the exit status, and cleanup still runs.

2. The error does not say why. upload_results() never reads curl_error(), so every network failure prints the same line:

Error: Error uploading results (HTTP status 0)

Tested with master (087bb29), report.php with an API key and these report URLs:

Report URL Output
http://127.0.0.1:1/ (connection refused) Error uploading results (HTTP status 0)
https://no-such-host.invalid/ (DNS) Error uploading results (HTTP status 0)
https://expired.badssl.com/ Error uploading results (HTTP status 0)

Expected: a failed upload fails the workflow run, and the error says what went wrong.

Related: #316.

主要言語
PHP
スター
77
フォーク
83
平均マージ
4日 9時間
マージ済み PR(30日)
2

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

WordPress/phpunit-test-runner のほかの issue

WordPress/phpunit-test-runner の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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