-
Notifications
You must be signed in to change notification settings - Fork 36
CMP-3859: Add e2e test (60342) for disabled timeout with zero value #982
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
base: master
Are you sure you want to change the base?
Conversation
Port test case OCP-60342 to verify that setting timeout to 0s in a ScanSetting disables the timeout functionality. This ensures scans can complete without timeout errors when timeout is explicitly set to zero. The test creates a ScanSetting with timeout set to 0s and maxRetryOnTimeout set to 2, binds it to the ocp4-cis profile, and verifies that all scans complete successfully in DONE phase without ERROR results from timeouts. This addresses the missing upstream test noted in the downstream test suite.
|
Hi @taimurhafeez. Thanks for your PR. I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
… annotation (compliance.openshift.io/timeout) when timeout is disabled with 0s 2. Move TestTimeoutDisabledWithZeroValue from serial to parallel folder Related: OCP-60342
|
The test case is PASSing on OCP 4.20 cluster with implemented changes from PR #960 : |
|
/retest-required |
|
@taimurhafeez: This pull request references CMP-3859 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 story to target the "4.21.0" version, but no target version was set. DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
rhmdnd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just need to remove the comment in main_entry.go
I have removed the comment. Plus tested again, and it passed. |
rhmdnd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
/retest-required Looks like some of the scans timed out... We might want to consider breaking the test suite into smaller pieces based on functionality. That might help us isolate problematic tests. |
|
@taimurhafeez: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
Another issue with a scan timing out. This time, waiting for the compliance suite to be created, which seems odd.. |
|
/lgtm |
Strange. Is it from the CI run or your local run? |
|
@rhmdnd I ran the test again, and it does not appear to be getting into a scan timing-out issue. |
|
It could something wrong with the test content we're using, since it looks like the profile bundles are failing to parse. We're chasing that down in a separate PR: |
rhmdnd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhmdnd, taimurhafeez The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Port test case OCP-60342 to verify that setting the timeout to 0s in a ScanSetting disables the timeout functionality. This ensures scans can complete without timeout errors when timeout is explicitly set to zero.
The test creates a ScanSetting with a timeout set to 0 seconds and a maxRetryOnTimeout set to 2, binds it to the ocp4-cis profile, and verifies that all scans complete successfully in the DONE phase without any ERROR results due to timeouts.
This addresses the missing upstream test noted in the downstream test suite.
To implement this PR:
The following line needs to be commented in tests/e2e/framework/main_entry.go or there will be error
error creating Machine Config Pool e2e-invalidline to be commented -->
return fmt.Errorf("failed to create Machine Config Pool %s: %w", "e2e-invalid", err)Run the test
make e2e-parallel E2E_GO_TEST_FLAGS="-v -run TestTimeoutDisabledWithZeroValue"