-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix notebook tests #550
Fix notebook tests #550
Conversation
@jakobkruse1 It's awesome that notebooks run again! Thanks for this. I guess you'll have noticed, but just in case:
So, maybe one can instead check for |
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.
Thanks for this. Note that we use pytest-split for the other tests. Is it also active for the notebook tests? And if yes, shouldn't we update the .test_durations
file?
@mdbenito I am not using pytest-split for the notebooks. I am using os.getenv("CI") which keeps the runtime of the notebooks acceptable. Therefore, splitting is not required as of now. In the future, splitting may be necessary to keep the runtimes acceptable. |
What is "acceptable"? Wouldn't it make sense to have add pytest-split while you are at it. We will have more notebooks, probably many of them. |
This PR is ready to merge from my side now @mdbenito @AnesBenmerzoug. Could somebody review it again? Also, I can't merge this, somebody else would have to do that :) |
@jakobkruse1 I just had a quick look at the CI run times for the notebook tests and they seem to vary wildly. You should run the notebook tests using Other than that, the only thing I would look into would be the rendering of the notebooks in the documentation (You could check that by building the docs locally using |
Done @AnesBenmerzoug |
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.
Looks good to me! I will merge it later this afternoon if Miguel doesn't leave any other comment.
Description
Currently, many notebooks tests fail due to timeouts or other bugs.
This branch aims to solve this by doing the following:
Pytest has its timeout set to 300 seconds, running all 10 notebooks in 300 might be nice. Other option is to split the notebook-tests like for the regular tests.
Fixed notebook errors
Checklist
"tags": ["hide"]
or"tags": ["hide-input"]