Repository navigation
tools: unsloth_probe self-test binds the SSE stub on port 0 (engine#3193) - #3309
Merged
Merged
Conversation
…193) The self-test started tools/sse_stub.py on a derived fixed port (53990 + len(shape)), so two overlapping runs on a shared box collided and the loser reported 'Connection refused' - read as a parser failure. The stub now accepts port 0, prints the port it bound as its first stdout line, and the probe reads it back instead of sleeping and guessing. Measured on ryzen: 3 overlapping runs of the old code -> 1 PASS, 2 FAIL (2 of 3 shapes); 6 overlapping runs of this code -> 6 PASS (3 of 3). Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
enabled auto-merge (squash)
November 22, 2026 15:15
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
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.
Advances #3193 (the fixed-port flake noted on the issue 2026-11-22T03:10Z).
What:
tools/unsloth_probe.py --self-teststartedtools/sse_stub.pyon a derived fixed port (53990 + len(shape)). Two overlapping runs (two lanes' pre-PR gates, a parallel ctest) collided, and the loser printedConnection refused, which reads like a stream-parser failure. Now the stub accepts port0, prints the port it bound as its first stdout line, and the probe reads that line instead ofsleep(0.6)+ guess. If the stub dies before binding, the probe fails that shape withstub did not report its port, not a hang or a skip.Measured (ryzen, CPU only):
--self-testruns: 1 PASS, 2FAIL (2 of 3 stream shapes read), rc=1PASS (3 of 3 stream shapes read), rc=0Checks:
bash scripts/pre-pr-checks.sh --base origin/main→ all 16 checks green, 4 skipped, 0 could not be told. Existing ctest rowunsloth_probe_selfcovers it, so no new registration. Two files touched, no behaviour change outside the self-test (the stub's positional port still accepts a fixed number).🤖 Generated with Claude Code