-
Notifications
You must be signed in to change notification settings - Fork 292
test(iroh): Make endpoint_relay_connect_loop
not flaky
#3402
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
Merged
matheus23
merged 7 commits into
main
from
matheus23/less-flakey-ep-relay-connect-loop-test
Jul 25, 2025
Merged
test(iroh): Make endpoint_relay_connect_loop
not flaky
#3402
matheus23
merged 7 commits into
main
from
matheus23/less-flakey-ep-relay-connect-loop-test
Jul 25, 2025
Conversation
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
Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/3402/docs/iroh/ Last updated: 2025-07-25T10:15:13Z |
Just things I found while going through code relevant to the timing of things.
1 task
flub
approved these changes
Jul 25, 2025
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.
Description
endpoint_relay_connect_loop
was flaky before. This should fix this issue. It was last marked flaky (but for windows only) in #3354.What seems to have happened:
To work around this, I'm starting the server endpoint and waiting for it to have a relay address.
IMO this is reasonable to do in tests.
I've also made the tests use
Connection::close
andConnection::closed
properly and removedSendStream::stopped
andRecvStream::read_to_end(0)
calls.Notes
There's some other drive-by changes. Sorry about that, but IMO they're kinda too small for their own PRs:
net_report
thought thatWatchable::set
would returnErr
when there's no more watchers listening, but that's incorrect: It returnsErr
fromset
when the value set is the same as the currently stored value.net_report
ActiveRelayActor
.Change checklist