-
Notifications
You must be signed in to change notification settings - Fork 213
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
reenable flaky tests in magicendpoint #1183
Labels
Comments
dignifiedquire
added a commit
that referenced
this issue
Jul 7, 2023
dignifiedquire
added a commit
that referenced
this issue
Jul 7, 2023
* test(iroh-net): disable flaky MagicEndpoint tests ref #1183 * fixup
flub
added a commit
that referenced
this issue
Jul 19, 2023
This brings back the MagicEndpoint connect-close test and attempts to make it more reliable. - Most importantly the client sends one message to the server before the server closes the connection. This is a crucial bit of synchronisation for the interaction to be deterministic. - Both client and server run in a task again. Keeps things a bit more local. - The endpoints are now created in the spawned tasks, this ensures we get nice span prefixes on all the logging for each thus distinguishing the log output. - The run_derp_and_stun function is moved into test_utils. Maybe it belongs better there? - The run_derp_and_stun function now returns a drop guard for cleanup. This ensures that whatever happens to the test, regardless of assertions, the cleanup will run. It does mean for a successful test the test will no longer delay exiting before the cleanup is finished (was already not the case for the STUN server). This is fine though, the servers both bind to 127.0.0.1:0 so do not affect anything else while they are still shutting down. - The run_derp_and_stun function now disables IPv6 in the returned DerpMap. Previously it would trigger a DNS lookup. But we only bind on IPv4 so skip this noise. - A couple of minor logging output adjustments. Part of #1183
3 tasks
flub
added a commit
that referenced
this issue
Jul 24, 2023
This brings back the MagicEndpoint connect-close test and attempts to make it more reliable. - Most importantly the client sends one message to the server before the server closes the connection. This is a crucial bit of synchronisation for the interaction to be deterministic. - Both client and server run in a task again. Keeps things a bit more local. - The endpoints are now created in the spawned tasks, this ensures we get nice span prefixes on all the logging for each thus distinguishing the log output. - The run_derp_and_stun function is moved into test_utils. Maybe it belongs better there? - The run_derp_and_stun function now returns a drop guard for cleanup. This ensures that whatever happens to the test, regardless of assertions, the cleanup will run. It does mean for a successful test the test will no longer delay exiting before the cleanup is finished (was already not the case for the STUN server). This is fine though, the servers both bind to 127.0.0.1:0 so do not affect anything else while they are still shutting down. - The run_derp_and_stun function now disables IPv6 in the returned DerpMap. Previously it would trigger a DNS lookup. But we only bind on IPv4 so skip this noise. - A couple of minor logging output adjustments. - turn cleanups into "real" drop guards Part of #1183
flub
added a commit
that referenced
this issue
Jul 26, 2023
I have sufficient information for now to work on improving this. No point in keeping a known flaky test in CI for now. Part of #1183
3 tasks
github-merge-queue bot
pushed a commit
that referenced
this issue
Jul 26, 2023
I have sufficient information for now to work on improving this. No point in keeping a known flaky test in CI for now. Part of #1183
As far as I can tell, these tests are now enabled again: Lines 1161 to 1164 in 1d3f3fa
|
rklaehn
pushed a commit
to n0-computer/iroh-blobs
that referenced
this issue
Oct 22, 2024
* test(iroh-net): disable flaky MagicEndpoint tests ref n0-computer/iroh#1183 * fixup
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: