-
Notifications
You must be signed in to change notification settings - Fork 50
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
ssh: Recreate connection on retries in setupProxy #309
Conversation
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
The previous fix was not working as expected, as the ssh go code will close the underlying connection when there's a failure. This was causing the retries for CreateBastion() to fail, as after the first failure it would try to use a closed connection. This commit recreates the connection each time before calling CreateBastion() to fix this. This also simplifies the code. Signed-off-by: Christophe Fergeau <[email protected]>
@cfergeau guess this needs to be merged now. |
CI is failing with following ( tried retest twice and both the time same). Not sure if this is because this PR or something else.
|
The CI failure seems related to |
code LGTM |
i re-ran the tests, assume it is a flake ... dealer's choice /hold |
Yeah, also ran the tests on a macos13 x86_64 machine, and I could not reproduce the issue. |
Since this PR has the 'hold' label, I'll revert the changes for a try, and see if CI behaves better. |
Ok, even git master is currently failing, even if it was green yesterday. Let's ignore the red CI for now, I'll take a closer look with a dummy "debug CI" PR |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cfergeau, jakecorrenti The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/unhold |
And with one more try it's green, go figure! |
Trying to readd /lgtm, but not sure I'm allowed to on my own PRs |
@cfergeau: you cannot LGTM your own PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/lgtm |
The previous fix was not working as expected, as the ssh go code will
close the underlying connection when there's a failure.
This was causing the retries for CreateBastion() to fail, as after the
first failure it would try to use a closed connection.
This commit recreates the connection each time before calling
CreateBastion() to fix this. This also simplifies the code.