Skip to content

Add Datadog code coverage upload#2931

Closed
ManuelPalenzuelaDD wants to merge 1 commit intoDataDog:masterfrom
ManuelPalenzuelaDD:add-datadog-coverage
Closed

Add Datadog code coverage upload#2931
ManuelPalenzuelaDD wants to merge 1 commit intoDataDog:masterfrom
ManuelPalenzuelaDD:add-datadog-coverage

Conversation

@ManuelPalenzuelaDD
Copy link
Copy Markdown
Collaborator

@ManuelPalenzuelaDD ManuelPalenzuelaDD commented Mar 12, 2026

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 upload-coverage job to master.yml that downloads coverage artifacts and uploads to both Codecov and Datadog (matching the pattern already used in integrations-core's master.yml)
  • Added code-coverage.datadog.yml with global carryforward enabled (matching .codecov.yml carryforward settings for 78+ flags)
  • The PR workflow already uploads to Datadog via integrations-core's pr-test.yml reusable workflow
  • The existing Codecov uploads are unchanged — nothing is removed or modified
  • Coverage format: Cobertura XML (generated by test-target.yml as coverage.xml per integration)

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 — no tests ran on this config-only PR. Coverage comparison will be possible after a CI run with actual test execution.

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. Remove .codecov.yml
  3. 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 steps run independently of the existing CI pipeline and cannot cause test failures.

Add upload-coverage job to master.yml workflow that downloads coverage
artifacts and uploads to both Codecov and Datadog. The PR workflow
already has Datadog upload via integrations-core's pr-test.yml reusable
workflow.

Add code-coverage.datadog.yml with global carryforward enabled to match
the carryforward configuration in .codecov.yml.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 6, 2026

This pull request has not been updated for more than 21 days. If there are no updates to this PR within 7 days, it will be closed. If you'd like to re-open this PR after it's been closed, you can start from the latest master branch or pull the latest changes into your branch and create a new pull request.

@github-actions github-actions Bot added the stale label Apr 6, 2026
@github-actions
Copy link
Copy Markdown

This pull request was not updated after an additional 7 days of no activity. If you would like to continue work on this PR, please re-open this PR or create a fresh branch off of the latest master branch.

@github-actions github-actions Bot closed this Apr 13, 2026
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.

1 participant