-
Notifications
You must be signed in to change notification settings - Fork 110
feat(conformance): Add HTTPRouteMultipleGatewaysDifferentPools test #838
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
feat(conformance): Add HTTPRouteMultipleGatewaysDifferentPools test #838
Conversation
✅ Deploy Preview for gateway-api-inference-extension ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Hi @SinaChavoshi. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/cc |
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
/lgtm |
/ok-to-test |
sorry was waiting for #982 to merge, this makes the code much simpler as all tests now share the EPP and inferencePool definitions from manifests.yaml |
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.
Thanks @SinaChavoshi! This mostly LGTM
conformance/tests/basic/httproute_multiple_gateways_different_pools.go
Outdated
Show resolved
Hide resolved
conformance/tests/basic/httproute_multiple_gateways_different_pools.yaml
Outdated
Show resolved
Hide resolved
conformance/tests/basic/httproute_multiple_gateways_different_pools.yaml
Outdated
Show resolved
Hide resolved
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.
Thanks @SinaChavoshi!
/lgtm
@SinaChavoshi thanks for all your work and patience with this PR. /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danehans, robscott, SinaChavoshi, spencerhance The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/unhold |
…ubernetes-sigs#838) * copy of accepted inference pool test to start from. * add yaml file for the test * update time out * update the yaml file to add port 9002 * read timeout config from local repo * remove excess comments * copy from existing test to start with * update test and add gateway to main manifest * fix spelling error * correct spelling for scenarios * check route condition on RouteConditionResolvedRefs * check RouteConditionResolvedRefs instead of Reconciled * remove empty lines in yaml * set optional/defaulted fields as unspecified * add new line at the end of yaml files. * delete blank lines in yaml files. * change variable names to use primary / secondary * add to do for name change across the project. * fix comment * change all variable names to use primary/secondary consistantly * add to do for http route testing * HTTPRouteMustBeAcceptedAndResolved * add helper method. * using helper method for pool route accepted. * combline pool and route accpetnace * add http route validation * remove extra comments and yaml fields. * remove duplicate method * fix timeout * fix timeout * change varialbe names to use primary secondary consistently. * remove extra comments * factor out common code * Add actual http traffic validation using echo-basic * remove extra comments from manifest * remove modifiedTimeoutConfig.HTTPRouteMustHaveCondition per review comment. * remove modifiedTimeoutConfig.HTTPRouteMustHaveCondition per review comment * remove excessive logging from conformance.go * Update conformance/tests/basic/httproute_multiple_gateways_different_pools.yaml Co-authored-by: Lior Lieberman <[email protected]> * Update conformance/tests/basic/httproute_multiple_gateways_different_pools.yaml Co-authored-by: Lior Lieberman <[email protected]> * Update conformance/tests/basic/httproute_multiple_gateways_different_pools.yaml Co-authored-by: Lior Lieberman <[email protected]> * Update conformance/tests/basic/httproute_multiple_gateways_different_pools.yaml Co-authored-by: Lior Lieberman <[email protected]> * Update conformance/tests/basic/httproute_multiple_gateways_different_pools.yaml Co-authored-by: Lior Lieberman <[email protected]> * Remove unecessary logs for accpeted reason. * Remove all comments from yaml and go files and fix yaml * intermediate update * fix the test run * factor out common code * move epp def to shared manifest * remove extra comments * revert back to two epps * update to use epp filter * remove extra comments * add to do for epp image * switch to GeneralMustHaveConditionTimeout * undo gateway version changes * remove unused HTTPRouteMustHaveConditions * update doc string for GetPod * update docstring * fix defaults in timing.go * Remove resource type from names in manifests. * remove type from name * remove health check * add todo for combining getpod methods * remove duplicate methods * revert changes to conformance.go * revert chagnes to conformance.go * revert changes to helpers.go * use epp and pool from shared manifest * add todo to factor out common constants * remove port number for EPP call * remove port number for inf pool ref * use GetPodsWithLabel * removed unused method * fix routing issue * switch to using MakeRequestAndExpectEventuallyConsistentResponse * undo changes to GatewayFollowingEPPRouting * revert changes to traffic.go --------- Co-authored-by: Lior Lieberman <[email protected]>
…ubernetes-sigs#838) * copy of accepted inference pool test to start from. * add yaml file for the test * update time out * update the yaml file to add port 9002 * read timeout config from local repo * remove excess comments * copy from existing test to start with * update test and add gateway to main manifest * fix spelling error * correct spelling for scenarios * check route condition on RouteConditionResolvedRefs * check RouteConditionResolvedRefs instead of Reconciled * remove empty lines in yaml * set optional/defaulted fields as unspecified * add new line at the end of yaml files. * delete blank lines in yaml files. * change variable names to use primary / secondary * add to do for name change across the project. * fix comment * change all variable names to use primary/secondary consistantly * add to do for http route testing * HTTPRouteMustBeAcceptedAndResolved * add helper method. * using helper method for pool route accepted. * combline pool and route accpetnace * add http route validation * remove extra comments and yaml fields. * remove duplicate method * fix timeout * fix timeout * change varialbe names to use primary secondary consistently. * remove extra comments * factor out common code * Add actual http traffic validation using echo-basic * remove extra comments from manifest * remove modifiedTimeoutConfig.HTTPRouteMustHaveCondition per review comment. * remove modifiedTimeoutConfig.HTTPRouteMustHaveCondition per review comment * remove excessive logging from conformance.go * Update conformance/tests/basic/httproute_multiple_gateways_different_pools.yaml Co-authored-by: Lior Lieberman <[email protected]> * Update conformance/tests/basic/httproute_multiple_gateways_different_pools.yaml Co-authored-by: Lior Lieberman <[email protected]> * Update conformance/tests/basic/httproute_multiple_gateways_different_pools.yaml Co-authored-by: Lior Lieberman <[email protected]> * Update conformance/tests/basic/httproute_multiple_gateways_different_pools.yaml Co-authored-by: Lior Lieberman <[email protected]> * Update conformance/tests/basic/httproute_multiple_gateways_different_pools.yaml Co-authored-by: Lior Lieberman <[email protected]> * Remove unecessary logs for accpeted reason. * Remove all comments from yaml and go files and fix yaml * intermediate update * fix the test run * factor out common code * move epp def to shared manifest * remove extra comments * revert back to two epps * update to use epp filter * remove extra comments * add to do for epp image * switch to GeneralMustHaveConditionTimeout * undo gateway version changes * remove unused HTTPRouteMustHaveConditions * update doc string for GetPod * update docstring * fix defaults in timing.go * Remove resource type from names in manifests. * remove type from name * remove health check * add todo for combining getpod methods * remove duplicate methods * revert changes to conformance.go * revert chagnes to conformance.go * revert changes to helpers.go * use epp and pool from shared manifest * add todo to factor out common constants * remove port number for EPP call * remove port number for inf pool ref * use GetPodsWithLabel * removed unused method * fix routing issue * switch to using MakeRequestAndExpectEventuallyConsistentResponse * undo changes to GatewayFollowingEPPRouting * revert changes to traffic.go --------- Co-authored-by: Lior Lieberman <[email protected]>
…ubernetes-sigs#838) * copy of accepted inference pool test to start from. * add yaml file for the test * update time out * update the yaml file to add port 9002 * read timeout config from local repo * remove excess comments * copy from existing test to start with * update test and add gateway to main manifest * fix spelling error * correct spelling for scenarios * check route condition on RouteConditionResolvedRefs * check RouteConditionResolvedRefs instead of Reconciled * remove empty lines in yaml * set optional/defaulted fields as unspecified * add new line at the end of yaml files. * delete blank lines in yaml files. * change variable names to use primary / secondary * add to do for name change across the project. * fix comment * change all variable names to use primary/secondary consistantly * add to do for http route testing * HTTPRouteMustBeAcceptedAndResolved * add helper method. * using helper method for pool route accepted. * combline pool and route accpetnace * add http route validation * remove extra comments and yaml fields. * remove duplicate method * fix timeout * fix timeout * change varialbe names to use primary secondary consistently. * remove extra comments * factor out common code * Add actual http traffic validation using echo-basic * remove extra comments from manifest * remove modifiedTimeoutConfig.HTTPRouteMustHaveCondition per review comment. * remove modifiedTimeoutConfig.HTTPRouteMustHaveCondition per review comment * remove excessive logging from conformance.go * Update conformance/tests/basic/httproute_multiple_gateways_different_pools.yaml Co-authored-by: Lior Lieberman <[email protected]> * Update conformance/tests/basic/httproute_multiple_gateways_different_pools.yaml Co-authored-by: Lior Lieberman <[email protected]> * Update conformance/tests/basic/httproute_multiple_gateways_different_pools.yaml Co-authored-by: Lior Lieberman <[email protected]> * Update conformance/tests/basic/httproute_multiple_gateways_different_pools.yaml Co-authored-by: Lior Lieberman <[email protected]> * Update conformance/tests/basic/httproute_multiple_gateways_different_pools.yaml Co-authored-by: Lior Lieberman <[email protected]> * Remove unecessary logs for accpeted reason. * Remove all comments from yaml and go files and fix yaml * intermediate update * fix the test run * factor out common code * move epp def to shared manifest * remove extra comments * revert back to two epps * update to use epp filter * remove extra comments * add to do for epp image * switch to GeneralMustHaveConditionTimeout * undo gateway version changes * remove unused HTTPRouteMustHaveConditions * update doc string for GetPod * update docstring * fix defaults in timing.go * Remove resource type from names in manifests. * remove type from name * remove health check * add todo for combining getpod methods * remove duplicate methods * revert changes to conformance.go * revert chagnes to conformance.go * revert changes to helpers.go * use epp and pool from shared manifest * add todo to factor out common constants * remove port number for EPP call * remove port number for inf pool ref * use GetPodsWithLabel * removed unused method * fix routing issue * switch to using MakeRequestAndExpectEventuallyConsistentResponse * undo changes to GatewayFollowingEPPRouting * revert changes to traffic.go --------- Co-authored-by: Lior Lieberman <[email protected]>
This PR introduces a new conformance test, HTTPRouteMultipleGatewaysDifferentPools, which validates a scenario where two distinct HTTPRoute resources, parented by different Gateway resources, successfully reference and route traffic to separate InferencePool backends.
local run results: ( Ran on commit 0b94f9f)