fix(internal/telemetry): don't use default dependency loader in telemetry tests (2)#4676
Conversation
…etry tests (2) 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.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files🚀 New features to boost your workflow:
|
🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: 6570d34 | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback! |
BenchmarksBenchmark execution time: 2026-04-18 10:05:52 Comparing candidate commit 6570d34 in PR branch Found 1 performance improvements and 0 performance regressions! Performance is the same for 268 metrics, 9 unstable metrics.
|
What does this PR do?
Extends #4673 to
TestMetricsDisabled.Motivation
Same
gotipfix as in previous PR, but this one went unnoticed accidentally. The whole telemetry suite has been tested undergotipto ensure no more fixes are needed.Reviewer's Checklist
make lintlocally.make testlocally.Unsure? Have a question? Request a review!