Skip to content

Conversation

@sanchda
Copy link

@sanchda sanchda commented Dec 12, 2025

Statix tests can flake out on machines with a Datadog agent, since they can erroneously bind to the typical UDP port (8125) and then respond to traffic intended for a different destination. It would be possible to isolate the tests to their own network namespace, but just jiggling the port is a fairly common, no-dep solution.

Example flake:

  1) test measure/2,3 (StatixTest)
     test/statix_test.exs:119
     Unexpectedly received message {:test_server, %{host: {127, 0, 0, 1}, port: 37861, socket: #Port<0.6>}, "datadog.trace_agent.trace_writer.traces:0|c|#version:7.58.2\n"} (which matched _any)
     code: refute_received _any
     stacktrace:
       test/statix_test.exs:137: (test)

@sanchda sanchda marked this pull request as ready for review December 12, 2025 14:56
@sanchda sanchda force-pushed the sanchda/fix_flaky_tests branch from 4ca3bfc to 856a072 Compare December 17, 2025 20:45
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