Skip to content
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

workaroud for the flaky oidc e2e test #4603

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zhaohuabing
Copy link
Member

@zhaohuabing zhaohuabing commented Nov 1, 2024

Restart Envoy to recover from the OIDC test failure. This is just a workaround to reduce the time of e2e test due to the failed OIDC test. We still need to investage the root cause and fix it.

Related issue: #3898
Release Notes: No

@zhaohuabing zhaohuabing requested a review from a team as a code owner November 1, 2024 07:53
@zhaohuabing zhaohuabing marked this pull request as draft November 1, 2024 07:53
@zhaohuabing zhaohuabing force-pushed the flaky-oidc-workaround branch 2 times, most recently from 7bbdd8e to 83e4971 Compare November 1, 2024 07:55
Copy link

codecov bot commented Nov 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.45%. Comparing base (7285dda) to head (1e16d24).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4603      +/-   ##
==========================================
+ Coverage   65.43%   65.45%   +0.02%     
==========================================
  Files         211      211              
  Lines       31904    31904              
==========================================
+ Hits        20875    20883       +8     
+ Misses       9784     9778       -6     
+ Partials     1245     1243       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

test/e2e/tests/oidc.go Outdated Show resolved Hide resolved
Signed-off-by: Huabing Zhao <[email protected]>
@zhaohuabing zhaohuabing marked this pull request as ready for review November 1, 2024 10:04
// restart the envoy proxy to recover from the error, this is a workaround for the flaky test: https://github.com/envoyproxy/gateway/issues/3898
// TODO: we should investigate the root cause of the flakiness and remove this workaround
proxyLabel := map[string]string{"gateway.envoyproxy.io/owning-gateway-name": "same-namespace"}
err := suite.Client.DeleteAllOf(context.TODO(), &corev1.Pod{}, client.MatchingLabels(proxyLabel), client.InNamespace("envoy-gateway-system"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we force a rollout/restart instead of deleting?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesnt matter here. We just need to restart the Envoy pod to repush the xDS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants