-
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
fix: Jupyuterhub, workbench and model serving related tests #971
Conversation
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.
Robocop found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.
Robot Results
|
…-hat-data-services/ods-ci into fix/refactor_jupyter_nb_accelerators
… fix/refactor_jupyter_nb_accelerators
…-hat-data-services/ods-ci into fix/refactor_jupyter_nb_accelerators
${KFNBC_ACCELERATOR_INPUT_XPATH} = //input[@aria-label='Number of accelerators'] | ||
${KFNBC_ACCELERATOR_LESS_BUTTON_XPATH} = ${KFNBC_ACCELERATOR_INPUT_XPATH}/preceding-sibling::button | ||
${KFNBC_ACCELERATOR_PLUS_BUTTON_XPATH} = ${KFNBC_ACCELERATOR_INPUT_XPATH}/following-sibling::button | ||
${KFNBC_MAX_ACCELERATOR_WARNING_XPATH} = //div[@aria-label='Warning Alert']//h4[contains(text(), 'accelerator detected')] |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
${WORKBENCH_SIZE_MENU_BTN_XP}= xpath=//section[@id="deployment-size"]//button # Removing the attribute in case it changes like it did for the image dropdown | ||
${WORKBENCH_SIZE_SIDE_MENU_BTN}= xpath=//nav[@aria-label="Jump to section"]//span[text()="Deployment size"] | ||
${WORKBENCH_ACCELERATOR_DROPDOWN_XPATH}= xpath=//label[@for='modal-notebook-accelerator']/ancestor::div[@class='pf-c-form__group']/descendant::button |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
Click Element ${WORKBENCH_SIZE_SIDE_MENU_BTN} | ||
Wait Until Page Contains Element ${WORKBENCH_ACCELERATOR_DROPDOWN_XPATH} | ||
Click Element ${WORKBENCH_ACCELERATOR_DROPDOWN_XPATH} | ||
IF "${gpus}" == "0" |
Check notice
Code scanning / Robocop
Variable '{{ name }}' in '{{ block_name }}' condition has unnecessary string conversion Note test
${GPU_SECTION_PLUS}= ${GPU_SECTION_TITLE}/../../..//button[@aria-label="Plus"] | ||
${GPU_SECTION_MINUS}= ${GPU_SECTION_TITLE}/../../..//button[@aria-label="Minus"] | ||
|
||
${SERVING_ACCELERATOR_DROPDOWN_XPATH}= xpath=//label[@for='modal-notebook-accelerator']/ancestor::div[@class='pf-c-form__group']/descendant::button |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
Page Should Contain Element xpath://span[.="${server_name}"]/../../../..//span[.="Number of GPUs"]/../../dd/div[.="${no_gpus}"] | ||
Click Element ${SERVING_MODEL_SERVERS_SIDE_MENU} | ||
Sleep 5s reason=wait for ten second until operator goes into init state | ||
${current_accs}= Get Text xpath://span[text()="${server_name}"]/../../../following-sibling::tr//td[@data-label]/div/dl/div[4]/dd/div |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
${maxGPUs} = Get Text xpath://li[@class="pf-c-select__menu-wrapper"][last()]/button | ||
${maxGPUs} = Convert To Integer ${maxGPUs} | ||
Set NVidia GPU Accelerator | ||
${max_operator_detected} = Run Keyword And Return Status Page Should Contain Element xpath=${KFNBC_MAX_ACCELERATOR_WARNING_XPATH} |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
${max_operator_detected} = Run Keyword And Return Status Page Should Contain Element xpath=${KFNBC_MAX_ACCELERATOR_WARNING_XPATH} | ||
WHILE not ${max_operator_detected} | ||
Click Element xpath:${KFNBC_ACCELERATOR_PLUS_BUTTON_XPATH} | ||
${max_operator_detected} = Run Keyword And Return Status Page Should Contain Element xpath=${KFNBC_MAX_ACCELERATOR_WARNING_XPATH} |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
ods_ci/tests/Resources/Page/ODH/JupyterHub/JupyterHubSpawner.robot
Outdated
Show resolved
Hide resolved
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, when we have a full clean run we can merge
ods_ci/tests/Resources/Page/ODH/JupyterHub/JupyterHubSpawner.robot
Outdated
Show resolved
Hide resolved
ods_ci/tests/Resources/Page/ODH/ODHDashboard/ODHDataScienceProject/ModelServer.resource
Show resolved
Hide resolved
.../400__ods_dashboard/415__ods_dashboard_projects/415__ods_dashboard_projects_additional.robot
Show resolved
Hide resolved
ods_ci/tests/Resources/Page/ODH/ODHDashboard/ODHDataScienceProject/ModelServer.resource
Outdated
Show resolved
Hide resolved
ods_ci/tests/Resources/Page/ODH/ODHDashboard/ODHDataScienceProject/ModelServer.resource
Outdated
Show resolved
Hide resolved
I have runned the rhods-ci-pr-test pipeline (2052) and all GPU resources related tests has gone Green/ |
…-hat-data-services/ods-ci into fix/refactor_jupyter_nb_accelerators
bec218e
…-hat-data-services/ods-ci into fix/refactor_jupyter_nb_accelerators
I have runned the rhods-ci-pr-test pipeline (2071) and all GPU resources related tests has gone Green. |
… fix/refactor_jupyter_nb_accelerators
Kudos, SonarCloud Quality Gate passed! |
…data-services#971) * fix minimal-cuda-test * fix workbenches * fix model serving * Linter fixes * PR Fixes * PR fixes * fix PR comment: Generic accelerator setter * Add a rerun migration for accelerators in gpu deploy script * PR fixes * Update ods_ci/tasks/Resources/Provisioning/GPU/gpu_deploy.sh Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update ods_ci/tasks/Resources/Provisioning/GPU/gpu_deploy.sh Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update ods_ci/tasks/Resources/Provisioning/GPU/gpu_deploy.sh Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * PR fixes * delete one pod instead the complete dashboard replica set * Pod deletion more clean and smart * modify delete dashboard error message * Rollback restart instead of pod deletion * fix typo in variable in workbenches * Delete unused variables in gpu_deploy script --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…data-services#971) * fix minimal-cuda-test * fix workbenches * fix model serving * Linter fixes * PR Fixes * PR fixes * fix PR comment: Generic accelerator setter * Add a rerun migration for accelerators in gpu deploy script * PR fixes * Update ods_ci/tasks/Resources/Provisioning/GPU/gpu_deploy.sh Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update ods_ci/tasks/Resources/Provisioning/GPU/gpu_deploy.sh Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update ods_ci/tasks/Resources/Provisioning/GPU/gpu_deploy.sh Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * PR fixes * delete one pod instead the complete dashboard replica set * Pod deletion more clean and smart * modify delete dashboard error message * Rollback restart instead of pod deletion * fix typo in variable in workbenches * Delete unused variables in gpu_deploy script --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…data-services#971) * fix minimal-cuda-test * fix workbenches * fix model serving * Linter fixes * PR Fixes * PR fixes * fix PR comment: Generic accelerator setter * Add a rerun migration for accelerators in gpu deploy script * PR fixes * Update ods_ci/tasks/Resources/Provisioning/GPU/gpu_deploy.sh Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update ods_ci/tasks/Resources/Provisioning/GPU/gpu_deploy.sh Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update ods_ci/tasks/Resources/Provisioning/GPU/gpu_deploy.sh Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * PR fixes * delete one pod instead the complete dashboard replica set * Pod deletion more clean and smart * modify delete dashboard error message * Rollback restart instead of pod deletion * fix typo in variable in workbenches * Delete unused variables in gpu_deploy script --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Refactor the tests in order to make it work with the new Accelerators UI
Previously: Users just need to set the number of GPUs from a dropdown.
Now: User first set the technology (Accelerator) which is going to use and then set the number of GPU units.
Affected forms: