-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
576 Add methods to check SSH connections/commands with retry #705
576 Add methods to check SSH connections/commands with retry #705
Conversation
Just a heads up that @rhoboat is currently OOO, but they will take a look when they are back! |
hey @rhoboat! Bumping this for visibility. I can keep going, make alterations or close the PR. Thanks! |
Bump. |
88bc612
to
28138f6
Compare
rebased against master. This is still what I would consider a WIP or early PR, looking for feedback. Do we like this approach? Is it too clever by half? If we don't like it, how would you like to proceed? Thanks! |
Bump. If you all would like me to drop it, I will close. LMK! |
This looks good! I'm taking a closer look now... |
I think you're totally on the right track @ztbrown. Keep going, and feel free to ping me again when you're ready for a final review. |
That rocks! Thank you. I'll set aside some time to jump back in. Thanks again! |
Great! Also I wanted to apologize for missing your work on this months ago. 😞 |
Thank you but it's totally understandable. :) |
fe9607a
to
2c5b9a5
Compare
2c5b9a5
to
d9f6161
Compare
OK @rhoboat, looking for a final review. I've added the retry logic to |
It's odd that the checks for this PR are not running, i.e., tests. I'd like to see them succeed on CI. (Looking into this) |
I just kicked off the tests. |
lmk if you want me to rebase against master, squash down to one commit or just press the "resolve conflicts" button above. |
@ztbrown Would be best if you can rebase. Since it's a |
awesome. I'm on it. |
* CheckSshCommandEWithRetry * CheckSshCommandWithRetry * Tests for failing on max retries * Tests for passing after some retries
d9f6161
to
061deaa
Compare
@yorinasub17 done! |
Thanks! Just kicked off another build. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! And the test failure is unrelated to this change, so will move forward with merging this in! Thanks for your patience getting this over the finish line!
thank you everyone! 🎉 |
Early PR for feedback on approach for addressing #576
@rhoboat, I'm working on the helper methods you suggested in 576 and I want to make sure this is an approach you are comfortable with.
I wrote
CheckSshConnectionWithRetry
andCheckSshConnectionWithRetryE
to accept an optional function. They default to wrappingCheckSshConnectionE
, but the option to inject means we can swap it for a mock function and unit test much easier. My worry is that the interface might not be as clear as it could be to users. What do you think?If this looks good, I'll move on to
CheckSshCommandWithRetry
andCheckSshCommandWithRetryE
. Thanks!