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

test(e2e): set appProtocol to HTTP for kuma tests #5507

Merged
merged 3 commits into from
Jan 31, 2024

Conversation

randmonkey
Copy link
Contributor

What this PR does / why we need it:

As discussed internally, setting appProtocol to HTTP will make kuma to load balance at request level. While by default kuma may only load balance at the connection level. When Kong gateway changed the upstream_keepalive_max_requests from 1000 to 10000: Kong/kong#12223, the upstream connection is reused during all the test which only send about 3000 requests. So the requests constantly go to the same backend pod from one Kong gateway pod.

I changed appProtocol to http, the failure disappears in my local run.

Which issue this PR fixes:

maybe fix #5498

Special notes for your reviewer:

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

- [ ] the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR No changelog required

@randmonkey randmonkey added area/kong Issue with Kong proxy behavior, rather than the controller area/tests labels Jan 31, 2024
@randmonkey randmonkey added this to the KIC v3.1.x milestone Jan 31, 2024
@randmonkey randmonkey self-assigned this Jan 31, 2024
@randmonkey randmonkey requested a review from a team as a code owner January 31, 2024 07:37
@randmonkey randmonkey added the ci/run-e2e Trigger e2e test run from PR label Jan 31, 2024
@team-k8s-bot
Copy link
Collaborator

E2E (targeted) tests with KIND-based clusters were started at https://github.com/Kong/kubernetes-ingress-controller/actions/runs/7722704065

@team-k8s-bot team-k8s-bot removed the ci/run-e2e Trigger e2e test run from PR label Jan 31, 2024
Copy link

codecov bot commented Jan 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9af08c2) 69.8% compared to head (1e1b808) 69.8%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #5507     +/-   ##
=======================================
- Coverage   69.8%   69.8%   -0.1%     
=======================================
  Files        176     176             
  Lines      22873   22873             
=======================================
- Hits       15981   15968     -13     
- Misses      5950    5963     +13     
  Partials     942     942             

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

Co-authored-by: Grzegorz Burzyński <czeslavo@gmail.com>
czeslavo
czeslavo previously approved these changes Jan 31, 2024
Copy link
Member

@programmer04 programmer04 left a comment

Choose a reason for hiding this comment

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

🏅

@randmonkey randmonkey merged commit 72cb3b1 into main Jan 31, 2024
37 checks passed
@randmonkey randmonkey deleted the test/e2e_kuma_set_appProtocol branch January 31, 2024 13:36
rainest pushed a commit that referenced this pull request Mar 28, 2024
* set appProtocol to HTTP for kuma tests

* Update test/e2e/helpers_test.go

Co-authored-by: Grzegorz Burzyński <czeslavo@gmail.com>

---------

Co-authored-by: Grzegorz Burzyński <czeslavo@gmail.com>
team-k8s-bot pushed a commit that referenced this pull request Apr 29, 2024
* set appProtocol to HTTP for kuma tests

* Update test/e2e/helpers_test.go

Co-authored-by: Grzegorz Burzyński <czeslavo@gmail.com>

---------

Co-authored-by: Grzegorz Burzyński <czeslavo@gmail.com>
(cherry picked from commit 72cb3b1)
randmonkey added a commit that referenced this pull request Apr 30, 2024
* set appProtocol to HTTP for kuma tests

* Update test/e2e/helpers_test.go

Co-authored-by: Grzegorz Burzyński <czeslavo@gmail.com>

---------

Co-authored-by: Grzegorz Burzyński <czeslavo@gmail.com>
(cherry picked from commit 72cb3b1)

Co-authored-by: Tao Yi <tao.yi@konghq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kong Issue with Kong proxy behavior, rather than the controller area/tests backport release/3.0.x size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Constant e2e failures against unreleased Kong with Kuma
4 participants