-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
How to run kubernetes e2e tests with kind and upgrade the cluster components with your local changes #1181
Comments
More complete instructions hereThis is how I do it :
Note: updated with new KIND features and known issues |
To expand on this and for completenes, let's say that you have a change in kube-proxy, you don't have to redo all the steps, you just need to:
https://kubernetes.io/docs/tasks/manage-daemon/update-daemon-set/ |
for that kind of power user, you can do this today and write yourself a small script. at the moment I'm specifically focused on #986 which is about mimicing the kubernetes flow. if you're building with bazel you already no-op most of the build if you didn't change the other binaries, I wouldn't recommend taking shortcuts vs just running a node image build. |
yeah, you are absolutely right. |
@aojea Thank you for your share. I try your snippet, but the test blocked with |
@aojea Yes, it has run the test suite and show the results, but the process is not end itself, after tests, it blocked with |
You probably need to add some flags. Please share your test invocation.
…On Fri, Jan 31, 2020, 00:31 9r0k ***@***.***> wrote:
@aojea <https://github.com/aojea> Yes, it has run the test suite and show
the results, but the process is not end itself, after tests, it blocked
with INFO: Running AfterSuite actions on all nodes
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1181?email_source=notifications&email_token=AAHADK6UGUUR2OTTBUFEKTDRAPOWFA5CNFSM4J4JT3Y2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKN5ASI#issuecomment-580636745>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHADK544XT77SYYKCCIJQDRAPOWFANCNFSM4J4JT3YQ>
.
|
@BenTheElder I just use the |
naive question, do you have at least 2 workers in your cluster? |
Yes, i follow your steps. The test can be run, but it does not end by itself |
I'm not certain about that invocation, currently we use hack/ginkgo-e2e.sh in k8s which handles a few more things, you can check our own hack/ci dir for the current scripts we use to do this, they set some other things |
in parallel, I'll check if I have some additional environment variables that are missing causing this behavior. |
@Rand01ph I hit the same issue,
the solution is to remove the |
that sounds like a bug in e2e.test ... |
Can we use kind to run conformance tests with a specific CCM(cloud controller manager)? In that case, we need to custom some components, such as:
@BenTheElder Can you share your comments? I'm just starting to use kind, after went through the relative document, I'm not sure if kind support this case. |
Since this has such a great title, can we share some of the links to the other tutorials and videos that exist? |
@MHBauer check out https://kind.sigs.k8s.io/docs/user/resources/ @RainbowMango maybe, CCMs have their own requirements, it's not something we're doing currently. I'm aware of some third party work in the past with the vsphere CCM and a vsphere fake + kind sorry the integrated test work has gone so slowly, we keep having to paper over the existing tests, right now we're dealing with multiple critical bugs before daring to change the test workflow. |
@BenTheElder I've created a script to upgrade the cluster components with the kubernetes repo local changes https://gist.github.com/aojea/2c94034f8e86d08842e5916231eb3fe1 I wanted to add them to kind using a I'm sure this will boost development productivity |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
I think maybe we should just add a user guide page for this and it can eventually reference the shinier guide we want later. Even just a basic pointer to what the shell scripts we have now do / what CI is doing is probably worth getting a rough page up for sooner rather than later. |
What is the correct way, or best practice, to run tests in parallel? I have got excellent advice from @aojea in the past (thanks!) that I am still using so, I have done:
and got execution time down by ~7 times (>500s -> ~75s). |
Man, you seem to have a gist for everything 😄 Thanks. I think it might be the same advise I got years back |
This information is documented somewhere? |
This is a bit of a hack, but the gist linked above is the approach. Otherwise the general full approach is to 1) |
What would you like to be documented:
How to use kind to test your code with e2e tests
Why is this needed:
I know that Ben has this in the backlog, that there are several nice tutorials and videos, there is also a script in the repo to execute the e2e tests, ..., but I always fall back to my snippet :-)
The text was updated successfully, but these errors were encountered: