-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Check conformance test should not call any Skip #76734
Conversation
pull-kubernetes-verify should detect it and be failed. |
/area conformance |
|
/priority important-soon |
The Skip line in the offending test can definitely be removed. var crdVersion = utilversion.MustParseSemantic("v1.7.0")
//...
framework.SkipUnlessServerVersionGTE(crdVersion, f.ClientSet.Discovery()) /approve Now that you've used this PR to demonstrate that we're catching a Skip, remove it and we should see the verify job go green? |
Yep, right. I wanted to demonstrate we can catch invalid usage of Skip in conformance tests and make a consensus that we should not have such Skip. |
e6bc109
to
462083f
Compare
20d6e29
to
1a39f8e
Compare
/retest |
1 similar comment
/retest |
1a39f8e
to
5c108b0
Compare
5c108b0
to
ec32403
Compare
Basically conformance test checks the target k8s cluster works all features which are specified in each test and that should not depend on any condition. This adds checking that conformance test should not call any Skip methods. And it detects the existing conformance test "creating/deleting custom resource definition objects works" calls framework.SkipUnlessServerVersionGTE(). So this removes the Skip also.
ec32403
to
52885a8
Compare
@timothysc Hi, could you take a look at this again? I have fixed your point, I think. |
/lgtm |
@oomichi lgtm I put you in the approval column waiting on final approval. |
I guess you are saying 'cncf-k8s-conformance-wg' needs to approve this before merging, right? |
/uncc |
/assign @bgrant0607 @smarterclayton |
/hold cancel /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: oomichi, smarterclayton, spiffxp, timothysc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
A conformance 1.14 cluster is hitting this (a test is skipped). Going to try a cherry-pick to 1.14, and if it doesn't work will do a more targeted fix. /cherrypick release-1.14 |
Cherrypicked to #80598 manually, only the removal of the skips. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Basically conformance test checks the target k8s cluster works all
features which are specified in each test and that should not depend
on any condition.
This adds checking that conformance test should not call any Skip
methods. And it detects the existing conformance test
"creating/deleting custom resource definition objects works"
calls framework.SkipUnlessServerVersionGTE().
This removes the Skip also.
Ref: #74432
Does this PR introduce a user-facing change?: