report.php cannot parse a junit.xml larger than about 12.5 MB
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.
- Ngôn ngữ chính
- PHP
- Star
- 77
- Fork
- 83
- Merge trung bình
- 4 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của WordPress/phpunit-test-runner
-
A failed results upload passes silentlyCó thể đã có người làm @ekamran đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
WordPress/phpunit-test-runner#378 ·
-
test-reporter-request
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
WordPress/phpunit-test-runner#373 ·
-
WPT_CERTIFICATE_VALIDATION is still documented but no script reads itCó thể đã có người làm @ediamin đã nhận 17 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
WordPress/phpunit-test-runner#363 ·
-
Node v 26Có thể đã có người làm @gohelkunjan đã nhận 3 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
WordPress/phpunit-test-runner#374 ·
-
In SSH mode, report.php cannot copy junit.xml back (double quoting is back)Có thể đã có người làm @ekamran đã nhận 18 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 18/100
WordPress/phpunit-test-runner#370 ·
Tất cả issue của WordPress/phpunit-test-runner
Issue tương tự
-
support
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
15.0
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
mollie/WooCommerce#1346 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area: ui bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
nplhse/collaborative-ivena-statistics#1977 ·
Maintainer thường phản hồi trong vòng 1 ngày