resolve issue with local faucet overlapping ports in tests / new api#7909
Merged
alexpyattaev merged 17 commits intoanza-xyz:masterfrom Sep 10, 2025
Merged
resolve issue with local faucet overlapping ports in tests / new api#7909alexpyattaev merged 17 commits intoanza-xyz:masterfrom
alexpyattaev merged 17 commits intoanza-xyz:masterfrom
Conversation
13381c0 to
00a59d0
Compare
This was referenced Sep 5, 2025
Author
|
I see that CI failed due to... which didn't happen by running locally --- edit |
|
I guess you will see error when running Did you try adding separate dependency and dev-dependency, where only dev-dependency has feature DCOU set? I.e. this line in cli/Cargo.toml seems to be a problem: |
steviez
reviewed
Sep 5, 2025
e19223c to
38e61c3
Compare
38e61c3 to
25411ad
Compare
382509b to
566c4cc
Compare
5f77258 to
96d431b
Compare
steviez
reviewed
Sep 9, 2025
steviez
left a comment
There was a problem hiding this comment.
Just one last minor thing and think we're good then
96d431b to
e556d4c
Compare
steviez
approved these changes
Sep 9, 2025
Author
|
Thank you guys! :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Tests which engage ports binding are still randomly flaky.
While looking for source of the evil, i found that test_bench_tps_test_validator calls run_local_faucet which takes a port randomly.
This isn't correct behaviour as the randomly picked port might overlap with one of ports allocated thru unique_port_range_for_tests
Originally resolved #7736 then reverted and the alternate PR is here, as suggested in #7736 (comment)
Summary of Changes
New API in faucet has been introduced:
run_local_faucet_with_unique_port_for_testsrun_local_faucet_with_configrun_local_faucet_for_testsLocalFaucetConfigBenchmarks has been migrated:
solana-accounts-cluster-benchsolana-bench-tpsTests has been migrated:
solana-faucetsolana-dossolana-cli