ROX-37468: Remove duplicate tailoring tests from parallel suite (batch 1 of 2) #1441
Hi @redhat-chai-bot. Thanks for your PR.
I'm waiting for a ComplianceAsCode member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.
Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.
<details>
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-sigs/prow repository.
</details>
This comment is still applicable to a test we're keeping. We shouldn't remove it in this PR.
Requested changes.
@redhat-chai-bot: This pull request references ROX-37468 which is a valid jira issue.
Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the sub-task to target the "5.1.0" version, but no target version was set.
<details>
In response to this:
>Remove 5 duplicate tailoring tests from tests/e2e/parallel/main_test.go that are already covered by the dedicated tests/e2e/tailoring_tests/ suite.
>## Tests removed
>- TestScanTailoredProfileIsDeprecated — identical in tailoring suite>-
TestScanTailoredProfileHasDuplicateVariables — identical in tailoring suite>-
TestSingleTailoredScanSucceeds — identical in tailoring suite>-
TestScanSettingBindingWatchesTailoredProfile — identical in tailoring suite>-
TestTailoringManualRulesDoesNotGenerateRemediations — identical to TestManualRulesTailoredProfile in tailoring suite (renamed)>## Why this is safe
>The e2e-aws-tailoring CI job is being made conditionally required via openshift/release#86535, which auto-triggers on tailoring code changes. These tests will continue to run in the focused suite.>## Test NOT removed
>TestTailoringEnabledRulesGenerateRemediations — tests the complement case (enabled rules DO generate remediations), which the tailoring suite does not cover.>---
>AI-generated. Review for accuracy.
>@rhmdnd requested from Slack
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 openshift-eng/jira-lifecycle-plugin repository.
</details>
Good catch — this comment should stay since the test it documents (TestTailoringEnabledRulesGenerateRemediations) is being deliberately kept.
Per the review discussion with @Vincent056, these 11 dedup PRs will be consolidated into 5 (one per suite) to avoid merge conflicts and the orphaned import issue. I'll make sure this fix is incorporated in the consolidated tailoring dedup PR. These PRs are also on hold until the corresponding openshift/release run_if_changed PRs land first.
---
AI-generated. Review for accuracy.
Restored the 3-line doc comment in 4ee7079. Thanks for catching this — the deletion was too aggressive and swept up the comment with the adjacent removed test.
---
AI-generated. Review for accuracy.
Consistent with what's in the dedicated tailoring suite: https://github.com/ComplianceAsCode/compliance-operator/blob/d9602cd60421484ae523ed4287a06144970e1d85/tests/e2e/tailoring_tests/main_test.go#L57
Consistent with what's in https://github.com/ComplianceAsCode/compliance-operator/blob/d9602cd60421484ae523ed4287a06144970e1d85/tests/e2e/tailoring_tests/main_test.go#L126 besides an additional flag to short-circuit the test if only critical tests are being run.
Consistent with the tailoring suite tests: https://github.com/ComplianceAsCode/compliance-operator/blob/d9602cd60421484ae523ed4287a06144970e1d85/tests/e2e/tailoring_tests/main_test.go#L174
This test name changed, but confirmed it's identical to https://github.com/ComplianceAsCode/compliance-operator/blob/d9602cd60421484ae523ed4287a06144970e1d85/tests/e2e/tailoring_tests/main_test.go#L656
/lgtm
/ok-to-test
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: <a href="https://github.com/ComplianceAsCode/compliance-operator/pull/1441#" title="Author self-approved">redhat-chai-bot</a>, <a href="https://github.com/ComplianceAsCode/compliance-operator/pull/1441#pullrequestreview-5446818770" title="Approved">rhmdnd</a>
The full list of commands accepted by this bot can be found here.
The pull request process is described here
<details >
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
</details>
<!-- META={"approvers":[]} -->
@redhat-chai-bot: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:
Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
ci/prow/e2e-aws-tls-scanner-5-0 | 4ee7079a19b7e8d8478136d98009650237429954 | link | false | /test e2e-aws-tls-scanner-5-0
ci/prow/e2e-aws-serial | 4ee7079a19b7e8d8478136d98009650237429954 | link | true | /test e2e-aws-serial
Full PR test history. Your PR dashboard.
<details>
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-sigs/prow repository. I understand the commands that are listed here.
</details>
<!-- test report -->
Trimming the parallel suite based on what's already in the tailored suite. Failures are unrelated to the change and being investigated separately.
rhmdnd
redhat-chai-bot
Remove 5 duplicate tailoring tests from
tests/e2e/parallel/main_test.gothat are already covered by the dedicatedtests/e2e/tailoring_tests/suite.Tests removed
TestScanTailoredProfileIsDeprecated— identical in tailoring suiteTestScanTailoredProfileHasDuplicateVariables— identical in tailoring suiteTestSingleTailoredScanSucceeds— identical in tailoring suiteTestScanSettingBindingWatchesTailoredProfile— identical in tailoring suiteTestTailoringManualRulesDoesNotGenerateRemediations— identical toTestManualRulesTailoredProfilein tailoring suite (renamed)Why this is safe
The
e2e-aws-tailoringCI job is being made conditionally required via openshift/release#86535, which auto-triggers on tailoring code changes. These tests will continue to run in the focused suite.Test NOT removed
TestTailoringEnabledRulesGenerateRemediations— tests the complement case (enabled rules DO generate remediations), which the tailoring suite does not cover.---
AI-generated. Review for accuracy.
@rhmdnd requested from Slack