Repository navigation
CI Uses marker to control network access in tests - #17553
thomasjpfan wants to merge 9 commits into
Conversation
|
Do we need to use a double negative? Isn't "network" better than "not skipnetwork" |
|
I would much prefer In the end, I still think I am hacking the marker interface to pass cli args, maybe it's time to use some of the suggestions in pytest-dev/pytest#1596 |
|
does this mean we should always use the |
We are doing it now. The only place we do not do it is |
|
yeah that's the one I found and I thought there must be more, but I guess not then. |
|
This is to remind us that this needs to also change checking for network support added in #17599 |
|
Yea I saw it getting merged. I need to rethink this PR a little bit. |
|
Closing for now, |
Reference Issues/PRs
Fixes #16750
What does this implement/fix? Explain your changes.
This fixes an issues issue when running nightly builds when running
fetch_*withpytest-xdist. The run tests that require network:SKLEARN_RUN_NETWORK_TESTSis only used by our CI to signal when to pass the-m 'not skipnetwork'topytest.Note this is kind of extending the use of markers to pass cli options, which is a slight hack.
Any other comments?
This combined with #16928 should fix the errors on the nightly build.
I have tried moving the
conftest.pyaround, but it wasn't too nice. (It would have been nice to get that working tho)CC: @rth @adrinjalali