-
Notifications
You must be signed in to change notification settings - Fork 82
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
RHOAIENG-5435 - Distributed Workloads Components #1392
RHOAIENG-5435 - Distributed Workloads Components #1392
Conversation
@@ -220,7 +220,7 @@ | |||
[Documentation] Checks there are no errors on Pod Logs | |||
[Arguments] ${pod_name} ${pod_namespace} ${regex_pattern} ${container} | |||
${pod_logs}= Oc Get Pod Logs name=${pod_name} namespace=${pod_namespace} container=${container} | |||
${match_list} Get Regexp Matches ${pod_logs} ${regex_pattern} | |||
${match_list} Get Regexp Matches ${pod_logs} ${regex_pattern} |
Check warning
Code scanning / Robocop
The assignment sign is not consistent within the file. Expected '{{ expected_sign }}' but got '{{ actual_sign }}' instead Warning test
|
||
[Tags] Operator Tier1 RHOAIENG-5435 codeflare-removed | ||
|
||
Set DSC Component Removed State And Wait For Completion codeflare ${CODEFLARE_DEPLOYMENT_NAME} ${CODEFLARE_LABEL_SELECTOR} |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
...ts/100__deploy/130__operators/130__rhods_operator/142__distributed_workload_components.robot
Fixed
Show fixed
Hide fixed
...ts/100__deploy/130__operators/130__rhods_operator/142__distributed_workload_components.robot
Fixed
Show fixed
Hide fixed
...ts/100__deploy/130__operators/130__rhods_operator/142__distributed_workload_components.robot
Fixed
Show fixed
Hide fixed
...ts/100__deploy/130__operators/130__rhods_operator/142__distributed_workload_components.robot
Fixed
Show fixed
Hide fixed
Robot Results
|
Passed on jekins / RHOAI. |
...ts/100__deploy/130__operators/130__rhods_operator/142__distributed_workload_components.robot
Outdated
Show resolved
Hide resolved
[Arguments] ${dsc} ${component} ${namespace} | ||
|
||
${rc} ${state}= Run And Return Rc And Output | ||
... oc get DataScienceCluster/${dsc} -n ${namespace} -o 'jsonpath={.spec.components.${component}.managementState}' |
Check warning
Code scanning / Robocop
The assignment sign is not consistent within the file. Expected '{{ expected_sign }}' but got '{{ actual_sign }}' instead Warning
Get DSC Component State | ||
[Documentation] Get component management state | ||
[Arguments] ${dsc} ${component} ${namespace} | ||
|
Check warning
Code scanning / Robocop
The assignment sign is not consistent within the file. Expected '{{ expected_sign }}' but got '{{ actual_sign }}' instead Warning
${rc} ${out}= Run And Return Rc And Output | ||
... oc wait --timeout=${wait_time} --for jsonpath='{.status.conditions[].reason}'=ReconcileCompleted -n ${namespace} dsc ${dsc_name} # robocop: disable | ||
Should Be Equal As Integers ${rc} ${0} | ||
Log ${out} console=${out} |
Check warning
Code scanning / Robocop
File has too many lines ({{ lines_count }}/{{max_allowed_count }}) Warning test
... check that kueue deployment and pod are created | ||
[Tags] Operator Tier1 RHOAIENG-5435 kueue-managed | ||
|
||
Set DSC Component Managed State And Wait For Completion kueue ${KUEUE_DEPLOYMENT_NAME} ${KUEUE_LABEL_SELECTOR} |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
...ts/100__deploy/130__operators/130__rhods_operator/142__distributed_workload_components.robot
Fixed
Show resolved
Hide resolved
...ts/100__deploy/130__operators/130__rhods_operator/142__distributed_workload_components.robot
Fixed
Show fixed
Hide fixed
...ts/100__deploy/130__operators/130__rhods_operator/142__distributed_workload_components.robot
Fixed
Show fixed
Hide fixed
...ts/100__deploy/130__operators/130__rhods_operator/142__distributed_workload_components.robot
Fixed
Show fixed
Hide fixed
${current_state}= Get DSC Component State ${DSC_NAME} ${component} ${OPERATOR_NS} | ||
IF "${current_state}" != "${saved_state}" | ||
IF "${saved_state}" == "Managed" | ||
Set DSC Component Managed State And Wait For Completion ${component} ${deployment_name} ${LABEL_SELECTOR} |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
IF "${saved_state}" == "Managed" | ||
Set DSC Component Managed State And Wait For Completion ${component} ${deployment_name} ${LABEL_SELECTOR} | ||
ELSE IF "${saved_state}" == "Removed" | ||
Set DSC Component Removed State And Wait For Completion ${component} ${deployment_name} ${LABEL_SELECTOR} |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
[Documentation] Get component management state | ||
[Arguments] ${dsc} ${component} ${namespace} | ||
|
||
${rc} ${state}= Run And Return Rc And Output |
Check warning
Code scanning / Robocop
The assignment sign is not consistent within the file. Expected '{{ expected_sign }}' but got '{{ actual_sign }}' instead Warning
[Arguments] ${dsc} ${component} ${namespace} | ||
|
||
${rc} ${state}= Run And Return Rc And Output | ||
... oc get DataScienceCluster/${dsc} -n ${namespace} -o 'jsonpath={.spec.components.${component}.managementState}' |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning
${RAY_DEPLOYMENT_NAME} kuberay-operator | ||
${IS_PRESENT} 0 | ||
${IS_NOT_PRESENT} 1 | ||
&{SAVED_MANATEMENT_STATES} |
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.
Would it be possible to rename it to SAVED_MANAGEMENT_STATES
?
|
||
Set DSC Component Managed State And Wait For Completion kueue ${KUEUE_DEPLOYMENT_NAME} ${KUEUE_LABEL_SELECTOR} | ||
|
||
[Teardown] Restore DSC Component State kueue ${KUEUE_DEPLOYMENT_NAME} ${KUEUE_LABEL_SELECTOR} ${SAVED_MANATEMENT_STATES.RAY} |
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.
[Teardown] Restore DSC Component State kueue ${KUEUE_DEPLOYMENT_NAME} ${KUEUE_LABEL_SELECTOR} ${SAVED_MANATEMENT_STATES.RAY} | |
[Teardown] Restore DSC Component State kueue ${KUEUE_DEPLOYMENT_NAME} ${KUEUE_LABEL_SELECTOR} ${SAVED_MANATEMENT_STATES.KUEUE} |
?
|
||
Set DSC Component Removed State And Wait For Completion kueue ${KUEUE_DEPLOYMENT_NAME} ${KUEUE_LABEL_SELECTOR} | ||
|
||
[Teardown] Restore DSC Component State kueue ${KUEUE_DEPLOYMENT_NAME} ${KUEUE_LABEL_SELECTOR} ${SAVED_MANATEMENT_STATES.RAY} |
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.
[Teardown] Restore DSC Component State kueue ${KUEUE_DEPLOYMENT_NAME} ${KUEUE_LABEL_SELECTOR} ${SAVED_MANATEMENT_STATES.RAY} | |
[Teardown] Restore DSC Component State kueue ${KUEUE_DEPLOYMENT_NAME} ${KUEUE_LABEL_SELECTOR} ${SAVED_MANATEMENT_STATES.KUEUE} |
?
|
||
Validate Codeflare Managed State | ||
[Documentation] Validate that the DSC by default sets component 'Codeflare' to sate Managed, | ||
... check that kueue deployment and pod are created |
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.
really kueue
?
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.
I put some comments 🙂
apart from @jstourac comments, lgtm |
|
||
Set DSC Component Managed State And Wait For Completion kueue ${KUEUE_DEPLOYMENT_NAME} ${KUEUE_LABEL_SELECTOR} | ||
|
||
[Teardown] Restore DSC Component State kueue ${KUEUE_DEPLOYMENT_NAME} ${KUEUE_LABEL_SELECTOR} ${SAVED_MANAGEMENT_STATES.KUEUE} |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
|
||
Set DSC Component Removed State And Wait For Completion kueue ${KUEUE_DEPLOYMENT_NAME} ${KUEUE_LABEL_SELECTOR} | ||
|
||
[Teardown] Restore DSC Component State kueue ${KUEUE_DEPLOYMENT_NAME} ${KUEUE_LABEL_SELECTOR} ${SAVED_MANAGEMENT_STATES.KUEUE} |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
|
||
Set DSC Component Managed State And Wait For Completion ray ${RAY_DEPLOYMENT_NAME} ${RAY_LABEL_SELECTOR} | ||
|
||
[Teardown] Restore DSC Component State ray ${RAY_DEPLOYMENT_NAME} ${RAY_LABEL_SELECTOR} ${SAVED_MANAGEMENT_STATES.RAY} |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
|
||
Set DSC Component Removed State And Wait For Completion ray ${RAY_DEPLOYMENT_NAME} ${RAY_LABEL_SELECTOR} | ||
|
||
[Teardown] Restore DSC Component State ray ${RAY_DEPLOYMENT_NAME} ${RAY_LABEL_SELECTOR} ${SAVED_MANAGEMENT_STATES.RAY} |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
[Documentation] Suite Setup | ||
RHOSi Setup | ||
Wait For DSC Conditions Reconciled ${OPERATOR_NS} ${DSC_NAME} | ||
${SAVED_MANAGEMENT_STATES.RAY}= Get DSC Component State ${DSC_NAME} ray ${OPERATOR_NS} |
Check notice
Code scanning / Robocop
Variable '{{ name }}' is assigned but not used Note test
RHOSi Setup | ||
Wait For DSC Conditions Reconciled ${OPERATOR_NS} ${DSC_NAME} | ||
${SAVED_MANAGEMENT_STATES.RAY}= Get DSC Component State ${DSC_NAME} ray ${OPERATOR_NS} | ||
${SAVED_MANAGEMENT_STATES.KUEUE}= Get DSC Component State ${DSC_NAME} kueue ${OPERATOR_NS} |
Check notice
Code scanning / Robocop
Variable '{{ name }}' is assigned but not used Note test
Wait For DSC Conditions Reconciled ${OPERATOR_NS} ${DSC_NAME} | ||
${SAVED_MANAGEMENT_STATES.RAY}= Get DSC Component State ${DSC_NAME} ray ${OPERATOR_NS} | ||
${SAVED_MANAGEMENT_STATES.KUEUE}= Get DSC Component State ${DSC_NAME} kueue ${OPERATOR_NS} | ||
${SAVED_MANAGEMENT_STATES.CODEFLARE}= Get DSC Component State ${DSC_NAME} codeflare ${OPERATOR_NS} |
Check notice
Code scanning / Robocop
Variable '{{ name }}' is assigned but not used Note test
${SAVED_MANAGEMENT_STATES.RAY}= Get DSC Component State ${DSC_NAME} ray ${OPERATOR_NS} | ||
${SAVED_MANAGEMENT_STATES.KUEUE}= Get DSC Component State ${DSC_NAME} kueue ${OPERATOR_NS} | ||
${SAVED_MANAGEMENT_STATES.CODEFLARE}= Get DSC Component State ${DSC_NAME} codeflare ${OPERATOR_NS} | ||
Set Suite Variable ${SAVED_MANAGEMENT_STATES} |
Check notice
Code scanning / Robocop
{{ set_variable_keyword }} can be replaced with VAR Note test
Addressed latest feedback. fyi @jstourac |
Quality Gate passedIssues Measures |
Included are test cases for DSC Distributed Workloads Components Ray, Codeflare and Kueue, tests Manage/Remove management states.
These components are restored to original management state.