Increase port-forward timeout to 1s to fix e2e test#1477
Increase port-forward timeout to 1s to fix e2e test#1477mikebrow merged 1 commit intocontainerd:masterfrom
Conversation
|
Hi @saschagrunert. Thanks for your PR. I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
I didn't know there were kubernetes tests covering this, otherwise, I should've tested the patch, sorry. Anyway, I can confirm that the timeout it's too short and make the e2e Kubernetes fail, using 1 second the tests pass. |
|
LGTM /ok-to-test |
|
@dims: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn 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 yes please! |
We encountered two failing end-to-end tests after the adoption of containerd#1470 in cri-o/cri-o#3749: ``` Summarizing 2 Failures: [Fail] [sig-cli] Kubectl Port forwarding With a server listening on 0.0.0.0 that expects a client request [It] should support a client that connects, sends DATA, and disconnects test/e2e/kubectl/portforward.go:343 [Fail] [sig-cli] Kubectl Port forwarding With a server listening on localhost that expects a client request [It] should support a client that connects , sends DATA, and disconnects test/e2e/kubectl/portforward.go:343 ``` Increasing the timeout to 1s fixes the issue. Signed-off-by: Sascha Grunert <sgrunert@suse.com>
a9dfd88 to
e2cedb9
Compare
|
/ok-to-test |
|
It seems that socat approach had these failures too. |
Is the actual issue that the client (container runtime) does not know when there is no more content to be expected from the streaming server? If yes, then I'm wondering if we can optimize there: |
IMO It's a test case error. @saschagrunert The test sends 'abc' to the stream for it's writer on the port, then immediately closes their writer. Then the test starts reading. At some point it is expected that the code in the container is getting ready to get use |
|
Thank you for the insights @mikebrow, I can propose a PR to fix that and we can reduce the timeout here again afterwards. :) |
Sure, thx. I like your idea for using an http idle wait after one or the other side has been closed, I had considered that as well but figured it would need to be in this short time range anyway so.. Maybe a config value for the timeout.. |
|
Good, a fix the e2e test is incoming here: kubernetes/kubernetes#91045 |
We encountered two failing end-to-end tests after the adoption of #1470 in cri-o/cri-o#3749:
Increasing the timeout to 1s fixes the issue.
cc @aojea