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

Update conformance test policy #23353

Merged
merged 6 commits into from
Mar 30, 2016

Conversation

spiffxp
Copy link
Member

@spiffxp spiffxp commented Mar 22, 2016

Addresses #14913

/cc @kubernetes/sig-testing

spiffxp added 3 commits March 22, 2016 13:09
Mostly doc updates and cruft removal

- describe conformance test policy and howto in e2e-tests.md
- rm e2e test info from testing.md in the name of DRY
- rm cluster/test-conformance.sh; unusable in release tar, not e2e.go
- update e2e test link in write-a-getting-started-guide.md
Totally guessing at the escaping in that string
@k8s-github-robot
Copy link

Labelling this PR as size/L

@k8s-github-robot k8s-github-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 22, 2016
@k8s-bot
Copy link

k8s-bot commented Mar 22, 2016

GCE e2e build/test passed for commit 3f501f6.

@k8s-bot
Copy link

k8s-bot commented Mar 22, 2016

GCE e2e build/test passed for commit 9182fbf.

@spxtr
Copy link
Contributor

spxtr commented Mar 22, 2016

Big thanks for removing those outdated scripts (#21843)

Finally, `[Conformance]` tests are tests we expect to pass on **any** Kubernetes cluster. The `[Conformance]` label does not supersede any other labels. `[Conformance]` test policies are a work-in-progress (see #18162).
Finally, `[Conformance]` tests represent a subset of the e2e-tests we expect to pass on **any** Kubernetes cluster. The `[Conformance]` label does not supersede any other labels.

As each new release of Kubernetes providers new functionality, the subset of tests necessary to demonstrate conformance grows with each release. Conformance is thus considered versioned with an eye towards backwards compatibility. Conformance tests for a given version should be run off of the release branch that corresponds to that version. Thus `v1.2` conformance tests would be run from the head of the `release-1.2` branch. eg:
Copy link
Member

Choose a reason for hiding this comment

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

do we have a limit on how long we expect conformance tests to work? I think the upgrade policy is trailing 3 versions (or something like that).

Copy link
Member Author

Choose a reason for hiding this comment

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

makes sense to me, will link to the versioning doc

@spiffxp
Copy link
Member Author

spiffxp commented Mar 22, 2016

/cc @karlkfi for the mesos contrib change

@k8s-bot
Copy link

k8s-bot commented Mar 22, 2016

GCE e2e build/test passed for commit d8d785f.

@@ -31,7 +31,7 @@ TEST_ARGS="$@"

KUBE_ROOT=$(cd "$(dirname "${BASH_SOURCE}")/../../.." && pwd)

TEST_CMD="KUBECONFIG=~/.kube/config hack/conformance-test.sh"
TEST_CMD="KUBE_CONFORMANCE_TEST=y KUBECONFIG=~/.kube/config go run hack/e2e.go --test --test_args=\"--ginkgo.focus=\\[Conformance\\]\""
Copy link
Contributor

Choose a reason for hiding this comment

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

lgtm

@k8s-bot
Copy link

k8s-bot commented Mar 23, 2016

GCE e2e build/test passed for commit d794b86.

- Contains clients, namespace and auto resource cleanup
* See [coding conventions](coding-conventions.md).

### e2e test philosophy
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the thinking behind yanking all this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Primarily to DRY up the docs, so that future updates around e2e testing happen in one place vs. two places. My read of the e2e-tests doc was that all this info was sufficiently expressed there. Maybe that doc lacks something that's as tl;dr-ish as this?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure we can always add back something similar if someone misses it, and I'm always for less code.

On the other hand I liked having at least one command to run tests to serve as a reminder (I pretty much never do anything without having a reference doc open reminding me how to do it):

Maybe add something like this in a future PR:

cd kubernetes
go run hack/e2e.go -v --build --up --test --down  --test_args="--ginkgo.focus=\[Conformance\]"

@fejta fejta assigned fejta and unassigned thockin Mar 29, 2016
@fejta fejta added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 30, 2016
@k8s-github-robot
Copy link

@k8s-bot test this

Tests are more than 48 hours old. Re-running tests.

@k8s-bot
Copy link

k8s-bot commented Mar 30, 2016

GCE e2e build/test passed for commit d794b86.

@k8s-github-robot
Copy link

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

@k8s-bot
Copy link

k8s-bot commented Mar 30, 2016

GCE e2e build/test passed for commit d794b86.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit be8ce6c into kubernetes:master Mar 30, 2016
@spiffxp spiffxp deleted the conformance-docs branch March 30, 2016 16:57
@fejta
Copy link
Contributor

fejta commented Mar 30, 2016

#18162

xingzhou pushed a commit to xingzhou/kubernetes that referenced this pull request Dec 15, 2016
Automatic merge from submit-queue

Update conformance test policy

Addresses kubernetes#14913

/cc @kubernetes/sig-testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants