Skip to content

Add coverage checks#390

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
masterfrom
mark.kirichenko/enable-coverage
Jun 23, 2026
Merged

Add coverage checks#390
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
masterfrom
mark.kirichenko/enable-coverage

Conversation

@atanzu

@atanzu atanzu commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Integrate this repository with DD Code Coverage to enable coverage reports in CI, and set initial overall and patch thresholds to reasonable first try numbers.

@atanzu atanzu force-pushed the mark.kirichenko/enable-coverage branch 2 times, most recently from 42a5aa0 to 037e2df Compare June 23, 2026 12:35
@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Jun 23, 2026

Copy link
Copy Markdown

Code Coverage

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

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 30da9cf | Docs | Datadog PR Page | Give us feedback!

atanzu added 2 commits June 23, 2026 14:56
Integrate with DD Code Coverage to enable coverage reports in CI
pipeline. Set overall threshold to be 83% (current coverage state) and
patch gate to 90% as a reasonable first try.

Signed-off-by: Mark Kirichenko <mark.kirichenko@datadoghq.com>
Exclude 1.21 due to a known Macos linker bug.

Signed-off-by: Mark Kirichenko <mark.kirichenko@datadoghq.com>
@atanzu atanzu force-pushed the mark.kirichenko/enable-coverage branch from 037e2df to 30da9cf Compare June 23, 2026 12:57
@atanzu atanzu marked this pull request as ready for review June 23, 2026 13:01
@atanzu atanzu requested a review from a team as a code owner June 23, 2026 13:01

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

Copy link
Copy Markdown

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: 30da9cf49f

ℹ️ 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".

- name: Upload coverage to Datadog
uses: datadog/coverage-upload-github-action@d9548b1c3c4ab639d5d3ab29a1508af188975f77
with:
api_key: ${{ secrets.DD_API_KEY }}

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 Skip coverage upload when the secret is unavailable

Because this workflow also runs on pull_request, PRs from forks and Dependabot events do not receive repository secrets, so secrets.DD_API_KEY resolves empty while the Datadog upload action requires api_key. In those contexts the new coverage job will fail after the tests pass, blocking or red-marking otherwise valid external PRs; guard this step/job to trusted events or make the upload conditional on the secret being present.

Useful? React with 👍 / 👎.

@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot merged commit 1081d27 into master Jun 23, 2026
103 checks passed
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot deleted the mark.kirichenko/enable-coverage branch June 23, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants