Skip to content

Add Datadog code coverage upload#324

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

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

Conversation

@ManuelPalenzuelaDD
Copy link

@ManuelPalenzuelaDD ManuelPalenzuelaDD commented Mar 12, 2026

Context

We're migrating Datadog repositories from Codecov to Datadog Code Coverage — our own code coverage solution. This is part of an org-wide effort to dogfood our product and consolidate coverage reporting into Datadog.

This PR does not remove Codecov. It adds Datadog coverage upload alongside the existing Codecov upload so we can run both in parallel and verify that coverage numbers match before making any switch.

What this PR does

Adds a single step to the GitLab CI coverage job (in .gitlab/build-and-test-fast.yml) that uploads the existing LCOV report to Datadog after the Codecov upload:

  1. Downloads the datadog-ci CLI
  2. Uploads .musl-build/coverage.lcov to Datadog Code Coverage

The existing Codecov upload and all other CI behavior is completely untouched.

Risk

Very low. The upload step:

  • Runs after make coverage (including the existing Codecov upload) completes successfully
  • Uses || true so a Datadog upload failure will never break the pipeline
  • Does not modify any build, test, or existing coverage logic

Requirements

  • DD_API_KEY needs to be available as a CI/CD variable in the GitLab project. If it's not set yet, the upload will silently fail (due to || true) with no impact on the pipeline.

Next steps

Once this lands and a coverage pipeline runs on master:

  1. We'll verify that Datadog reports the same coverage percentage as Codecov (~68.85%)
  2. If numbers match, we'll follow up with a separate PR to remove the Codecov integration

If you have any questions about the migration, feel free to ask — happy to provide more context!

🤖 Generated with Claude Code

Side-by-side coverage reporting: adds Datadog coverage upload
to the GitLab CI coverage job alongside the existing Codecov upload.
Uses datadog-ci CLI to upload the LCOV report to Datadog Code Coverage.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant