-
Notifications
You must be signed in to change notification settings - Fork 79
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
Unable to run e2e tests locally #141
Comments
Cluster API does nothing: https://github.com/kubernetes-sigs/cluster-api/blob/main/Makefile#L836 So, I think we just need to document this behavior and allow users to run "make docker-build-e2e && make test-e2e" if they don't have the image built. |
yes, was checking it as well. Something like https://github.com/kubernetes-sigs/cluster-api/blob/f3e3bda15c62f6cecb235c943f4ff337ce4ab5d1/docs/book/src/developer/testing.md?plain=1#L178C1-L180 should suffice in that case, but not sure where we need to put them |
/triage accepted |
@furkatgofurov7: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
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/test-infra repository. |
/remove-kind bug |
This issue has not been updated in over 1 year, and should be re-triaged. You can:
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/ /remove-triage accepted |
What steps did you take and what happened:
When running e2e tests locally using Makefile targets (
make test-e2e
ormake test-e2e-run
) both will fail, IF you have never run themake-docker-build-e2e
target on the repo (if you have an operator image with dev tag locally, you would not see this problem, but that is not the case for everyone) which builds an operator image withdev
tag.That is because
make test-e2e-run
sets E2E_OPERATOR_IMAGE to http://gcr.io/k8s-staging-capi-operator/cluster-api-operator:dev, spins up a kind cluster and loads that image into cluster:Later on in the tests, operator deployment will not come up properly and fail:
What did you expect to happen:
run
make test-e2e
andmake test-e2e-run
successfullyTo reproduce:
Additional information:
I see we have 2 options in this case:
make-docker-build-e2e
target tomake test-e2e-run
so that we always build the image first before running e2e tests locallymake-docker-build-e2e
is a prerequisite for successfully running e2e tests locallyAny other suggestions?
Environment:
kubectl version
):/etc/os-release
):macOS/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api-operator/labels?q=area for the list of labels]
The text was updated successfully, but these errors were encountered: