Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datadog CI failed to create a report when test results contain non-utf8 characters #1250

Closed
gfuller1 opened this issue Mar 20, 2024 · 2 comments
Labels
bug Something isn't working synthetics Related to [synthetics]

Comments

@gfuller1
Copy link

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

@gfuller1 gfuller1 added the bug Something isn't working label Mar 20, 2024
@github-actions github-actions bot added the synthetics Related to [synthetics] label Mar 20, 2024
@Drarig29
Copy link
Contributor

Hi @gfuller1!

I tried with some special characters and it works as expected. We can't fix your issue if you don't give:

  1. An actual example of the special characters you are talking about.
  2. An error, with the message and its stack trace.
  3. The version of datadog-ci and your Node.js version.

You can also give us a URL to the batch or browser test result for us to inspect what's going wrong.

@Drarig29
Copy link
Contributor

Drarig29 commented Apr 29, 2024

Closing as we can't reproduce it. Feel free to reopen with steps to reproduce the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working synthetics Related to [synthetics]
Projects
None yet
Development

No branches or pull requests

2 participants