Skip to content

Conversation

SinaChavoshi
Copy link
Contributor

@SinaChavoshi SinaChavoshi commented May 9, 2025

This PR introduces a new conformance test, HTTPRouteInvalidInferencePoolRef, to verify the behavior of an HTTPRoute when it references a non existing InferencePool.

Note PR scope, title and main test is updated based on review discussion.

local run results: ( Ran on commit 53325d9)

go test -v ./conformance -args -debug     -gateway-class gke-l7-regional-external-managed     -cleanup-base-resources=false    -run-test HTTPRouteInvalidInferencePoolRef
...
=== NAME  TestConformance
    suite.go:451: 2025-05-17T00:06:00.952912542Z: Sleeping 0s for test isolation
=== RUN   TestConformance/InferencePoolAccepted
    conformance.go:68: Skipping InferencePoolAccepted: test explicitly skipped
--- PASS: TestConformance (19.96s)
    --- PASS: TestConformance/HTTPRouteInvalidInferencePoolRef (16.61s)
        --- PASS: TestConformance/HTTPRouteInvalidInferencePoolRef/HTTPRoute_should_have_Accepted=True_and_ResolvedRefs=False_for_non-existent_InferencePool (16.15s)
    --- SKIP: TestConformance/InferencePoolAccepted (0.00s)
PASS
ok      sigs.k8s.io/gateway-api-inference-extension/conformance 20.172s

Copy link

netlify bot commented May 9, 2025

Deploy Preview for gateway-api-inference-extension ready!

Name Link
🔨 Latest commit 851f989
🔍 Latest deploy log https://app.netlify.com/projects/gateway-api-inference-extension/deploys/682f5dcb5f9c290008fcc20b
😎 Deploy Preview https://deploy-preview-807--gateway-api-inference-extension.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@k8s-ci-robot k8s-ci-robot requested review from ahg-g and robscott May 9, 2025 00:43
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 9, 2025
@k8s-ci-robot
Copy link
Contributor

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label May 9, 2025
@ahg-g
Copy link
Contributor

ahg-g commented May 9, 2025

/ok-to-test

@SinaChavoshi SinaChavoshi changed the title feat(conformance): Add test for HTTPRoute status with non-matching InferencePool feat(conformance): Add test for HTTPRouteInvalidInferencePoolRef May 17, 2025
@spencerhance
Copy link

/cc

@k8s-ci-robot k8s-ci-robot requested a review from spencerhance May 17, 2025 03:30
Copy link

@spencerhance spencerhance left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 17, 2025
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 19, 2025
@spencerhance
Copy link

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 19, 2025
@robscott
Copy link
Member

@danehans or @kfswain can you add the /approve here?

@SinaChavoshi SinaChavoshi requested a review from danehans May 21, 2025 22:41
@SinaChavoshi
Copy link
Contributor Author

@danehans or @kfswain gentle ping, any chance you could have another look at this PR.

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 22, 2025
@danehans
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 27, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: danehans, 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 27, 2025
@k8s-ci-robot k8s-ci-robot merged commit 48b6c97 into kubernetes-sigs:main May 27, 2025
8 checks passed
irar2 pushed a commit to irar2/gateway-api-inference-extension that referenced this pull request Jun 3, 2025
…ernetes-sigs#807)

* Add inferencepool_lifecycle test.

* Resolve setup issues and enable InferencePool test

* correct Lint error Multiplication of durations

* Fix missing containerPort, is missing

* change gateway name from "gateway-conformance-app" to "conformance-gateway"

* clarify why K8s types are needed.

* Update conformance/conformance.go

Co-authored-by: Lior Lieberman <liorlib7+riskified@gmail.com>

* Update conformance/conformance.go

Co-authored-by: Lior Lieberman <liorlib7+riskified@gmail.com>

* remove for loop when adding SupportedFeatures

* remove exessive logging

* Update conformance/conformance.go

Co-authored-by: Lior Lieberman <liorlib7+riskified@gmail.com>

* move excess debug logs behind debug flag.

