-
Notifications
You must be signed in to change notification settings - Fork 1.8k
e2e tests wont run locally #3871
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
Comments
I think I see what the problem might be. In CI, we always run In Therefore running The immediate fix is to always run e2e's and integration tests like this: However, I don't like this for two reasons:
|
I'd like the tests to possibly see if there's a cluster available for it to run. If not, possibly let the user know what they need. On CI, I think it is okay to always run |
Hi @jberkhahn, We only need to have a Kind cluster running and the bins then, we can just run Regards the error:
It is because the ENV TEST requires binaries. IMO we can solve it by;
|
Summary of comments from Sep 14 bug triage meeting:
|
#4023 fixes this except ansible-molecule tests, which will be addressed in a separate issue. |
Bug Report
the e2e tests will not run locally unless I add these two lines before the call to setup_envs in the script that the Makefile task I'm running is shelling out to. This isn't documented anywhere so it's very confusing if you don't know to do this. According to @joelanford these lines are commented out because they cause the e2e tests in travis to fail(!?). It would be nice if we could have e2e tests that run correctly all the time, or at least document what you have to do to get them to run locallly.
Environment
I did this with both minikube and kind, and got the same error both times, it seems to blow up when attempting to build a controller-manager image with the following error:
msg: “failed to start the controlplane. retried 5 times: fork/exec /tmp/operator-sdk/bin/etcd: no such file or directory”,
The text was updated successfully, but these errors were encountered: