-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fixes to catch changes to versioned rules as well as rules going NOT-APPLICABLE #29
Conversation
We used to vendor an ancient version of CO where the APIs didn't even support setting the showNotApplicable option. Jira: CMP-1417
Several versions ago, CO started defaulting to not creating check results for rules that are not applicable. While that's good for the end user, doing so in the e2e test environment means that we completely miss checks that have become not applicable for a platform for one reason or another. We should always evaluate all test results against the expected results. Jira: CMP-1417
…n, but exists for other versions Right now, the CaC e2e tests do support versioned test results, but if a test result does not exist for a specific version, the tests simply fall back to the version-less test result and if that doesn't exist either, the result is silently ignored. This means that once we switch to a new version of OCP but forgot to add a versioned test result for that version, the check is silently ignored. We need to have a mechanism that would alert us when we switch to a new version but don't add a versioned result for that version. Jira: CMP-1415
We used to look for versioned rules under ruleTestDir/manifest, so usually ocp4/e2e/4.10.yml or such. But that was incorrect, the versioned manifests live under the rule dir, not the directory where tests are executed from. Jira: CMP-1415
btw it is expected that the tests will fail at the moment until we merge ComplianceAsCode/content#8996 |
but I did verify that the tests pass using a content that includes that fix. At least we'll be able to verify that fix nicely going from red to green. |
Oops, I was wrong, there is a bug:
|
btw the known issue note looks good! |
ah, that's because:
|
Sorry, this was meant for a different PR. |
No, sorry, I need more coffee and/or more sleep. The known issue comment was meant for a different PR. The build issue should be fixed with openshift/release#29943 |
openshift/release#29943 was merged, let's try again if we get the "expected" failures. |
/retest |
/lgtm |
Please see the commit messages for more details.