Repository navigation
test(mqtt): accept a reset TLS peer in the relay teardown test - #308
Merged
Merged
Conversation
The TLS variant of the relay teardown test expected the robot side to read a clean EOF. The proxy shuts the socket down without a TLS close_notify, so on Linux the robot's read can raise BrokenPipeError or SSLEOFError instead. This failed the v1.3.0-rc1 release build. Accept those for TLS sockets only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lash-L
added a commit
that referenced
this pull request
Nov 29, 2026
Bump the package to 1.3.0-rc2 and point the opt-in Beta add-on at it. The v1.3.0-rc1 release build failed on a flaky test (fixed in #308), so no rc1 image was published; rc2 replaces it and adds #312, #313 and #314. The stable add-on stays on 1.2.1. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
The TLS variant of
test_close_conn_endpoints_wakes_relay_threads_blocked_in_recv, added in #263, is flaky on Linux. It failed thev1.3.0-rc1release build on several attempts and #263's PR run, but passed onmain's push run for the same commit.Only the last assertion fails: the robot side's
recv(1) == b"". By then the relay threads have already exited cleanly with no errors, which is what the test is for. The proxy shuts the socket down without a TLSclose_notify, so the robot's read can return EOF, raiseSSLEOFError, or raiseBrokenPipeError/ConnectionResetErrorwhen its TLS layer writes during the read.This adds
_assert_peer_closed(), which accepts those exceptions for TLS sockets only. Plain sockets must still read a clean EOF. There are no server code changes.🤖 Generated with Claude Code