-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Add the requirement that GA/stable APIs must have conformance tests #1806
Conversation
…if/as appropriate.
I don’t see any compelling reason not to do this in 1.10. Lgtm but will let others weigh in as well. |
@brahmaroutu can you add a link to the doc that describes the metadata that conformance tests are support to include? @bgrant0607 is this api_changes doc the right (and only spot) it should go? |
This PR was cited in a recent email discussing CNCF funding of "missing" conformance tests. A coverage number of 11% was discussed, but much of the remaining coverage already exists in the unit and integration test suites. Is it a goal to move those to e2e tests (which is where conformance tests currently live)? It would be good to clarify what coverage is expected in conformance tests:
|
@duglin: Let's create a central hub for conformance-related info. We could then link to that from here and elsewhere, as appropriate. @liggitt: I didn't intend to get into the technical details of how to add conformance tests in this PR, much as it doesn't describe how to write other kinds of tests, either. We need other documents to provide answers to your questions. The CNCF-funded effort isn't the only part of what we need to do to increase coverage. The current set of conformance tests are end-to-end tests that were originally tagged with Unsurprisingly, there are many coverage-related shortcomings in the current test suite:
Some specific examples:
We will need to address such issues. For example, we're going to need a new test framework that abstracts how such tests are executed so that they can be launched on full clusters as well as more targeted, efficient, stable tests. But I don't think solving all of those problems should block the policy. We need to start chipping away at this. In any case, even without considering the issue of conformance, our testing needs significant improvement. It's time to raise the bar. |
It's true that much of the 'gap' can be closed by promoting existing tests to conformance tests. The working group intentionally focused on creating a formal process for proposing/promoting new conformance tests rather than expanding coverage initially. This working doc proposes some guidelines for next efforts. Not all tests should be in the conformance test suite, certainly, at least, for the 'base profile'. An explicit goal has been that features that require the capacity of a public cloud, e.g., are out of scope for the 'base profile' and there has not been significant effort invested in defining any additional profiles (though the mechanism is supported in the terms and conditions). |
That is perfectly valid, I was just concerned by the CNCF project proposal citing this policy as dovetailing with its specific technical goals, and that it would lead to development efforts improving metrics that may not actually matter.
I agree. The measurements used to plan improvements, judge success, and ensure future work doesn't regress coverage should be the first step.
I agree, and look forward to progress in this area. |
Any other comments before we merge this? |
I have created a PR to add guidelines for writing comments on conformance tests for generating the conformance document. #1867 First version of conformance document is here and we are working on better descriptions for the test. |
I'm going to apply Clayton's lgtm for real now. /lgtm |
@bgrant0607: you cannot LGTM your own PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bgrant0607 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 |
Add the requirement that GA/stable APIs must have conformance tests, if/as appropriate.
The intent is to stop the bleeding on features progressing to GA without conformance tests. There are some details to work out, but I don't think they belong in this doc. I'm just trying to capture the intent here.
cc @kubernetes/sig-architecture-api-reviews @jagosan @WilliamDenniss