Repository navigation
Updates test suite to be used with pytest-run-parallel - #8065
Conversation
Address failing tests Address failing test Mark test as thread_unsafe Mark test as thred_unsafe Debug via SSH Mark test_rotate as thread_unsafe
fixes quite a few conflicts
Merges edgar's work into current `main`
Thanks! I'll do that and fix the conflicts here once the RNG PR is merged. |
|
I finally came back to this. Now that the other PRs are merged the diff is much smaller here. I'm going to stabilize CI then add developer docs. |
|
Reviews (2): Last reviewed commit: "Merge branch 'main' into use_pytest_run_..." | Re-trigger Greptile |
|
Reviews (3): Last reviewed commit: "avoid possible deadlock by creating a ne..." | Re-trigger Greptile |
|
Reviews (4): Last reviewed commit: "add developer docs" | Re-trigger Greptile |
|
@stefanv I think this is ready for another code review pass. That said, I saw one Linux failure I can't easily explain: https://github.com/scikit-image/scikit-image/actions/runs/25746117592/job/75610100370 Looking at the implementation of |
|
Reviews (5): Last reviewed commit: "remove unnecessary imports" | Re-trigger Greptile |
While working on #8065 I noticed that I had a kinda old spin version installed. IMO spin is stable enough you can mark this as a lower bound. Let's see if CI agrees.
stefanv
left a comment
There was a problem hiding this comment.
Very nice, thanks Nathan. I hope that CI target doesn't take too long running "many instances" of the tests in parallel :)
I need to look at the failure; never seen that one around before 🤔
| assert y.dtype == np.dtype(dtype_out) | ||
|
|
||
|
|
||
| @pytest.mark.thread_unsafe |
There was a problem hiding this comment.
I like the pattern you use below where you explain why; if you feel up to it everywhere.
| library functions and built-in pytest fixtures as thread-unsafe | ||
| automatically. See the ``pytest-run-parallel`` `README | ||
| <https://github.com/Quansight-Labs/pytest-run-parallel#caveats>`_ | ||
| for more information. |
Co-authored-by: Stefan van der Walt <[email protected]>
|
Thanks, @ngoldbaum! |
|
Reviews (6): Last reviewed commit: "Fix scikit-image case" | Re-trigger Greptile |
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
Thanks @stefanv for pointing these out in #8065. I should have deleted them, they're leftover from #7678 and are unnecessary. In 3.14t, the warnings module is thread-safe. In any case on 3.13t, pytest-run-parallel will automatically mark tests that use the `warnings` module as thread-unsafe. These marks predate that.
Description
Supercedes #7678.
Updates the test suite to be runnable under pytest-run-parallel.
Checklist
./doc/examplesfor new featuresRelease note
For maintainers and optionally contributors, please refer to the instructions on how to document this PR for the release notes.