To test the JupyterHub Singleuser Profiles library, you can follow these steps:
- Create a fork of the JSP repository
- Apply the required changes.
- Clone the jsp-wrapper repository.
- Follow the instructions written in the jsp-wrapper README
- Your changes should now be applied to jupyterhub in your cluster.
- In step 4 it is necessary to be logged in to your target openshift cluster, and you must have a quay.io account and be logged in to it through podman.
If your quay.io username is different from your github username, it is changeable with the
QUAY_REPO
variable. (ex. QUAY_REPO=username) - After step 5 any errors will be logged into the main
jupyterhub
pod. - To increase the verbosity of logging, each .py file which is part of the JSP library has a
_LOGGER
variable. To set verbosity to maximum, add_LOGGER.setlevel('DEBUG')
. By default the verbosity is set toWARNING
and above.
To test jsp changes that require modifying the jupyterhub-odh repository follow these steps:
- Create forks of both the JSP repository and the jupyterhub-odh repository
- Apply the required changes.
- Push the changes.
- Clone the jsp-wrapper repository.
- Follow instructions of this section of jsp-wrapper
- Your changes should now be applied to jupyterhub.
To test the API of the JSP library the same steps apply. Following these steps, it is necessary to go to the jupyterhub route
. To get to the debug UI of the AI use the following link: <jupyterhub route>/services/api/ui
Any errors of the API will appear in the main jupyterhub
pod. To configure these logs follow the instructions in the notes section of the JSP testing manual above.
To test the Spawner UI, follow the steps in the JSP section above. Then follow the jupyterhub route
.
Any errors will appear in the console accessed with F12. Closer information about the error may be available in the jupyterhub
pod.
For further information such as local testing of the UI, follow instructions of the testing section of the UI Readme