streamer, tests: migrate to non-overlapping ports#6895
streamer, tests: migrate to non-overlapping ports#6895lijunwangs merged 8 commits intoanza-xyz:masterfrom
Conversation
|
@alexpyattaev or @apfitzge when you get a chance, can I have you take a look? |
|
It looks correct to me on skim, but it's a bit verbose to do this everywhere. Can we not have a |
I looked at the https://github.com/anza-xyz/agave/blob/master/net-utils/src/sockets.rs#L27-L45 and to me, the function does utilize the nextest env variable to coordinate the tests globally, there is also the atomic SLICE.. it looks like we could skip mutex in this case. Obviously, correct me if im wrong 🙏 To address the unnecessary verbosity, i introduced the helper function in Please tell me if that is the correct place for it and if so then how would you like to merge the changes to Thank you for the suggestion 🙏 i do appreciate a lot any constructive input. |
|
Please do not fix what is not broken =) |
alexpyattaev
left a comment
There was a problem hiding this comment.
Let us not create mutable iterators where direct access would achieve the same result=)
|
@alexpyattaev thank you for pointing these out / fixed 🙏 |
Thank you! 🙏 |
ecf24b2 to
08d3893
Compare
|
This is currently blocked by #6957 |
da41b28 to
020d7ad
Compare
6fd128c to
84dd696
Compare
84dd696 to
11c04b2
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6895 +/- ##
=========================================
- Coverage 83.2% 83.2% -0.1%
=========================================
Files 852 852
Lines 373846 373845 -1
=========================================
- Hits 311408 311353 -55
- Misses 62438 62492 +54 🚀 New features to boost your workflow:
|
|
Thank you! |
Problem
A bunch of tests still relies on either hardcoded ports or bind_to_localhost and bind_to_unspecified. This creates flaky tests in cases where unique port ranges are needed.
Related to #6886 #7055
Summary of Changes
Migrated tests to non-overlapping ports.
This PR should close migration for the Streamer package.