Hi all, SIG Testing have implemented
https://kep.k8s.io/5514 in
https://github.com/kubernetes/kubernetes/pull/133394, this introduces special new e2e test results which validate some component metrics *after* the rest of the e2e suite. These checks involve a read-only fetch of apiserver metrics which should be quick and reliable.
This allows us to confirm that no declarative validation mismatches versus legacy validation or declarative validation panics occurred across the entire e2e suite in most e2e CI jobs. This extensive coverage is necessary in addition to unit tests, fuzzing, and integration tests because declarative validation will eventually touch all APIs and we need to ensure no regressions across all API fields.
We expect that there will be interest in adapting this functionality to more use cases, please reach out to the SIG Testing Leads to discuss, per the KEP we will review additional usage to ensure it meets the guidelines designed to ensure reliability laid out in the KEP.
If these new checks do fail for any reason, the failure message will contain standardized instructions about how to handle them, along with the required registered SIG and OWNERS to route bugs to, please do file a bug and assign the invariant owners + label the SIG from the failure message if you see failures like "[ReportAfterSuite] Invariant Metrics".
Additionally, for some time I will be watching for any issues with the framework and you can also CC me on any bugs, but I do not expect any, this has been extensively tested after lengthy discussions.
Thanks,
- Ben