-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Refactor and improve SSH gateway compatibility with some automatic client #7772
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
Conversation
Codecov Report
@@ Coverage Diff @@
## cw/fix-4779 #7772 +/- ##
============================================
Coverage 28.54% 28.54%
============================================
Files 39 39
Lines 3293 3293
============================================
Hits 940 940
Misses 2301 2301
Partials 52 52
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
0e2e6e6
to
e60a4f2
Compare
cd5b8c4
to
5030f85
Compare
d155f5c
to
c886169
Compare
c7097c3
to
ceb4762
Compare
433efca
to
f99fde5
Compare
/werft run 👍 started the job as gitpod-build-pd-ssh-gateway-fix.12 |
3285466
to
4d185f4
Compare
How does one test that it does not break something else? Are there ways to add unit tests or something? Please fill in |
a8f5eaa
to
41a0ecc
Compare
@akosyakov |
/werft run with-clean-deployment 👍 started the job as gitpod-build-pd-ssh-gateway-fix.17 |
103c010
to
ed9b93e
Compare
Please write down manual tests. In long term can we mock Gitpod internals and write tests against them to focus on SSH bits? I don't see how we can review and be sure about quality about one or another way of testing it. |
ed9b93e
to
20994db
Compare
20994db
to
e66e66d
Compare
💯 agreed. We can mock the info provider within ws-proxy and start SSH server using golang's |
@iQQBot as @akosyakov pointed out, I'd also appreciate some detail in the "How to test" section. I'd go through those tests then. Code-wise the changes look good - thank you for fixing the blunders in my original changeset (lesson learned: don't get cocky and don't rush code). |
/werft run with-clean-slate-deployment 👍 started the job as gitpod-build-pd-ssh-gateway-fix.22 |
I ran the code outlined in #7771: it worked when run against this branch, it fails when run against production. I reckon that for now we're good. Considering the time-sensitive manner of this change, let's merge it. @iQQBot Please, for all future PRs do fill in the "How to test" section - if it's manual tests that's fine, but others need to know how to test the PR. /lgtm |
LGTM label has been added. Git tree hash: 282b72230d97a63deb90e91f901f91c50b950446
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csweichel Associated issue: #7771 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 |
@csweichel Thanks for review, I will update "How to test" section later |
Description
When use golang ssh client connect to workspace and execute some command, it return a error Err:wait: remote command exited without exit status or exit signal
This is because golang client send EOF flag too early
Related Issue(s)
Fixes #7771
How to test
Release Notes
Documentation