-
Notifications
You must be signed in to change notification settings - Fork 690
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
test/e2e/gateway: check service as part of request condition #6251
Conversation
For the RequestHeaderModifierBackendRef test, check the service reached by the request as part of the eventual consistency condition to avoid issues with test pollution. Signed-off-by: Steve Kriss <stephen.kriss@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6251 +/- ##
=======================================
Coverage 81.33% 81.33%
=======================================
Files 133 133
Lines 15775 15775
=======================================
Hits 12831 12831
Misses 2650 2650
Partials 294 294 |
hm, one hint in the logs from the linked test run is:
which would mean the failing test runs after this one:
curiously that test passes making HTTPS requests as expected, but I wonder if the failures in |
this is very hard to repro though locally since it would rely on the previous test configuration still existing in envoy while a new configuration is being added and our logic on wildcard hosts somehow being wrong, which I don't think is the case... |
we could also maybe outlaw using |
eh also the the only other test that could be a culprit would be |
…contour#6251) For the RequestHeaderModifierBackendRef test, check the service reached by the request as part of the eventual consistency condition to avoid issues with test pollution. Signed-off-by: Steve Kriss <stephen.kriss@gmail.com>
For the RequestHeaderModifierBackendRef test, check the service reached by the request as part of the
eventual consistency condition to avoid issues with test pollution.
ref. https://github.com/projectcontour/contour/actions/runs/8179127307/job/22364621818
Oddly, when failing, the request is hitting an "echo" backend pod, which isn't even defined as part of the test in question (it only has "echo-header-filter" and "echo-header-nofilter"). There must be some pollution going on from another test, but I can't spot it. It's a little odd given that the HTTPRoute has a distinct hostname that's being used in the requests. In any case, I think this should help avoid issues. Haven't been able to repro locally.