-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add WebSocket support and e2e test to verify. #3240
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.
@tcnghia: 0 warnings.
In response to this:
This PR requires Go 1.12rc1 to get WebSocket support in ReverseProxy.
If we later decide that we want 1.12 for all of Knative we should pull
Go 1.12rc1 installation into base image or knative/test-infra.Fixes #
Proposed Changes
- Install Go 1.12rc1.
- Add websocket support and e2e test to verify.
Release Note
Add WebSocket support.
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.
test/presubmit-tests.sh
Outdated
echo "> Installing Go 1.12" | ||
go get golang.org/dl/go1.12rc1 | ||
go1.12rc1 download | ||
cp $GOPATH/bin/go1.12rc1 $(which go) |
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.
I'd like to know how we fix this. cc @chaodaiG
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.
Should golang update be independent of the test CL?
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.
Yeah, @chaodaiG is helping
test/presubmit-tests.sh
Outdated
echo "> Installing Go 1.12" | ||
go get golang.org/dl/go1.12rc1 | ||
go1.12rc1 download | ||
cp $GOPATH/bin/go1.12rc1 $(which go) |
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.
Should golang update be independent of the test CL?
/assign @vagababov I addressed all of your previous comments. |
Kicking the sockpuppet |
test/presubmit-tests.sh
Outdated
echo "> Installing Go 1.12" | ||
go get golang.org/dl/go1.12rc1 | ||
go1.12rc1 download | ||
cp $GOPATH/bin/go1.12rc1 $(which go) |
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.
Yeah, @chaodaiG is helping
/hold for golang update. |
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.
Looks fine to me.
/lgtm
/hold
pkg/network/websocket/hijack_test.go
Outdated
// hijackable is a http.ResponseWriter that implements http.Hijacker | ||
type hijackable struct { | ||
http.ResponseWriter | ||
w *bufio.ReadWriter |
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.
does this have to be *bufio.ReadWriter
or just io.ReadWriter
?
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.
I use that in the return value of Hijack() to test the plumbing, so have to be bufio.ReadWriter
The following is the coverage report on pkg/.
|
- Move pkg to address feedback. Fix README.md file name. - Address code style feedback. - Fix markdown URL. - Remove go 1.12 installation
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mattmoor, tcnghia, vagababov 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 |
/hold cancel |
Proposed Changes
Release Note