Skip to content

host-test unable to report results as of r62226 (simplexml load failing of junit.xml) #310

@kmott

Description

@kmott

Describe the bug
It's looking like some recently added email tests cause the test reporters to fail. More specifically, simplexml can't load the junit.xml report:

[ ... ]
Getting SVN Revision
Getting SVN message
Copying junit.xml results
rsync -r '/var/www/wordpress'/tests/phpunit/build/logs/* '/var/www/wordpress'
Processing and uploading junit.xml
PHP Warning:  simplexml_load_string(): Entity: line 9474: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0x80 0x62 0x40 0x65 in /var/www/phpunit/functions.php on line 211
PHP Warning:  simplexml_load_string(): name="test_returns_false_if_given_an_invalid_email_address with data set "a in /var/www/phpunit/functions.php on line 211
PHP Warning:  simplexml_load_string():                                                                                ^ in /var/www/phpunit/functions.php on line 211
PHP Warning:  Attempt to read property "testsuite" on false in /var/www/phpunit/functions.php on line 213
PHP Warning:  Trying to access array offset on null in /var/www/phpunit/functions.php on line 217
PHP Warning:  Trying to access array offset on null in /var/www/phpunit/functions.php on line 218
PHP Warning:  Trying to access array offset on null in /var/www/phpunit/functions.php on line 219
PHP Warning:  Trying to access array offset on null in /var/www/phpunit/functions.php on line 220
PHP Fatal error:  Uncaught Error: Call to a member function xpath() on false in /var/www/phpunit/functions.php:225
Stack trace:
#0 /var/www/phpunit/report.php(97): process_junit_xml()
#1 {main}
  thrown in /var/www/phpunit/functions.php on line 225

To Reproduce
Steps to reproduce the behavior:

  1. Run the host tests which will pass
  2. Attempt to report back results, which loads junit.xml
  3. Notice failure

Expected behavior
No failures, host tests report back successfully.

Screenshots
N/A

Additional context
Actual junit.xml.gz report is here for reference: junit.xml.gz

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions