Build and test the docs in Azure#3873
Conversation
|
Hello @soupault! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2019-05-16 21:16:51 UTC |
doc/examples/applications/plot_haar_extraction_selection_classification.py
Outdated
Show resolved
Hide resolved
|
@soupault Sorry for jumping on you prematurely ;) |
|
OK! Let me summarize the PR once again: 1. Additions: 2. Changes: |
|
@scikit-image/core The PR is ready now :). |
|
i can see the value of running the examples on windows, maybe, but I think the modifications to the docstrings are extremely distracting. I think we test the library enough to be able to forego docstring testing on windows, in favour of teaching coding style by example. |
|
Yeah. Sorry for making it sound negative. I hope me taking time to give my opinion speaks louder than my "-1" on certain changes. These kinds of maintenance PRs are what allows the library to move forward with confidence. Great work hunting down a potential bug with numpy printing. |
|
@hmaarrfk @stefanv No worries and thank you for the comments!
I think we are all aligned on that :). I was just trying to get as coverage as possible. You are probably right that if some of the docstring examples starts to fail on Windows, and not on the other platforms, we might need to review our test suite. It seems that the actual issue(?) is on Otherwise, the PR is as fresh, shiny, and green as before. |
| t_start = time() | ||
| X = np.array(X.compute(scheduler='processes')) | ||
| if sys.platform.startswith('win'): | ||
| # To run multiprocessing Dask tasks on Windows, one needs to write |
There was a problem hiding this comment.
Is this true? I'll have to test when I boot back up into windows tonight.
There was a problem hiding this comment.
@hmaarrfk I don't have a Windows machine to cross-validate the fix, but the comment is valid for the Azure Windows VMs (been there, done that :)).
|
Making the executable docstrings fully portable is indeed tricky--for NumPy and SciPy I think we do two things for this:
When I check the different results you mention in the cross-linked NumPy issue, I can see the refguide will likely indicate that these are the same because Vendoring I've also been dreaming about doctest line coverage reports, described elegantly by Raymond Hettinger. |
doc/examples/applications/plot_haar_extraction_selection_classification.py
Outdated
Show resolved
Hide resolved
doc/examples/applications/plot_haar_extraction_selection_classification.py
Outdated
Show resolved
Hide resolved
doc/examples/applications/plot_haar_extraction_selection_classification.py
Outdated
Show resolved
Hide resolved
doc/examples/applications/plot_haar_extraction_selection_classification.py
Outdated
Show resolved
Hide resolved
doc/examples/applications/plot_haar_extraction_selection_classification.py
Outdated
Show resolved
Hide resolved
doc/examples/applications/plot_haar_extraction_selection_classification.py
Outdated
Show resolved
Hide resolved
| t_start = time() | ||
| X = np.array(X.compute(scheduler='threads')) | ||
| if sys.platform.startswith('win'): | ||
| X = np.array(X.compute(scheduler='synchronous')) |
There was a problem hiding this comment.
Could you link to the specific dask docs page that talks about this? Is it necessary for threaded as well as multiprocessing? I almost would prefer not running this example at all in Windows than having the code structured like this.
There was a problem hiding this comment.
Threads seem to work, thanks for the suggestion!
jni
left a comment
There was a problem hiding this comment.
@soupault I've suggested a few grammatical fixes, which I would have just pushed, but I also have some concerns about the win-specific code in the examples. At a minimum, I would like a link to the exact location in the dask docs where this is discussed. Ideally we'd be able to do without it...
|
@tylerjereddy refguide_check looks like exactly the right medicine! Thanks for the pointer! As far as I know we are already measuring doctest coverage, though we don't distinguish between doctest and unit test coverage... |
|
@jni can you link me to an example coverage html for a module where the docstring examples are shown as "hit" / highlighted for scikit-image? |
|
When did we remove coverage upload, I thought I only silenced it, the same way numpy silenced it. |
Language check Co-Authored-By: Juan Nunez-Iglesias <juan.nunez-iglesias@monash.edu>
…for 32bit due to memory error
|
Thank you @tylerjereddy for your comment! @jni Even if that |
|
Travis fails due to #3891 change and is not related to this PR. |
|
@soupault I hope I answered your question appropriately. =D |
|
Thanks Everyone for the reviews! |
Description
Implement documentation building and testing in Azure Pipelines, similarly to https://github.com/scikit-image/scikit-image/blob/master/tools/travis/script.sh.
Checklist
./doc/examples(new features only)./benchmarks, if your changes aren't covered by anexisting benchmark
For reviewers
later.
__init__.py.doc/release/release_dev.rst.@meeseeksdev backport to v0.14.x