-
Notifications
You must be signed in to change notification settings - Fork 1.3k
test: Handle errors relate network in port-fowarding #12937
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
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 for the PR.
But from my testing recent days, I did not encounter the port-forward error.
So I think should we need to enhance the port-forward error again because you have enhanced it in the last PR already.
if count < connectFailureMaxTries { | ||
return err.Error() == errorDialingBackendEOF | ||
} |
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 we check if the error is errorDialingBackendEOF, then retry?
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.
Yes.
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 haven't seen you change this. 🤔
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.
@jenting
Sorry, I may misunderstand. Can I ask you to rephrase?
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.
Never mind, my thought was the same logic
if err.Error() == errorDialingBackendEOF && count < connectFailureMaxTries {
return true
}
return false
Have you ran all tests from werft? |
Yes, about five times. |
@jenting |
🤔 I might be wrong. I did not check the lastest workspace integration tests result. |
@jenting At least, around these codes often get failed when I run it from my local gitpod/test/pkg/integration/integration.go Lines 95 to 97 in ded3a97
--- FAIL: TestCreateBucket (5.78s)
--- FAIL: TestCreateBucket/DaemonAgent.CreateBucket (5.78s)
--- FAIL: TestCreateBucket/DaemonAgent.CreateBucket/it_should_create_a_bucket (5.78s)
storage_test.go:32: Could not run copy operation: error dialing backend: EOF |
9d4d690
to
5ad85b0
Compare
@jenting Thanks for your review. PTAL |
Description
test: Handle errors relate network in port-fowarding
Related Issue(s)
Relates #12248
How to test
Run the test
Release Notes
Documentation
Werft options: