-
Notifications
You must be signed in to change notification settings - Fork 19
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
tests, net, checkup: Separate the DPDK checkup config helper #193
base: main
Are you sure you want to change the base?
Conversation
The checkups configurations are unique per individual checkup. The DPDK one has its own unique fields, some mandatory and some optional. This change separates the configuration creation for DPDK from the others. It provides clarity about which arguments are relevant to the DPDK checkup, expressing also which ones are mandatory and which ones are optional. In addition, typing has been added and a small simplification introduced to shorten the call-stack. Signed-off-by: Edward Haas <[email protected]>
Report bugs in Issues The following are automatically added:
Available user actions:
Supported /retest check runs
Supported labels
|
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.
D/S test tox -e verify-bugs-are-open
passed: cnv-tests-tox-executor/6077
/lgtm |
@Anatw , can you please help verify this one? |
/build-and-push-container |
New container for quay.io/openshift-cnv/openshift-virtualization-tests:pr-193 published |
Compose a dictionary with the ConfigMap data for the DPDK checkup. | ||
|
||
Args: | ||
timeout (str): Timeout to wait for the checkup to finish, in minutes. |
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.
It might be helpful to mention that the timeout argument expects the duration in minutes, with the 'm' suffix. Alternatively, you could have the user provide an integer value (representing minutes), and the function could automatically append the 'm' suffix. This way, the user wouldn't have to worry about formatting the duration correctly.
Short description:
Separate the DPDK checkup config helper
What this PR does / why we need it:
The checkups configurations are unique per individual checkup. The DPDK one has its own unique fields, some mandatory and some optional.
This change separates the configuration creation for DPDK from the others.
It provides clarity about which arguments are relevant to the DPDK checkup, expressing also which ones are mandatory and which ones are optional.
In addition, typing has been added and a small simplification introduced to shorten the call-stack.
Which issue(s) this PR fixes:
Special notes for reviewer:
jira-ticket:
NONE