-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
CI Uses marker to control network access in tests #17553
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
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_TESTS
is 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.py
around, but it wasn't too nice. (It would have been nice to get that working tho)CC: @rth @adrinjalali