datadog-ci
datadog-ci copied to clipboard
datadog CI failed to create a report when test results contain non-utf8 characters
Bug description
When running synthetics from the datadog ci, if the test results contain a special character (such as an error returned during a browser test step) the ci is unable to create the report.
Describe what you expected
the datadog ci to gracefully handle special characters and generate the report
Steps to reproduce the issue
run the following with a test that contains an error in a browser response with a special character not found in utf8.
datadog-ci synthetics run-tests --files synthetics.json --config config.json --jUnitReport test_results.xml
Additional context
The issue is y'all need to clean the results here before trying to convert it to utf8 xml.
Command
synthetics