Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-enable UDP ListenAndServer tests #12901

Merged
merged 2 commits into from
Aug 2, 2022

Conversation

jspaleta
Copy link
Contributor

@jspaleta jspaleta commented Aug 2, 2022

Description:
Some UDP listener tests were disabled because of flaky behavior associated with local UDP address availability. Underling cause the the flaky behavior was the internal testutil function used to select an available local address was not UDP aware and was handing back free TCP local addresses.

This PR updates re-enables the skipped tests and updates them to use the network selectable test util function to find local UDP address.

Link to tracking Issue:
Issue: #10916
Previous PR: #12888

Testing:
I've done locally testing with the changes, but because this was originally a flaky test in production (essentially a race) it's unclear that local testing is sufficient.

Worst case these tests are still flaky in production are are disabled again.
Or they could flaky in a different way now. The port race might have hidden other race conditions.

Note
There could be other UDP components that need to be updated that have not yet been flagged as flaky tests due to the listening address race. On review of the use of testutil.GetAvailableLocalAddress inside the codebase I'm concerned that jaegerreceiver/jaeger_agent_test.go has a racy use of testutil.GetAvailableLocalAddress for UDP addresses, but since these tests have not been disabled yet I didn't want to disturb them with this change.

Documentation:
No documentation Added.

@jspaleta jspaleta requested a review from a team August 2, 2022 16:28
@jspaleta jspaleta requested review from jmacd and dmitryax as code owners August 2, 2022 16:28
@djaglowski djaglowski added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Aug 2, 2022
Copy link
Member

@djaglowski djaglowski left a comment

Choose a reason for hiding this comment

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

Thanks @jspaleta. Just a lint failure to correct.

receiver/statsdreceiver/transport/server_test.go Outdated Show resolved Hide resolved
@djaglowski djaglowski merged commit 8b6aef5 into open-telemetry:main Aug 2, 2022
bogdandrutu pushed a commit that referenced this pull request Aug 2, 2022
bogdandrutu added a commit that referenced this pull request Aug 2, 2022
Revert "re-enable UDP ListenAndServer tests  (#12901)"

This reverts commit 8b6aef5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants