Skip to content

Add Datadog code coverage upload#193

Merged
ManuelPalenzuelaDD merged 11 commits intomasterfrom
add-datadog-coverage
Apr 9, 2026
Merged

Add Datadog code coverage upload#193
ManuelPalenzuelaDD merged 11 commits intomasterfrom
add-datadog-coverage

Conversation

@ManuelPalenzuelaDD
Copy link
Copy Markdown
Collaborator

What does this PR do?

We're migrating Datadog repositories from Codecov to Datadog Code Coverage for tracking test coverage. This PR is the first step: it adds a Datadog coverage upload alongside the existing Codecov upload so we can run both systems in parallel and verify parity before switching over.

Changes

  • Added DataDog/coverage-upload-github-action step to the Coverage job in actions.yml, immediately after the existing Codecov upload
  • Mirrors the existing Codecov flags (unittests) via the flags: parameter
  • Coverage format: JaCoCo XML (auto-discovered)
  • The existing Codecov uploads are unchanged — nothing is removed or modified
  • The upload uses if: always() and continue-on-error: true so it cannot block CI

Why are we doing this?

As part of a company-wide effort, we're consolidating code coverage reporting into Datadog's own Code Coverage product. This gives us:

  • Coverage data integrated directly into Datadog CI Visibility
  • PR gates and coverage checks natively in Datadog
  • No dependency on a third-party service (Codecov) for coverage reporting

Validation

Pending — CI will run with secrets now that this PR is from origin.

Next steps (not in this PR)

Once this PR is merged and we've confirmed Datadog coverage is stable over several commits:

  1. Remove the Codecov upload steps and CODECOV_TOKEN secret
  2. Optionally configure PR gates in code-coverage.datadog.yml

No action needed from reviewers beyond normal review

This is a low-risk, additive change. The new upload step runs independently of the existing CI pipeline and cannot cause test failures.

ManuelPalenzuelaDD and others added 2 commits March 12, 2026 15:07
Side-by-side coverage reporting: adds Datadog coverage upload
step after existing Codecov upload in the Coverage job.
Uses DataDog/coverage-upload-github-action with the same files
and flags as the Codecov step.
Pin DataDog/coverage-upload-github-action@v1 to commit SHA
d2cf302a39c05e0ad22063360a2bf6ce0cc4906c for supply chain security.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ManuelPalenzuelaDD ManuelPalenzuelaDD marked this pull request as ready for review April 6, 2026 12:14
@ManuelPalenzuelaDD ManuelPalenzuelaDD requested a review from a team as a code owner April 6, 2026 12:14
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.55%. Comparing base (47c2db6) to head (9f16ff8).
⚠️ Report is 73 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #193      +/-   ##
============================================
- Coverage     58.55%   57.55%   -1.01%     
- Complexity      134      175      +41     
============================================
  Files            34       34              
  Lines          3458     3645     +187     
  Branches        780      819      +39     
============================================
+ Hits           2025     2098      +73     
- Misses          900      973      +73     
- Partials        533      574      +41     
Flag Coverage Δ
helper 57.55% <ø> (-1.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@datadog-datadog-prod-us1-2
Copy link
Copy Markdown

datadog-datadog-prod-us1-2 Bot commented Apr 8, 2026

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 57.28%

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 57b60cd | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback!

@ManuelPalenzuelaDD ManuelPalenzuelaDD merged commit 0f5dba9 into master Apr 9, 2026
19 of 21 checks passed
@ManuelPalenzuelaDD ManuelPalenzuelaDD deleted the add-datadog-coverage branch April 9, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants