Skip to content

setup saves the connection when the pod is slow to connect; stale saved default says so - #38

Merged
wardviaene merged 1 commit into
mainfrom
default-conn-hint
Oct 15, 2026
Merged

wardviaene merged 1 commit into
mainfrom
default-conn-hint

Conversation

@wardviaene

Copy link
Copy Markdown
Member

Found swapping pods on one Mac (analog baea06 unplugged, digital a1c5c7 set up):

  • benchpod setup registered a1c5c7, which had no Ethernet yet, and stopped at step 4 ("did not connect within 30s"). Step 5 never saved the connection, so the CLI kept baea06's USB address.
  • benchpod status then timed out at 10.237.8.85:8080 with no hint that this was the saved default.

Changes:

  • register returns errRegisteredNotConnected when the pod is registered but not connected in time; setup prints that it carries on and still saves the connection (step 5). Other register errors still stop it.
  • An unreachable pod at the saved default (not --connection / BENCHPOD_CONNECTION) adds: " is the saved default connection. If that pod is unplugged or you use another one, run benchpod discover … then benchpod set-connection …". Exit code unchanged (5).

Tests: TestSetupCarriesOnWhenTheRegisteredPodIsNotConnectedYet, TestSavedConnectionHint; checked the hint by hand against the stale default on this Mac.

Not in this PR: --connection a1c5c7 / benchpod-a1c5c7 is dialed as a hostname; to be verified with a pod plugged in.

🤖 Generated with Claude Code

…le saved default says so

Found swapping pods on one Mac: setup registered the new pod, which had no
Ethernet yet, and stopped at step 4 because it did not reach embeddedci.com
within 30s. Step 5 never ran, so the CLI kept the previous pod's USB address
and the next `benchpod status` timed out with no hint why.

- register returns errRegisteredNotConnected for that case (the registration
  stands); setup carries on to save the connection.
- An unreachable pod at the saved default (not --connection or
  BENCHPOD_CONNECTION) adds that the address is the saved default and to run
  discover / set-connection. The exit code is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wardviaene
wardviaene merged commit f66c4ef into main Oct 15, 2026
2 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