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

Test notebooks with --nbval-lax #106

Closed
wants to merge 3 commits into from
Closed

Test notebooks with --nbval-lax #106

wants to merge 3 commits into from

Conversation

huard
Copy link
Collaborator

@huard huard commented Jan 29, 2021

Overview

This PR fixes #105

Changes:

  • Use --nbval-lax instead of --nbval in make test-notebooks

This is untested.
Is there a way to run make commands on the generated repo in the test suite ?

huard added 2 commits January 29, 2021 16:09
… is raised, instead of failing if the cell output is not identical to what is expected.
@huard huard requested a review from tlvu January 29, 2021 21:17
@tlvu
Copy link

tlvu commented Jan 29, 2021

Is there a way to run make commands on the generated repo in the test suite ?

How I test cookiecutter changes is I have a personal clone of this cookiecutter repo and I point cruft to my fork ... then I have to revert before final merge.

But for this change, it's too simple, you just go into one of the generated repo (Finch, Raven, ... ) and make the same change manually.

@tlvu
Copy link

tlvu commented Jan 29, 2021

That said, I've been thinking over about this and can we try to keep the current behavior to check cell output and then use # NBVAL_IGNORE_OUTPUT for cells that can not be validated, even with sanitize regex (our sanitize regex is getting pretty complete now)? Honestly there is nothing that fail currently (Finch, Pavics-sdi).

The last Finch failure is because the server side actually need to be updated. I'd say it was good that we are forced to deploy the newer Finch. We've been too lax in keeping the deployed server side up-to-date.

We've been thinking about disabling output checking because of Xarray html dataset output. Not every cell will display Xarray so I don't feel it justified to disable all checks just for some Xarray cells.

@cehbrecht
Copy link
Member

That said, I've been thinking over about this and can we try to keep the current behavior to check cell output

maybe add nbval-lax as a new target in the Makefile to have this test in addition (test-notebooks-lax)?

@cehbrecht cehbrecht marked this pull request as draft February 7, 2022 18:30
@Zeitsperre
Copy link
Collaborator

Addressed by #116

@Zeitsperre Zeitsperre closed this Mar 5, 2024
@Zeitsperre Zeitsperre deleted the fix-105 branch May 10, 2024 15:45
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.

Relax tests on notebooks
4 participants