* remove CONFORMANCE.GO prefix from logs.

* change the pull logic and use default value from GatewayMustHaveAddress

* fix mt.Sprintf can be replaced with string concatenation

* add a function for logDebug

* factor out ensureGatewayAvailableAndReady

* removed todo comment in helper.go

* remove CONFORMANCE.GO from log

* Add InferencePoolLifecycle test

* update comments in helper.go

* Initial commit for InferencePoolNoMatchingPodsRouteStatus test

* resolve lint issue.

* error messages, should not be capitalized or end with punctuation

* Add inferencepool_lifecycle test.

* Resolve setup issues and enable InferencePool test

* removed todo comment in helper.go

* Add InferencePoolLifecycle test

* update comments in helper.go

* remove Conformanc.go from log message

* Remove lifecycle test.

* Removed unused helper methods ( inference pool must have selector & must be deleted)

* add back HTTPRouteMustHaveParentStatusConditions

* Set timeout values as constant

* change timeout.go to timing.go

* remove duplicate log

* remove excess comments and logs

* add comment / todo for Reconciled

* Update conformance/utils/kubernetes/helpers.go

Co-authored-by: Rob Scott <rob.scott87@gmail.com>

* change test to HTTPRouteInvalidInferencePoolRef

* use TODO: instead of TODO()

* yaml and todos based on code review

---------

Co-authored-by: Lior Lieberman <liorlib7+riskified@gmail.com>
Co-authored-by: Rob Scott <rob.scott87@gmail.com>
rlakhtakia pushed a commit to rlakhtakia/gateway-api-inference-extension that referenced this pull request Jun 11, 2025
…ernetes-sigs#807)

* Add inferencepool_lifecycle test.

* Resolve setup issues and enable InferencePool test

* correct Lint error Multiplication of durations

* Fix missing containerPort, is missing

* change gateway name from "gateway-conformance-app" to "conformance-gateway"

* clarify why K8s types are needed.

* Update conformance/conformance.go

Co-authored-by: Lior Lieberman <liorlib7+riskified@gmail.com>

* Update conformance/conformance.go

Co-authored-by: Lior Lieberman <liorlib7+riskified@gmail.com>

* remove for loop when adding SupportedFeatures

* remove exessive logging

* Update conformance/conformance.go

Co-authored-by: Lior Lieberman <liorlib7+riskified@gmail.com>

* move excess debug logs behind debug flag.

* remove CONFORMANCE.GO prefix from logs.

* change the pull logic and use default value from GatewayMustHaveAddress

* fix mt.Sprintf can be replaced with string concatenation

* add a function for logDebug

* factor out ensureGatewayAvailableAndReady

* removed todo comment in helper.go

* remove CONFORMANCE.GO from log

* Add InferencePoolLifecycle test

* update comments in helper.go

* Initial commit for InferencePoolNoMatchingPodsRouteStatus test

* resolve lint issue.

* error messages, should not be capitalized or end with punctuation

* Add inferencepool_lifecycle test.

* Resolve setup issues and enable InferencePool test

* removed todo comment in helper.go

* Add InferencePoolLifecycle test

* update comments in helper.go

* remove Conformanc.go from log message

* Remove lifecycle test.

* Removed unused helper methods ( inference pool must have selector & must be deleted)

* add back HTTPRouteMustHaveParentStatusConditions

* Set timeout values as constant

* change timeout.go to timing.go

* remove duplicate log

* remove excess comments and logs

* add comment / todo for Reconciled

* Update conformance/utils/kubernetes/helpers.go

Co-authored-by: Rob Scott <rob.scott87@gmail.com>

* change test to HTTPRouteInvalidInferencePoolRef

* use TODO: instead of TODO()

* yaml and todos based on code review

---------

Co-authored-by: Lior Lieberman <liorlib7+riskified@gmail.com>
Co-authored-by: Rob Scott <rob.scott87@gmail.com>
@zetxqx zetxqx mentioned this pull request Jun 12, 2025
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants