fix(internal/telemetry): don't use default dependency loader in telemetry tests#4673
Conversation
…etry tests Root cause: commit a45c8032 in golang/go: "cmd/go: include test deps in buildinfo" (merged ~March 17, 2026, landed in gotip). Fixed golang/go#76926. Before this, test binary BuildInfo.Deps was empty → dependencies.Payload() returned nil → only Logs in flush → test passed. After: test deps populate Deps → AppDependenciesLoaded joins flush → 2 payloads → MessageBatch → test fails. Apparently this is flaky but went unnoticed. Looking at historical data, odds to fail since the commit landed on gotip were 1 of every 10-ish.
🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: 44d8419 | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback! |
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
BenchmarksBenchmark execution time: 2026-04-17 17:01:23 Comparing candidate commit 44d8419 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 159 metrics, 8 unstable metrics.
|
…etry tests (2) (#4676) ### What does this PR do? Extends #4673 to `TestMetricsDisabled`. ### Motivation Same `gotip` fix as in previous PR, but this one went unnoticed accidentally. The whole telemetry suite has been tested under `gotip` to ensure no more fixes are needed. ### Reviewer's Checklist - [x] Changed code has unit tests for its functionality at or near 100% coverage. - [x] New code is free of linting errors. You can check this by running `make lint` locally. - [x] New code doesn't break existing tests. You can check this by running `make test` locally. - [x] Add an appropriate team label so this PR gets put in the right place for the release notes. Unsure? Have a question? Request a review! Co-authored-by: dario.castane <[email protected]>
What does this PR do?
Disables the default dependency loader on
internal/telemetrytestTestSendingFailures.Root cause: commit a45c8032 in golang/go: "cmd/go: include test deps in buildinfo" (merged ~March 17, 2026, landed in gotip). Fixed golang/go#76926 and introduced test deps populated on
BuildInfo.Deps.No other test are vulnerable to this.
Motivation
Fix
gotipscheduled runs: https://github.com/DataDog/dd-trace-go/actions/workflows/gotip-testing.yml?query=branch%3AmainBefore a45c8032, test binary
BuildInfo.Depswas empty →dependencies.Payload()returnednil→ onlyLogsin flush → test passed. After: test deps populateDeps→AppDependenciesLoadedjoins flush → 2 payloads →MessageBatch→ test fails.Apparently this is a flake but went unnoticed. Looking at historical data, odds to fail since the commit landed on gotip were 1 of every 10-ish runs.
Reviewer's Checklist
make lintlocally.make testlocally.Unsure? Have a question? Request a review!