Skip to content

test: make the ssh probe test pass on linux - #103

Merged
jaspermayone merged 2 commits into
mainfrom
jaspermayone/fix-probe-test
Nov 22, 2026
Merged

jaspermayone merged 2 commits into
mainfrom
jaspermayone/fix-probe-test

Conversation

@jaspermayone

Copy link
Copy Markdown
Member

CI on Linux failed on tests/compute/test_ssh_reach.py after #102. probe_tcp("127.0.0.1", 70000) returned False, because Linux takes the port modulo 65536 and tested port 4464.

  • probe_tcp now returns None for a port out of range, on every platform. Production already rejected such a port earlier, in reachable_address.
  • A new test covers a timeout, with a monkeypatched TimeoutError.

Checks: ruff passes, and the probe tests pass locally.

Council review

Size: light. Rounds: 1

Reviewer Round 1
Sonnet 9/10
Seat A (beam-free) 7/10 (its finding, a range guard in probe_tcp, is fixed)

@jaspermayone
jaspermayone merged commit 3a7dc78 into main Nov 22, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant