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

Aperta Adatta ai principianti
#7,679 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
php, wordpress
Ambito
testing, tooling

Direzione di ricerca

Esamina la configurazione Homeboy del repository e conferma come dichiara i percorsi dei test PHP autonomi. Aggiungi tests/run.php a extensions.wordpress.settings.standalone_php_test_paths, come mostrato nell’issue. Esegui php tests/run.php e il controllo dei test ereditato da Homeboy; il lavoro è completato quando la suite viene rilevata ed entrambi i comandi passano.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
PHP
Stelle
31
Fork
7
Merge medio
7h 50m
PR unite (30g)
822

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Automattic/blocks-engine

Tutte le issue di Automattic/blocks-engine

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.