Upload code coverage to Datadog#9132
Conversation
PerfectSlayer
left a comment
There was a problem hiding this comment.
Is there a way to test it or let's just give it a try?
| # Upload test results to production environment like all other CI jobs | ||
| junit_upload "$DATADOG_API_KEY_PROD" | ||
|
|
||
| coverage_upload "$DATADOG_API_KEY_PROD" |
There was a problem hiding this comment.
Should the script return the result of both upload functions now? Not only the coverage one?
There was a problem hiding this comment.
Won't it just fail if any of the uploads fails?
There was a problem hiding this comment.
Oh, nevermind, I realised the default is to just continue executing if a command fails. Updated the script to consider both statuses
There was a problem hiding this comment.
See my comment here: https://github.com/DataDog/dd-trace-java/pull/9132/files#r2197581837
It was tested by the CI jobs of this PR :) |
There was a problem hiding this comment.
See my comment here: https://github.com/DataDog/dd-trace-java/pull/9132/files#r2197581837

What Does This Do
Configures uploading code coverage data to Datadog.
Motivation
Dogfooding new Code Coverage product.
Contributor Checklist
type:and (comp:orinst:) labels in addition to any usefull labelsclose,fixor any linking keywords when referencing an issue.Use
solvesinstead, and assign the PR milestone to the issueJira ticket: [PROJ-IDENT]