-
Notifications
You must be signed in to change notification settings - Fork 62
Flaky in in_process_relay_test: "connection refused" #507
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
Comments
#507 - it's 1-3% flaky. I haven't looked into the details. Setting this flag makes Bazel rerun the test so it's less likely to confuse people making unrelated changes or affect presubmits.
Here are my investigations core/src/go/tests/relay/in_process_relay_test.go Lines 105 to 107 in acee658
It is possible for the request to come in before the backend is ready. core/src/go/tests/relay/in_process_relay_test.go Lines 27 to 39 in acee658
The tests listens on port 0, letting the kernel pick a free port, immediately close the listener, then use the same port to start the server. But closing the listener does not immediately free up the port, it is possible for the address to still be bounded when starting the server. Some ideas to fix:
|
#507 - it's 1-3% flaky. I haven't looked into the details. Setting this flag makes Bazel rerun the test so it's less likely to confuse people making unrelated changes or affect presubmits.
I observed the following flake:
I'll add flaky=true to mitigate this.
The text was updated successfully, but these errors were encountered: