Skip to content
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

Too many DeprecationWarning in CI logs #3024

Closed
fyrestone opened this issue May 11, 2022 · 0 comments · Fixed by #3025
Closed

Too many DeprecationWarning in CI logs #3024

fyrestone opened this issue May 11, 2022 · 0 comments · Fixed by #3025
Assignees

Comments

@fyrestone
Copy link
Contributor

../../../miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230
  /home/runner/miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230: DeprecationWarning: '@pytest.fixture' is applied to <fixture actor_pool, file=/home/runner/work/mars/mars/mars/services/scheduling/supervisor/tests/test_assigner.py, line=103> in 'legacy' mode, please replace it with '@pytest_asyncio.fixture' as a preparation for switching to 'strict' mode (or use 'auto' mode to seamlessly handle all these fixtures as asyncio-driven).
    warnings.warn(

../../../miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230
  /home/runner/miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230: DeprecationWarning: '@pytest.fixture' is applied to <fixture actor_pool, file=/home/runner/work/mars/mars/mars/services/scheduling/supervisor/tests/test_globalresource.py, line=26> in 'legacy' mode, please replace it with '@pytest_asyncio.fixture' as a preparation for switching to 'strict' mode (or use 'auto' mode to seamlessly handle all these fixtures as asyncio-driven).
    warnings.warn(

../../../miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230
  /home/runner/miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230: DeprecationWarning: '@pytest.fixture' is applied to <fixture actor_pool, file=/home/runner/work/mars/mars/mars/services/scheduling/supervisor/tests/test_manager.py, line=101> in 'legacy' mode, please replace it with '@pytest_asyncio.fixture' as a preparation for switching to 'strict' mode (or use 'auto' mode to seamlessly handle all these fixtures as asyncio-driven).
    warnings.warn(

../../../miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230
  /home/runner/miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230: DeprecationWarning: '@pytest.fixture' is applied to <fixture actor_pool, file=/home/runner/work/mars/mars/mars/services/scheduling/supervisor/tests/test_queue_balance.py, line=150> in 'legacy' mode, please replace it with '@pytest_asyncio.fixture' as a preparation for switching to 'strict' mode (or use 'auto' mode to seamlessly handle all these fixtures as asyncio-driven).
    warnings.warn(

../../../miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230
  /home/runner/miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230: DeprecationWarning: '@pytest.fixture' is applied to <fixture actor_pool, file=/home/runner/work/mars/mars/mars/services/scheduling/supervisor/tests/test_queueing.py, line=73> in 'legacy' mode, please replace it with '@pytest_asyncio.fixture' as a preparation for switching to 'strict' mode (or use 'auto' mode to seamlessly handle all these fixtures as asyncio-driven).
    warnings.warn(

../../../miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230
  /home/runner/miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230: DeprecationWarning: '@pytest.fixture' is applied to <fixture actor_pool, file=/home/runner/work/mars/mars/mars/services/scheduling/supervisor/tests/test_speculation.py, line=57> in 'legacy' mode, please replace it with '@pytest_asyncio.fixture' as a preparation for switching to 'strict' mode (or use 'auto' mode to seamlessly handle all these fixtures as asyncio-driven).
    warnings.warn(

../../../miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230
  /home/runner/miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230: DeprecationWarning: '@pytest.fixture' is applied to <fixture actor_pools, file=/home/runner/work/mars/mars/mars/services/scheduling/tests/test_service.py, line=92> in 'legacy' mode, please replace it with '@pytest_asyncio.fixture' as a preparation for switching to 'strict' mode (or use 'auto' mode to seamlessly handle all these fixtures as asyncio-driven).
    warnings.warn(

../../../miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230
  /home/runner/miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230: DeprecationWarning: '@pytest.fixture' is applied to <fixture actor_pool, file=/home/runner/work/mars/mars/mars/services/scheduling/worker/tests/test_execution.py, line=148> in 'legacy' mode, please replace it with '@pytest_asyncio.fixture' as a preparation for switching to 'strict' mode (or use 'auto' mode to seamlessly handle all these fixtures as asyncio-driven).
    warnings.warn(

../../../miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230
  /home/runner/miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230: DeprecationWarning: '@pytest.fixture' is applied to <fixture actor_pool, file=/home/runner/work/mars/mars/mars/services/scheduling/worker/tests/test_quota.py, line=39> in 'legacy' mode, please replace it with '@pytest_asyncio.fixture' as a preparation for switching to 'strict' mode (or use 'auto' mode to seamlessly handle all these fixtures as asyncio-driven).
    warnings.warn(

../../../miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230
  /home/runner/miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230: DeprecationWarning: '@pytest.fixture' is applied to <fixture actor_pool, file=/home/runner/work/mars/mars/mars/services/scheduling/worker/tests/test_workerslot.py, line=50> in 'legacy' mode, please replace it with '@pytest_asyncio.fixture' as a preparation for switching to 'strict' mode (or use 'auto' mode to seamlessly handle all these fixtures as asyncio-driven).
    warnings.warn(

../../../miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230
  /home/runner/miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230: DeprecationWarning: '@pytest.fixture' is applied to <fixture actor_pools, file=/home/runner/work/mars/mars/mars/services/storage/tests/test_service.py, line=34> in 'legacy' mode, please replace it with '@pytest_asyncio.fixture' as a preparation for switching to 'strict' mode (or use 'auto' mode to seamlessly handle all these fixtures as asyncio-driven).
    warnings.warn(

../../../miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230
  /home/runner/miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230: DeprecationWarning: '@pytest.fixture' is applied to <fixture actor_pools_with_gpu, file=/home/runner/work/mars/mars/mars/services/storage/tests/test_service.py, line=123> in 'legacy' mode, please replace it with '@pytest_asyncio.fixture' as a preparation for switching to 'strict' mode (or use 'auto' mode to seamlessly handle all these fixtures as asyncio-driven).
    warnings.warn(

../../../miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230
  /home/runner/miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230: DeprecationWarning: '@pytest.fixture' is applied to <fixture actor_pool, file=/home/runner/work/mars/mars/mars/services/storage/tests/test_spill.py, line=37> in 'legacy' mode, please replace it with '@pytest_asyncio.fixture' as a preparation for switching to 'strict' mode (or use 'auto' mode to seamlessly handle all these fixtures as asyncio-driven).
    warnings.warn(

../../../miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230
  /home/runner/miniconda/envs/test/lib/python3.8/site-packages/pytest_asyncio/plugin.py:230: DeprecationWarning: '@pytest.fixture' is applied to <fixture create_actors, file=/home/runner/work/mars/mars/mars/services/storage/tests/test_spill.py, line=74> in 'legacy' mode, please replace it with '@pytest_asyncio.fixture' as a preparation for switching to 'strict' mode (or use 'auto' mode to seamlessly handle all these fixtures as asyncio-driven).
    warnings.warn(

We should use @pytest_asyncio.fixture instead of @pytest.fixture for async fixtures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant