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

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

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

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

評価

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

調査の方向性

リポジトリのHomeboy設定を調べ、単独のPHPテストパスがどのように宣言されているかを確認してください。Issueに示されているとおり、extensions.wordpress.settings.standalone_php_test_pathsにtests/run.phpを追加してください。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分
マージ済み PR(30日)
822

環境構築

はじめの一歩

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

Automattic/blocks-engine のほかの issue

Automattic/blocks-engine の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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