report.php cannot parse a junit.xml larger than about 12.5 MB
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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.
- Lingua principale
- PHP
- Stelle
- 77
- Fork
- 83
- Merge medio
- 4g 9h
- PR unite (30g)
- 2
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di WordPress/phpunit-test-runner
-
A failed results upload passes silentlyForse già presa @ekamran l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
WordPress/phpunit-test-runner#378 ·
-
test-reporter-request
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
WordPress/phpunit-test-runner#373 ·
-
WPT_CERTIFICATE_VALIDATION is still documented but no script reads itForse già presa @ediamin l’ha presa 17 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
WordPress/phpunit-test-runner#363 ·
-
Node v 26Forse già presa @gohelkunjan l’ha presa 3 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
WordPress/phpunit-test-runner#374 ·
-
In SSH mode, report.php cannot copy junit.xml back (double quoting is back)Forse già presa @ekamran l’ha presa 18 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 18/100
WordPress/phpunit-test-runner#370 ·
Tutte le issue di WordPress/phpunit-test-runner
Issue simili
-
support
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
15.0
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
mollie/WooCommerce#1346 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
area: ui bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
nplhse/collaborative-ivena-statistics#1977 ·
I maintainer di solito rispondono entro 1 giorno