-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Mocked SSH server and enable ssh test on windows #1911
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
Mocked SSH server and enable ssh test on windows #1911
Conversation
|
@efiop I have just supported Mocked SSH server which is not rely on OS ssh binary. And the test case on Linux is passed. |
|
@efiop Do you know why it is timeout for [1] https://ci.appveyor.com/project/iterative/dvc/builds/24039752#L2917 |
|
@ag613915cao I believe that timeout is not related to that note in our code. You should probably simply try increasing the timeout in |
Thanks @efiop . I tried to increased timeout from 600 to 1800 but it is still failed. Let's me try to increase it more to see. |
|
@ag613915cao got it. It was simply my first instinct 🙂 Can't say what happened here right away, need to take a closer look 🙁 |
|
@ag613915cao Timeout of 9000 is way too much :) I was wondering if maybe increasing it a bit would help, but waiting for several hours to run this test is not going to tell us anything. Btw, please rebase on top of master, there were a few changes related to |
|
@efiop Indeed! The reason I set it to 9000 to see if it is move forward. Because I couldn't debug it in local without any hints or source of reason. |
|
@efiop After prepared local environment I found the root cause. It is not related to our code base as you mentioned. It is just because |
|
@efiop I have updated the patch based on your comments. Kindly please take a look and let me know if it need to update something. Thanks a lot |
|
Just resolved merge conflict (no logic change) |
|
@efiop I updated the patch with your suggestion :) Kindly please help to take a look and land it if possible. |
|
@efiop I updated the patch as you requested. Kindly please take a look and let me know if it needs to update something. Thanks a lot :) |
|
@efiop I think all the points has been addressed :) |
- Keep current SSH remote connection test on real system - Faked and Mocked SSH server which running on both Linux and Windows - Add corresponding tests Fixed #1704
efiop
left a comment
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.
Thanks! 🙂
|
@efiop I'm happy to work with you. :) |
|
@ag613915cao |
|
@Suor I don't know who you are and don't like this working style. If you feel it needs to improve, please open new issue. Or at least, please provide feedback before the patch is merged. |
| key_path = os.path.join(here, "{0}.key".format(user)) | ||
|
|
||
|
|
||
| @pytest.yield_fixture() |
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.
Hi @ag613915cao , I think @Suor was referring to using this decorator instead of just @pytest.fixture. See the example in this file, a few lines above.
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.
@shcheklein Yes. I know about that. What I mean here is the way reviewer provide feedback to contributor(s). I have at least 5 years contributing to open source projects. I can realize that.
For this point: I will update this within today. Thank you for your consideration.
|
@ag613915cao I didn't mean to offend you. I saw a deprecated decorator, rechecked it and posted the comment here for this to not get lost. I understand that it would be easier if I'd posted this before the PR got merged, but I only saw it after. |
|
@Suor Sure. I will update the point within today to make you feel satisfaction. Thank you.
|
Fixed #1704