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 小时
- 30 天内合并 PR
- 2
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 于 3 天前认领。 未关闭
难度 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 于 18 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 18/100
WordPress/phpunit-test-runner#370 ·
查看 WordPress/phpunit-test-runner 的全部 Issue
相似的 Issue
-
support
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
15.0
难度 2/5 1-3 小时 新手友好度 66/100
-
难度 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 天内回复