Use Datadog Test Optimization and Code Coverage#93
Merged
Conversation
a60b649 to
212c9b6
Compare
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: 0a6bb48 | Docs | Datadog PR Page | Give us feedback! |
212c9b6 to
1e53cc3
Compare
1e53cc3 to
a11c393
Compare
a11c393 to
1f07fdc
Compare
There was a problem hiding this comment.
💡 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".
34b2a43 to
44d6ffd
Compare
44d6ffd to
0a6bb48
Compare
gnufede
approved these changes
Jun 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Instrument the GitHub Actions test job with Datadog Test Optimization for Go tests when
DATADOG_API_KEYis configured, and upload the generated Go coverprofile to Datadog Code Coverage. Keep the test job as a singlego 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: