Skip to content

adds integration test validation for CRD watchers and small refactor on EPP runner#2351

Open
zetxqx wants to merge 1 commit intokubernetes-sigs:mainfrom
zetxqx:integrationtest-crdwatcher
Open

adds integration test validation for CRD watchers and small refactor on EPP runner#2351
zetxqx wants to merge 1 commit intokubernetes-sigs:mainfrom
zetxqx:integrationtest-crdwatcher

Conversation

@zetxqx
Copy link
Contributor

@zetxqx zetxqx commented Feb 17, 2026

What type of PR is this?

/kind test

What this PR does / why we need it:

Integration test for the fix in #2300

  • small refactor: Split Runner.Run in cmd/epp/runner/runner.go into Run and Setup. The new Setup method returns the ctrl.Manager and datastore.Datastore instances, enabling testability in integration testing.
  • Added TestCRDWatchers. it verifies that the EPP correctly watches InferenceModelRewrite and InferenceObjective resources and update the dataStore.

Which issue(s) this PR fixes:

Fixes partially #2332

Does this PR introduce a user-facing change?:


@k8s-ci-robot
Copy link
Contributor

@zetxqx: The label(s) kind/test cannot be applied, because the repository doesn't have them.

Details

In response to this:

What type of PR is this?

/kind test

What this PR does / why we need it:

Integration test for the fix in #2300

  • small refactor: Split Runner.Run in cmd/epp/runner/runner.go into Run and Setup. The new Setup method returns the ctrl.Manager and datastore.Datastore instances, enabling testability in integration testing.
  • Added TestCRDWatchers. it verifies that the EPP correctly watches InferenceModelRewrite and InferenceObjective resources and update the dataStore.

Which issue(s) this PR fixes:

Fixes partially #2332

Does this PR introduce a user-facing change?:


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.

@netlify
Copy link

netlify bot commented Feb 17, 2026

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

Name Link
🔨 Latest commit db39204
🔍 Latest deploy log https://app.netlify.com/projects/gateway-api-inference-extension/deploys/699419ff55f1de0008bcaf94
😎 Deploy Preview https://deploy-preview-2351--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
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: zetxqx
Once this PR has been reviewed and has the lgtm label, please assign danehans for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details 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 size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 17, 2026
return nil
}

func (r *Runner) Setup(ctx context.Context, cfg *rest.Config, opts *runserver.Options) (ctrl.Manager, datastore.Datastore, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Pls add a comment here that we split the set up into a separate function to enable integration testing of the set up.

opts.GRPCHealthPort = healthPort
opts.EndpointTargetPorts = []int{8000}

mgr, dataStore, err := eppRunner.NewRunner().Setup(ctx, testEnv.Config, opts)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we have this test invoke NewTestHarness, and have NewTestHarness call runner.Setup?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. 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.

3 participants