Skip to content

Add Datadog code coverage upload#262

Merged
ManuelPalenzuelaDD merged 7 commits intomainfrom
add-datadog-coverage
Apr 9, 2026
Merged

Add Datadog code coverage upload#262
ManuelPalenzuelaDD merged 7 commits intomainfrom
add-datadog-coverage

Conversation

@ManuelPalenzuelaDD
Copy link
Copy Markdown
Contributor

What does this PR do?

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

Replaces fork PR #249.

Add DataDog/coverage-upload-github-action step to the coverage job
in test.yml to upload coverage reports to Datadog Code Coverage
side-by-side with the existing Codecov upload. This enables
comparison of coverage data between both systems as part of the
Codecov-to-Datadog migration.
Required by DataDog org policy: all actions must be pinned to
full-length commit SHAs.
The DataDog/coverage-upload-github-action is blocked by the
enterprise action allowlist (it depends on
datadog/install-datadog-ci-github-action which is not permitted).
Fall back to npx @datadog/datadog-ci CLI directly.
@datadog-prod-us1-6
Copy link
Copy Markdown

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

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

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

@ManuelPalenzuelaDD ManuelPalenzuelaDD marked this pull request as ready for review April 9, 2026 09:02
@ManuelPalenzuelaDD ManuelPalenzuelaDD requested a review from a team as a code owner April 9, 2026 09:02
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 101cefaed1

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .github/workflows/test.yml Outdated
- name: Upload coverage to Datadog
if: steps.dd-sts.outputs.api_key != ''
continue-on-error: true
run: npx @datadog/datadog-ci coverage upload coverage_data
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Pin datadog-ci package version in coverage upload step

Invoke datadog-ci with a fixed version instead of bare npx @datadog/datadog-ci, because this currently resolves the latest package on every workflow run and makes coverage uploads non-deterministic. A future CLI release can change behavior or flags and silently stop Datadog uploads here (especially since this step is continue-on-error), which undermines parity validation with Codecov for the same commit.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If possible and if you agree I'd rather indeed use a pined version of the tool, for reproducibility. Thanks in advance!

@ManuelPalenzuelaDD ManuelPalenzuelaDD merged commit 2a20c1f into main Apr 9, 2026
26 checks passed
@ManuelPalenzuelaDD ManuelPalenzuelaDD deleted the add-datadog-coverage branch April 9, 2026 13:00
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.

2 participants