-
Notifications
You must be signed in to change notification settings - Fork 369
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
Fix flaky e2e test TestProxyLoadBalancerModeDSR #6702
Conversation
Can one of the admins verify this patch? |
159db08
to
6f228af
Compare
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.
LGTM, thanks for taking care of this
@@ -1184,7 +1193,7 @@ func TestProxyLoadBalancerModeDSR(t *testing.T) { | |||
hostNames := sets.New[string]() | |||
for i := 0; i < 10; i++ { | |||
hostName := curlServiceWithPath(clientPod, clientNetns, "hostname") | |||
t.Logf("Request #%d from %s got hostname: %s", i, clientPod, hostName) | |||
t.Logf("[%s] Request #%d from %s got hostname: %s", time.Now().Format(microTimestampFormat), i, clientPod, hostName) |
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.
A comment here would be nice, in case someone updates this test in the future
We add a microsecond timestamp to the log message, which can be compared to the timestamp of the AntreaProxy messages in the Antrea Agent's logs. This is useful for troubleshooting test failures, in case there is a race condition with Service realization.
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.
done, thanks
After creating or updating a Service, wait for 2 seconds before running traffic tests to ensure the Service is fully realized. Add a timestamp to help debug this test in the future. Signed-off-by: Quan Tian <[email protected]>
/test-e2e |
/test-e2e |
After creating or updating a Service, wait for 2 seconds before running traffic tests to ensure the Service is fully realized. Add a timestamp to help debug this test in the future. Signed-off-by: Quan Tian <[email protected]>
After creating or updating a Service, wait for 2 seconds before running traffic tests to ensure the Service is fully realized.
Add a timestamp to help debug this test in the future.
Fixes #6704