Open
Conversation
drewmalin
commented
Mar 9, 2026
Comment on lines
-315
to
-317
| // netbird up reconfigures network routes; give them a moment | ||
| // to settle before making further RPC calls. | ||
| time.Sleep(2 * time.Second) |
Contributor
Author
There was a problem hiding this comment.
This is solved by the backoff during ssh
There was a problem hiding this comment.
Pull request overview
This PR changes the behavior of the runSetup function in the registration flow so that a missing or failed netbird tunnel setup now halts registration with a proper error, rather than silently warning and proceeding to the (doomed-to-fail) SSH installation step. The terminal.Terminal parameter is also removed from runSetup since it's no longer used for printing warnings.
Changes:
runSetupis refactored to return anerrorinstead of printing warnings via the terminal.runRegisteris updated to propagate therunSetuperror and abort registration.- The
time.Sleep(2 * time.Second)that settled network routes after a successful netbird setup is silently dropped as a side effect of the refactor.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
c348322 to
5a536a7
Compare
5a536a7 to
9e9eb1d
Compare
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.
Currently we treat this as a warning and proceed with the (doomed to fail) SSH installation.