Add Datadog code coverage upload#3255
Merged
Merged
Conversation
Side-by-side coverage reporting: adds Datadog coverage upload alongside existing Codecov upload in the test:kover GitLab CI job. Also adds code-coverage.datadog.yml with ignore paths matching .codecov.yml. Co-Authored-By: Claude Opus 4.6 <[email protected]>
ManuelPalenzuelaDD
marked this pull request as ready for review
March 12, 2026 17:04
0xnm
approved these changes
Mar 12, 2026
ambushwork
approved these changes
Mar 12, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3255 +/- ##
===========================================
+ Coverage 71.35% 71.39% +0.04%
===========================================
Files 940 940
Lines 34764 34764
Branches 5893 5893
===========================================
+ Hits 24805 24819 +14
+ Misses 8312 8290 -22
- Partials 1647 1655 +8 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
This PR adds Datadog Code Coverage reporting alongside the existing Codecov integration. It's part of a company-wide initiative to migrate all DataDog repositories from Codecov to our own Code Coverage product.
Nothing is removed — Codecov continues to work exactly as before. This PR only adds a Datadog upload so we can run both systems side-by-side and verify coverage parity before fully switching over.
Why
Datadog Code Coverage is our in-house replacement for Codecov. It integrates natively with CI Visibility, provides PR comments and coverage gates, and removes the dependency on a third-party service. All DataDog repositories are being migrated.
Changes
1.
ci/pipelines/default-pipeline.ymlAdded two lines to the
test:koverjob, after the existing Codecov upload:datadog-ciCLI and uploads all Kover XML (JaCoCo format) reports to DatadogDD_API_KEYalready set in this job (from Vault viaDD_ANDROID_SECRET__API_KEY)|| trueensures the upload is non-blocking — if it fails for any reason, the build still passes2.
code-coverage.datadog.yml(new file)Configuration for Datadog Code Coverage, equivalent to your existing
.codecov.yml:These ignore paths mirror what's already in
.codecov.yml(build,.*/build/.*,.*/src/test/.*).Validation
We compared coverage on the same commit (
b94905c2ondevelop) in both systems:Coverage parity is confirmed — the difference is negligible.
Impact
|| true)DD_API_KEYis already available in thetest:koverjobNext Steps (not part of this PR)
Once we've confirmed everything works in production for a few cycles, a follow-up PR will:
.codecov.ymlcode-coverage.datadog.ymlIf you have any questions about Datadog Code Coverage, see the docs or reach out to us.