-
Notifications
You must be signed in to change notification settings - Fork 432
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
utils: improve envoyutils and curl requestutils #9335
Conversation
Issues linked to changelog: |
Visit the preview URL for this PR (updated for commit 2413c70): https://gloo-edge--pr9335-sam-gg-envoy-admin-c-en7gahg2.web.app (expires Mon, 15 Apr 2024 21:25:13 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 77c2b86e287749579b7ff9cadb81e099042ef677 |
Issues linked to changelog: |
Issues linked to changelog: |
Issues linked to changelog: |
/kick https://storage.googleapis.com/solo-public-build-logs/logs.html?buildid=24707199-a95b-4e4d-b5b0-05f9f6333cc3 build-bot not reporting success |
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.
approving on behalf of nathan
Description
Improve some more utils that can be widely used in the codebase
Context
Background
I am in the process of building Kubernetes e2e tests for our integration with the Kubernetes Gateway API. To do that, I need to rely on some shared utilities. Some of the previous work in support of this is:
I also intend to add a way to export a report from an installation (#9327), but this PR is an attempt to introduce less code all at once.
curl requestutils
We previously had a CurlRequestBuilder, which I added as part of #9316. As I tried to use it more, I found two challenges with it:
To address both of these challenges I:
utils/requestutils
directoryenvoyutils
We interact with running instances of Envoy quite frequently:
We end up repeating code to perform these requests. To improve this, I created a simple Admin Client. Under the hood, it relies on the Cmd utilities added as part of #9316
test flake reduction
In this PR I also attempt to fix 2 test flakes which have occurred recently. I intentionally mark the fix as
resolvesIssue=false
as I have not done the due diligence to prove that it will fix the flake entirely. However, in both situations I introduced some retry logic to help alleviate the flake frequency.I propose that we merge the changes as they are, and then monitor the flakes, and if they do not occur for a week/two we can resolve the issue. In the meantime, I will just assign the issue tickets to myself so I can track the impact of this change:
Interesting decisions
Testing steps
Notes for reviewers
Checklist: