Skip to content

Commit 26a5a08

Browse files
Merge pull request #2865 from GeorgianaElena/hub_test_image
Temporarly set user_options for test users and leap hubs
2 parents 04c13d1 + 625f926 commit 26a5a08

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

deployer/tests/test_hub_health.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ async def check_hub_health(hub_url, test_notebook_path, service_api_token):
4141
# This is because we would have lost its api token from the previous run.
4242
await hub.delete_user(username)
4343

44+
# Temporary fix for https://github.com/2i2c-org/infrastructure/issues/2146#issuecomment-1649445203
45+
# FIXME: Remove this once a fix in kubespawner gets implemented
46+
user_options = {}
47+
if "leap" in hub_url:
48+
user_options = {
49+
"profile": "medium-full",
50+
"requests": "mem_8",
51+
"image": "pangeo",
52+
}
53+
4454
# Create a new user, start a server and execute a notebook
4555
await execute_notebook(
4656
hub_url,
@@ -52,6 +62,7 @@ async def check_hub_health(hub_url, test_notebook_path, service_api_token):
5262
delete_user=False, # To be able to delete its server in case of failure
5363
stop_server=True, # If the health check succeeds, this will delete the server
5464
validate=False, # Don't validate notebook outputs. We only care that it runs top-to-bottom without error.
65+
user_options=user_options,
5566
)
5667
finally:
5768
if orig_service_token:

0 commit comments

Comments
 (0)