Skip to content

Commit

Permalink
Fix CUDA suite setup failure (#350)
Browse files Browse the repository at this point in the history
* Fix suite setup failure

Signed-off-by: Luca Giorgi <[email protected]>

* Add sleep on spawner reload

Signed-off-by: Luca Giorgi <[email protected]>
  • Loading branch information
lugi0 authored May 10, 2022
1 parent 14cb575 commit ad2d068
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Tests/500__jupyterhub/minimal-cuda-test.robot
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Verify CUDA Image Suite Setup
Spawn Notebook With Arguments image=${NOTEBOOK_IMAGE} size=Default gpus=1
# Verifies that now there are no GPUs available for selection
@{old_browser} = Get Browser Ids
Sleep 30s msg=Give time to spawner to update GPU count
Launch Dashboard ${TEST_USER2.USERNAME} ${TEST_USER2.PASSWORD} ${TEST_USER2.AUTH_TYPE}
... ${ODH_DASHBOARD_URL} ${BROWSER.NAME} ${BROWSER.OPTIONS}
Launch JupyterHub Spawner From Dashboard ${TEST_USER_2.USERNAME} ${TEST_USER.PASSWORD}
Expand All @@ -76,6 +77,8 @@ Verify CUDA Image Suite Setup
# the Resources-GPU tag will always ensure there is 1 node with 1 GPU on the cluster.
${maxNo} = Find Max Number Of GPUs In One Node
${maxSpawner} = Fetch Max Number Of GPUs In Spawner Page
Should Be Equal ${maxSpawner} ${maxNo-1}
# Need to continue execution even on failure or the whole suite will be failed
# And not executed at all.
Run Keyword And Warn On Failure Should Be Equal ${maxSpawner} ${maxNo-1}
Close Browser
Switch Browser ${old_browser}[0]

0 comments on commit ad2d068

Please sign in to comment.