report.php cannot parse a junit.xml larger than about 12.5 MB
Evaluación
Este issue todavía no se ha evaluado.
Descripción
report.php stops when junit.xml is bigger than about 12.5 MB:
Error: junit.xml could not be parsed as XML, so the test results are unreadable. Aborting instead of reporting an unreadable result as a success. First parser error: internal error: Huge input lookup at line 40283.
The file is valid. process_junit_xml() parses it with simplexml_load_string(), and libxml 2.10 and older refuse a string this big unless LIBXML_PARSEHUGE is passed. libxml 2.11 and newer parse it fine.
Most of the size is the test directory path, which is repeated in every test case (33,939 times in a trunk run). With the default /tmp/wp-test-runner path a trunk run is 10.2 MB, so it works today. With a path of about 88 characters or more, it fails today. The file also grows as core adds tests.
Tested with master (087bb29) on a full trunk run and a full 7.2 RC3 run:
| libxml | Without the flag | With the flag |
|---|---|---|
| 2.9.10, 2.9.13, 2.9.14, 2.10.4 | fails above 12.5 MB | parses up to 40.7 MB |
| 2.11.7, 2.12.10, 2.13.9 | parses up to 40.7 MB | parses up to 40.7 MB |
Ubuntu 22.04 and 24.04, Debian 12 and 13, and Rocky 8 and 9 all ship libxml2 2.9.x.
Expected: report.php reports a valid junit.xml like this 14 MB one, instead of stopping at the libxml limit.
- Lenguaje dominante
- PHP
- Estrellas
- 77
- Forks
- 83
- Merge medio
- 4 d 9 h
- PR fusionados (30 d)
- 2
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de WordPress/phpunit-test-runner
-
A failed results upload passes silentlyPosiblemente ocupada @ekamran la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
WordPress/phpunit-test-runner#378 ·
-
test-reporter-request
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
WordPress/phpunit-test-runner#373 ·
-
WPT_CERTIFICATE_VALIDATION is still documented but no script reads itPosiblemente ocupada @ediamin la tomó hace 17 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
WordPress/phpunit-test-runner#363 ·
-
Node v 26Posiblemente ocupada @gohelkunjan la tomó hace 3 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
WordPress/phpunit-test-runner#374 ·
-
In SSH mode, report.php cannot copy junit.xml back (double quoting is back)Posiblemente ocupada @ekamran la tomó hace 18 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 18/100
WordPress/phpunit-test-runner#370 ·
Todos los issues de WordPress/phpunit-test-runner
Issues similares
-
support
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
15.0
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
mollie/WooCommerce#1346 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
area: ui bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
nplhse/collaborative-ivena-statistics#1977 ·
Los mantenedores suelen responder en 1 día