Skip to content
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

Move UTs that block on apiserver to integration tests. #30634

Conversation

timothysc
Copy link
Member

@timothysc timothysc commented Aug 15, 2016

In validating etcd.v3client we had uncovered that a change in the behavior of the client etcd-io/etcd#6162 , caused a number of unit tests to fail. These test failures were due to the fact that the unit tests were trying to standup a apiserver even though there was no etcd backend stood up.

This PR simply shuffles those tests to integration tests, which is where they should be.

/cc @kubernetes/sig-scalability @wojtek-t @hongchaodeng @xiang90


This change is Reviewable

@timothysc timothysc added this to the v1.4 milestone Aug 15, 2016
@k8s-github-robot k8s-github-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. release-note-label-needed labels Aug 15, 2016
@timothysc timothysc added release-note-none Denotes a PR that doesn't merit a release note. and removed release-note-label-needed labels Aug 15, 2016
@wojtek-t
Copy link
Member

I think I'm fine with this PR.

But please fix tests.

@timothysc timothysc force-pushed the etcd3_shouldbe_intergration_tests branch from 87f636b to e9e78d7 Compare August 16, 2016 13:50
@timothysc
Copy link
Member Author

re: GKE tests, I don't see how this change could effect it. It's strictly a UT->Integ change and the GKE test is failing on some cluster bring-up.

@hongchaodeng
Copy link
Contributor

@k8s-bot test this issue: #IGNORE

@@ -196,3 +196,6 @@ test/integration/openshift
test/soak/cauldron
test/soak/serve_hostnames
third_party/forked/golang/expansion
test/integration/discoverysummarizer
Copy link
Contributor

Choose a reason for hiding this comment

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

What's this "linted packages"?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's part of the verify scripts, it's why it failed last time.

@hongchaodeng
Copy link
Contributor

lgtm

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 17, 2016
@timothysc timothysc force-pushed the etcd3_shouldbe_intergration_tests branch from e9e78d7 to 40fb757 Compare August 17, 2016 12:51
@k8s-github-robot k8s-github-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 17, 2016
@wojtek-t
Copy link
Member

Tests are failing.

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 17, 2016
@timothysc timothysc force-pushed the etcd3_shouldbe_intergration_tests branch from 40fb757 to cc437d2 Compare August 17, 2016 14:47
@k8s-github-robot k8s-github-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 17, 2016
@timothysc
Copy link
Member Author

timothysc commented Aug 17, 2016

There is no way those error(s) are from this PR.

@timothysc timothysc force-pushed the etcd3_shouldbe_intergration_tests branch from cc437d2 to 0d5af31 Compare August 18, 2016 00:25
@wojtek-t
Copy link
Member

LGTM

@wojtek-t wojtek-t added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 18, 2016
@timothysc timothysc added the priority/backlog Higher priority than priority/awaiting-more-evidence. label Aug 18, 2016
@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 18, 2016
@timothysc timothysc force-pushed the etcd3_shouldbe_intergration_tests branch from 0d5af31 to 261f1e2 Compare August 18, 2016 15:02
@k8s-github-robot k8s-github-robot removed lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Aug 18, 2016
@timothysc timothysc added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 18, 2016
@timothysc
Copy link
Member Author

@k8s-bot test this please, issue #IGNORE

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 18, 2016
…ver being fully

stood up should be integration tests, not unit tests.
@timothysc timothysc force-pushed the etcd3_shouldbe_intergration_tests branch from 261f1e2 to d6606a6 Compare August 18, 2016 19:12
@k8s-github-robot k8s-github-robot removed lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Aug 18, 2016
@timothysc timothysc added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 18, 2016
@timothysc
Copy link
Member Author

@k8s-bot test this please, issue #IGNORE

@k8s-bot
Copy link

k8s-bot commented Aug 18, 2016

GCE e2e build/test passed for commit d6606a6.

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@nikhiljindal
Copy link
Contributor

Sorry it is not clear to me why should these tests be in integration and not unit tests? They are not trying to bring up multiple components, just testing the Run method in their respective classes.

@k8s-bot
Copy link

k8s-bot commented Aug 19, 2016

GCE e2e build/test passed for commit d6606a6.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit c5e3b79 into kubernetes:master Aug 19, 2016
@timothysc
Copy link
Member Author

@nikhiljindal If you wish to standup the apiserver using a v3client you need a running etcd3. These tests expected the apiserver to be running.

k8s-github-robot pushed a commit that referenced this pull request Aug 23, 2016
Automatic merge from submit-queue

Enable v3 Client as the default on UTs

Updates the default initialization to use clientv3 interface to etcd3, and fixes the UTs.  

This PR includes a cherry-pick of #30634 so we can validate the tests, so do not merge until that PR is complete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/backlog Higher priority than priority/awaiting-more-evidence. release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants