-
Notifications
You must be signed in to change notification settings - Fork 33
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
Create CI workflow for running a notebook test in notebook docker environment #648
Conversation
Signed-off-by: Akihiko Kuroda <akihikokuroda2020@gmail.com>
Signed-off-by: Akihiko Kuroda <akihikokuroda2020@gmail.com>
Signed-off-by: Akihiko Kuroda <akihikokuroda2020@gmail.com>
Signed-off-by: Akihiko Kuroda <akihikokuroda2020@gmail.com>
…jupyter notebook container
run: docker compose --profile full up -d | ||
- name: Test notebooks in the docker environment | ||
shell: bash | ||
run: docker exec qs-jupyter "bash" "-c" "pip install nbmake pytest && pytest --nbmake /home/jovyan/serverless/" |
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.
@psschwei any idea why the gateway doesnt seem to be working in the notebooks when I run these tests?
The gateway container should be up and available from line 13, I'm able to pip install the packages and run the nbmake command fine, the notebooks just fail bc they cant access gateway host
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'm hitting a similar issue in reviewing #640 , still investigating
This PR is in a weird state from debugging. going to submit a fresh PR |
Summary
This PR adds a check to the CI which loads up the full docker profile and runs a notebook test (
pytest --nbmake ...
) on all of our notebooks in thedocs
dir against the runningqr-jupyter
container.Details and comments
This is a lengthy test, so it will only run on pushes to main and/or changes to docker-compose.yml/.dockerignore
I have these tests enabled on this PR, but I will enable them only for main branch before merging
Need to debug why we're getting a gateway error in notebook tests.