A failed results upload passes silently
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
調査の方向性
.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 ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
WordPress/phpunit-test-runner のほかの issue
-
test-reporter-request
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
WordPress/phpunit-test-runner#373 ·
-
WPT_CERTIFICATE_VALIDATION is still documented but no script reads it対応中かも @ediamin が 17 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
WordPress/phpunit-test-runner#363 ·
-
report.php cannot parse a junit.xml larger than about 12.5 MB対応中かも @ekamran が今日担当しました。 オープン
WordPress/phpunit-test-runner#376 · 担当者 1 名 ·
-
Node v 26対応中かも @gohelkunjan が 2 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
WordPress/phpunit-test-runner#374 ·
-
In SSH mode, report.php cannot copy junit.xml back (double quoting is back)対応中かも @ekamran が 17 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 18/100
WordPress/phpunit-test-runner#370 ·
WordPress/phpunit-test-runner の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
mollie/WooCommerce#1346 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
area: ui bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
nplhse/collaborative-ivena-statistics#1977 ·
メンテナーはふだん 1 日以内に返信
-
sync-en
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 2 日以内に返信
-
Перевод устарел
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 1 日以内に返信