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
Refactor streaming code to support interop testing #16451
Conversation
@smarterclayton @lavalamp @liggitt here's my WIP on #16119 |
GCE e2e build/test failed for commit 85e4045030e14b1aa14880669d5b812a94704025. |
Labelling this PR as size/XXL |
85e4045
to
d56f720
Compare
GCE e2e test build/test passed for commit d56f72058496f49e116f30648a61e788bde0f364. |
GCE e2e test build/test passed for commit d56f72058496f49e116f30648a61e788bde0f364. |
@smarterclayton @lavalamp are you interested in having me continue with this? If so, I'll rebase and would appreciate feedback. If not, we can close it. |
I think it's a good thing to do, it's your call though whether it's more On Fri, Dec 11, 2015 at 2:38 PM, Yu-Ju Hong notifications@github.com
|
I'm looking for feedback on the current state of the PR to see if it's in the right direction. Also, when we move to HTTP/2, it's highly likely that the |
But I do also think helping David out with the group / version / kind apiserver changes are more important. |
The structure looks fine to me. Anything is better than the mess before. This is less bad. |
d56f720
to
9257673
Compare
@lavalamp @smarterclayton @liggitt PR updated (finally), PTAL |
I see I have some import direction issues that are causing the |
GCE e2e test build/test passed for commit 925767319e56e468c8dec23490a1df91d056d89e. |
Apparently the leaking is occurring because |
Well this was fun: pkg/kubelet/server -> pkg/kubelet/container -> https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/container/runtime_mock.go#L22 which ultimately imports httptest |
Ok, so the question is this: is it appropriate to put |
@ncdc, if the |
I'd prefer to fix runtime_mock.go if at all possible (by changing how the flag is registered). |
@smarterclayton any regular (non-test) file that pulls in testify's mock package will end up transitively pulling in net/http/httptest, and the httptest package has a flag that is registered as soon as you import the package. It's not just the Kubernetes code that has an issue... I found some code that the Mesos cloud provider imports (another Mesos library) that also has a mock, so even if we fix it here, it's not a complete fix... |
GCE e2e build/test passed for commit 54e8b98497daf287b3bd091dd71ad213e947b83a. |
@kubernetes/rh-cluster-infra PTAL if you have some time to review |
) | ||
|
||
// standardShellChannels returns the standard channel types for a shell connection (STDIN 0, STDOUT 1, STDERR 2) | ||
// along with the approprxate duplex value |
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.
Describe what protocols this supports. Typo in approximate
Are the existing E2E tests sufficient to cover this function? |
They cover whatever the current protocol is. The new unit tests cover version skew testing. |
Changes LGTM |
Squash and I'll tag |
Refactor exec/attach client and server code to better support interoperability testing of different client and server subprotocol versions.
83ea14f
to
4551ba6
Compare
Squashed |
GCE e2e build/test failed for commit 83ea14f586a79e1b9b5901710231f5d9873cb991. Please reference the list of currently known flakes when examining this failure. If you request a re-test, you must reference the issue describing the flake. |
GCE e2e build/test passed for commit 4551ba6. |
Removing LGTM because the release note process has not been followed. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 4551ba6. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 4551ba6. |
Automatic merge from submit-queue |
Refactor exec/attach/port forward client and server code to better
support interop testing of different client and server subprotocol
versions.
Fixes #16119