php-transformer declares no tests, so every Cook test gate fails after homeboy#19795

未关闭 适合新手
#7,679 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
php, wordpress
领域
testing, tooling

调研方向

检查仓库的 Homeboy 配置,并确认它如何声明独立 PHP 测试路径。按照 issue 中的说明,将 tests/run.php 添加到 extensions.wordpress.settings.standalone_php_test_paths。运行 php tests/run.php 和继承的 Homeboy 测试门禁;当测试套件被发现且两个命令都通过时,即为完成。

由索引模型根据 Issue 内容生成。

描述

Summary

Since Extra-Chill/homeboy#19795 (wordpress-v3.58.7), a test-*.php file only counts as PHPUnit when a PHPUnit config declares it. php-transformer has no PHPUnit config and declares no standalone suite, so every Cook's inherited test gate (homeboy --placement local review test php-transformer) now fails with no test files found ... PHPUnit discovery is empty and no standalone PHP tests are selected. Before that change, the same gate crashed loading tests/contract/test-runner.php into Playground (homeboy#19766).

Evidence: Cook agent-task-7a4aeef6-89b9-4de8-ba8b-dbbcd340de1c (#7676), gate-3 artifact homeboy://run/lab-gate-6f703f83-49bd-470a-ad45-83b1cab29bda/artifact/8f75103c-277d-45c9-bea8-27a3c65b68e7.

Fix

Declare the suite runner php-transformer already uses as its standalone PHP test:

"extensions": { "wordpress": { "settings": { "standalone_php_test_paths": ["tests/run.php"] } } }

On homeboy-lab (32 CPUs, Chrome present), php tests/run.php on trunk runs the full suite in 497 s with 2103 tests and 0 failed, inside the gate's 1800 s budget.


AI disclosure: diagnosed and written up by Claude (Anthropic) running in Pi via Roadie for Chris Huber.

主要语言
PHP
星标
31
派生
7
平均合并
7 小时 50 分钟
30 天内合并 PR
822

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Automattic/blocks-engine 的其他 Issue

查看 Automattic/blocks-engine 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。