Skip to content

Use Datadog Test Optimization and Code Coverage#93

Merged
anmarchenko merged 1 commit into
mainfrom
anmarchenko/datadog-test-optimization-ci
Jun 22, 2026
Merged

Use Datadog Test Optimization and Code Coverage#93
anmarchenko merged 1 commit into
mainfrom
anmarchenko/datadog-test-optimization-ci

Conversation

@anmarchenko

@anmarchenko anmarchenko commented Jun 22, 2026

Copy link
Copy Markdown
Member

What

Instrument the GitHub Actions test job with Datadog Test Optimization for Go tests when DATADOG_API_KEY is configured, and upload the generated Go coverprofile to Datadog Code Coverage. Keep the test job as a single go test -race -coverprofile=coverage.out -covermode=atomic ./... invocation.

Why

This lets ddtest report CI Visibility/Test Optimization data and Code Coverage data to Datadog without changing the CI test command shape. The signal-forwarding tests now inject SIGINT/SIGTERM through the executor signal channel instead of sending real process signals, which avoids conflicting with Datadog Go CI Visibility signal handling. Datadog Code Coverage supports Go coverprofiles and recommends uploading reports from CI with the official Datadog coverage upload GitHub Action.

Docs:

@anmarchenko anmarchenko force-pushed the anmarchenko/datadog-test-optimization-ci branch from a60b649 to 212c9b6 Compare June 22, 2026 07:49
@anmarchenko anmarchenko changed the title [codex] Instrument CI with Datadog Test Optimization Use Datadog Test Optimization and Datadog Code Coverage Jun 22, 2026
@datadog-datadog-prod-us1

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

Copy link
Copy Markdown

Tests  Code Coverage

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 81.82%
Overall Coverage: 87.49%

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

@anmarchenko anmarchenko force-pushed the anmarchenko/datadog-test-optimization-ci branch from 212c9b6 to 1e53cc3 Compare June 22, 2026 08:41
@anmarchenko anmarchenko changed the title Use Datadog Test Optimization and Datadog Code Coverage Use Datadog Test Optimization in CI Jun 22, 2026
@anmarchenko anmarchenko force-pushed the anmarchenko/datadog-test-optimization-ci branch from 1e53cc3 to a11c393 Compare June 22, 2026 09:10
@anmarchenko anmarchenko changed the title Use Datadog Test Optimization in CI Use Datadog Test Optimization and Datadog Code Coverage products Jun 22, 2026
@anmarchenko anmarchenko changed the title Use Datadog Test Optimization and Datadog Code Coverage products Use Datadog Test Optimization and Code Coverage in CI Jun 22, 2026
@anmarchenko anmarchenko force-pushed the anmarchenko/datadog-test-optimization-ci branch from a11c393 to 1f07fdc Compare June 22, 2026 09:24
@anmarchenko anmarchenko marked this pull request as ready for review June 22, 2026 09:25
@anmarchenko anmarchenko requested a review from a team as a code owner June 22, 2026 09:25
@anmarchenko anmarchenko changed the title Use Datadog Test Optimization and Code Coverage in CI Use Datadog Test Optimization and Code Coverage Jun 22, 2026

@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: 1f07fdc85e

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml Outdated
@anmarchenko anmarchenko force-pushed the anmarchenko/datadog-test-optimization-ci branch 3 times, most recently from 34b2a43 to 44d6ffd Compare June 22, 2026 10:01
@anmarchenko anmarchenko force-pushed the anmarchenko/datadog-test-optimization-ci branch from 44d6ffd to 0a6bb48 Compare June 22, 2026 10:34
@anmarchenko anmarchenko merged commit 6f3f70a into main Jun 22, 2026
4 checks passed
@anmarchenko anmarchenko deleted the anmarchenko/datadog-test-optimization-ci branch June 22, 2026 11:09
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