-
Notifications
You must be signed in to change notification settings - Fork 102
e2e cleanup #988
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
base: main
Are you sure you want to change the base?
e2e cleanup #988
Conversation
✅ Deploy Preview for gateway-api-inference-extension ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
/assign @danehans |
Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>
hack/test-e2e.sh
Outdated
kind create cluster --name inference-e2e | ||
KIND_CLUSTER=inference-e2e make image-kind | ||
# Add the Gateway API CRDs | ||
VERSION=v0.3.0 |
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.
This var seems to be unused
hack/test-e2e.sh
Outdated
install_kind | ||
kind create cluster --name inference-e2e | ||
KIND_CLUSTER=inference-e2e make image-kind | ||
# Add the Gateway API CRDs |
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.
I don't see the Gateway API CRDs being installed anywhere and they're not needed to run the e2e.
Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>
@danehans both comments are correct. it was a leftover from the previous code that I just renamed. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kfswain, nirrozenbaum 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 |
Shouldn't we build and load the EPP image if an existing kubectl context is found here:
Something like: if kubectl config current-context >/dev/null 2>&1; then
KIND_CLUSTER=$(kubectl config current-context) make image-kind
echo "Active kind cluster $KIND_CLUSTER found in kubecontext. Running Go e2e tests in ./epp..."
else
install_kind
kind create cluster --name inference-e2e
KIND_CLUSTER=inference-e2e make image-kind
echo "Kind cluster $KIND_CLUSTER created. Running Go e2e tests in ./epp..."
fi |
@danehans good question. having said that, I think you just caught an important bug - e2e tests are always using main image and not the testing the PR code. |
@danehans @kfswain am I missing something or is this setup always tests main image in PRs (meaning we're not e2e testing the PR changes)? |
You are correct. You can follow a pattern similar to Replace the
Update the e2e script to use the existing
Do the string replacement in the helper that already handles func createInferExt(k8sClient client.Client, filePath string) {
image := os.Getenv("E2E_IMAGE")
gomega.Expect(image).NotTo(gomega.BeEmpty())
....
m = strings.ReplaceAll(m, "$E2E_IMAGE", image)
}
…
} |
@danehans yes, I know how to solve it :). |
/hold |
this PR removes the existing
hack/test-e2e.sh
script that isn't used or referenced anywhere, and renames the new e2e script tohack/test-e2e.sh
(instead ofhack/run-e2es
).