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

[ci-app] Add JUnit XML Report Upload #1367

Merged
merged 16 commits into from
May 28, 2021

Conversation

juan-fernandez
Copy link
Collaborator

@juan-fernandez juan-fernandez commented May 17, 2021

What does this PR do?

Add a step to upload the jUnit XML report from core unit tests to Datadog.

Motivation

  • Dogfood jUnit XML upload.
  • Provide visibility into core's unit tests.

@juan-fernandez juan-fernandez force-pushed the juan-fernandez/ci-app-core-tests-dogfood branch from fda5b49 to ae170db Compare May 24, 2021 10:40
@codecov
Copy link

codecov bot commented May 24, 2021

Codecov Report

Merging #1367 (15182c3) into master (ec3e565) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1367   +/-   ##
=======================================
  Coverage   94.23%   94.23%           
=======================================
  Files         155      155           
  Lines        6265     6265           
=======================================
  Hits         5904     5904           
  Misses        361      361           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ec3e565...15182c3. Read the comment docs.

- run:
name: Upload JUnit XML Report
command: |
if [ -n "$CIRCLE_PR_NUMBER" ]; then
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@juan-fernandez juan-fernandez marked this pull request as ready for review May 24, 2021 11:22
@juan-fernandez juan-fernandez requested a review from a team as a code owner May 24, 2021 11:22
return
}
if (process.env.CIRCLE_PR_NUMBER) {
console.log('Running in a fork. Skipping step.')
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scripts/junit_report.js Outdated Show resolved Hide resolved
package.json Outdated
"codecov": "codecov"
"codecov": "codecov",
"junit:upload:ci": "node ./scripts/junit_report.js",
"junit:upload": "datadog-ci junit upload --tags runtime.version:$CI_NODE_VERSION --service dd-trace-js-core-tests ./test-results.xml"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does datadog-ci come from when running this if it's not in the dependencies?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, what's the benefit of ever running this locally? Is there a way to differentiate between local and CI runs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I'll just remove this and run it on the junit_report script file

package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
.circleci/config.yml Show resolved Hide resolved
scripts/junit_report.js Outdated Show resolved Hide resolved
@juan-fernandez
Copy link
Collaborator Author

any other concern @rochdev ?

@juan-fernandez juan-fernandez merged commit 518de71 into master May 28, 2021
@juan-fernandez juan-fernandez deleted the juan-fernandez/ci-app-core-tests-dogfood branch May 28, 2021 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants