-
-
Notifications
You must be signed in to change notification settings - Fork 555
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
Revamped notebook testing infrastructure #3344
Conversation
Co-Authored-By: Arjun <[email protected]>
Co-Authored-By: Arjun <[email protected]>
Co-Authored-By: Arjun <[email protected]>
Co-Authored-By: Arjun <[email protected]>
Co-Authored-By: Arjun <[email protected]>
Co-Authored-By: Arjun <[email protected]>
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Co-Authored-By: Arjun <[email protected]>
Co-Authored-By: Arjun <[email protected]>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #3344 +/- ##
===========================================
- Coverage 99.57% 99.56% -0.02%
===========================================
Files 253 253
Lines 19571 19546 -25
===========================================
- Hits 19488 19461 -27
- Misses 83 85 +2
☔ View full report in Codecov by Sentry. |
Even if there isn't a huge improvement shown in the CI with Another thing to be noted is that |
Also, I'm not sure about this but |
Update: after the failures were fixed, the notebooks step in particular completed in 12 minutes, which looks like it is less than half of the previous times! Now our notebook tests will take roughly the same time as the unit tests or integration tests jobs. |
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, @agriyakhetarpal! A fantastic step towards migrating to pytest
!
Co-authored-by: Saransh Chopra <[email protected]>
Co-Authored-By: Arjun <[email protected]>
) | ||
parser.add_argument( | ||
"-debook", | ||
"--debook", |
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.
Apparently, this was an error that wasn't caught. I updated the argument to match what the documentation says (or said, rather).
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, thanks @agriyakhetarpal!
Description
Adds
pytest
plus thepytest-xdist
andnbmake
plugins to execute notebooks in parallel, along with associated and ancillary changes to the documentation and infrastructureFixes #3165
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.
Key checklist:
$ pre-commit run
(or$ nox -s pre-commit
) (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)$ python run-tests.py --all
(or$ nox -s tests
)$ python run-tests.py --doctest
(or$ nox -s doctests
)You can run integration tests, unit tests, and doctests together at once, using
$ python run-tests.py --quick
(or$ nox -s quick
).Further checks: