-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-16018: [Doc][Python] Run doctests on Python docstring examples (CI job) #13216
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
Conversation
|
CI shows: |
|
I am wondering if we can include the doctests in the existing sphinx doc build as a separate step, to avoid adding yet another build in the regular CI (also, setting up the docker and building arrow/pyarrow takes longer as the actual tests). Although for local use, it might be nice you can run it separately. cc @raulcd |
|
Planning to correct the CI errors asap. |
|
I get this error locally also, not sure if I have to add permission on the file? |
I've been able to fix it by changing the permissions from the file and make it executable: |
That is a pretty good point. I see benefits and drawbacks on both cases but probably at the point we are right now, were we struggle to get runners on GitHub and docker cache is not working correctly, it might make more sense to add an extra step to the existing Sphinx docs build instead of creating a new CI job as you are suggesting. We have a couple of ideas in mind to extend the capacity of our GitHub runners and improve the Docker caching but they will take some time to be done. |
|
Seems to be failing some tests at the moment I don't think we should be using |
|
Yes, those failures are handled in #13199 already. The current plan is to merge that first (soon, once CI is green again), and then update this PR. |
…(--doctest-modules) A series of 3 PRs add `doctest` functionality to ensure that docstring examples are actually correct (and keep being correct). - [x] Add `--doctest-module` - [x] Add `--doctest-cython` #13204 - [x] Create a CI job #13216 This PR can be tested with `pytest --doctest-modules python/pyarrow`. Closes #13199 from AlenkaF/ARROW-16018 Lead-authored-by: Alenka Frim <frim.alenka@gmail.com> Co-authored-by: Alenka Frim <AlenkaF@users.noreply.github.com> Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Co-authored-by: Raúl Cumplido <raulcumplido@gmail.com>
|
This should be ready to merge. |
The failures on travis don't seem related to the change to me either. |
|
Benchmark runs are scheduled for baseline = 841e905 and contender = 7fda23c. 7fda23c is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
This PR adds a CI job to test python docstrings with
doctest.It can be tested with
archery docker run conda-python-docs.