Skip to content
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

Closed
wants to merge 18 commits into from

Conversation

caleb-johnson
Copy link
Collaborator

@caleb-johnson caleb-johnson commented Jun 7, 2023

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 the docs dir against the running qr-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.

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/"
Copy link
Collaborator Author

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

Copy link
Collaborator

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

@caleb-johnson
Copy link
Collaborator Author

This PR is in a weird state from debugging. going to submit a fresh PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants