Skip to content

fix(tests): remove stale _dd.compute_stats:1 assertion from logs integration test#1136

Merged
duncanista merged 1 commit intomainfrom
tianning.li/SVLS-8767
Mar 27, 2026
Merged

fix(tests): remove stale _dd.compute_stats:1 assertion from logs integration test#1136
duncanista merged 1 commit intomainfrom
tianning.li/SVLS-8767

Conversation

@litianningdatadog
Copy link
Copy Markdown
Contributor

@litianningdatadog litianningdatadog commented Mar 27, 2026

https://datadoghq.atlassian.net/browse/SVLS-8767

Summary

  • _dd.compute_stats was moved from general log tags to trace-only payloads in commit 55659d93
  • The test_logs integration test mock still required _dd.compute_stats:1 in the log body
  • The mock never matched → httpmock returned non-2xx → Flusher::send() retried infinitely → test hung forever

Test plan

  • cargo test --test logs_integration_test test_logs passes and completes in < 1s

🤖 Generated with Claude Code

…gration test

The _dd.compute_stats tag was moved from general log tags to trace-only
payloads in commit 55659d9. The integration test mock still required
this tag in the log body, causing the mock to never match, which triggered
an infinite retry loop in Flusher::send() and hung the test indefinitely.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a hanging test_logs integration test by updating the httpmock request matcher to stop expecting a trace-only tag (_dd.compute_stats:1) in the logs payload.

Changes:

  • Remove the _dd.compute_stats:1 body assertion from the logs intake mock.
  • Eliminate the now-unused regexp_compute_state variable from the test.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@duncanista duncanista merged commit 672f268 into main Mar 27, 2026
55 checks passed
@duncanista duncanista deleted the tianning.li/SVLS-8767 branch March 27, 2026 21:08
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.

3 participants