last which worked: ``` tox -- -x -s GLOB sdist-make: /home/tony/work/inria/repo/swh/swh-environment/swh-storage/setup.py black installed: appdirs==1.4.4,attrs==20.3.0,black==19.10b0,click==7.1.2,pathspec==0.8.1,regex==2020.11.13,toml==0.10.2,typed-ast==1.4.2 black run-test-pre: PYTHONHASHSEED='683255488' black run-test: commands[0] | /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/black/bin/python -m black --check swh All done! ✨ 🍰 ✨ 81 files would be left unchanged. flake8 installed: flake8==3.8.4,importlib-metadata==3.4.0,mccabe==0.6.1,pycodestyle==2.6.0,pyflakes==2.2.0,typing-extensions==3.7.4.3,zipp==3.4.0 flake8 run-test-pre: PYTHONHASHSEED='683255488' flake8 run-test: commands[0] | /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/flake8/bin/python -m flake8 mypy inst-nodeps: /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/.tmp/package/1/swh.storage-0.22.1.dev7+g89cf1e51.zip mypy installed: aiohttp==3.7.3,aiohttp-utils==3.1.1,apipkg==1.5,async-timeout==3.0.1,attrs==20.3.0,attrs-strict==0.2.0,blinker==1.4,cassandra-driver==3.24.0,certifi==2020.12.5,chardet==3.0.4,click==7.1.2,confluent-kafka==1.5.0,decorator==4.4.2,Deprecated==1.2.11,execnet==1.8.0,Flask==1.1.2,geomet==0.2.1.post1,gunicorn==20.0.4,hypothesis==5.49.0,idna==2.10,importlib-metadata==3.4.0,iniconfig==1.1.1,iso8601==0.1.13,itsdangerous==1.1.0,Jinja2==2.11.3,MarkupSafe==1.1.1,mirakuru==2.3.0,msgpack==1.0.2,multidict==5.1.0,mypy==0.800,mypy-extensions==0.4.3,packaging==20.9,pluggy==0.13.1,port-for==0.4,psutil==5.8.0,psycopg2==2.8.6,py==1.10.0,pyparsing==2.4.7,pytest==6.2.2,pytest-forked==1.3.0,pytest-mock==3.5.1,pytest-postgresql==2.5.3,pytest-xdist==2.2.0,python-dateutil==2.8.1,python-mimeparse==1.6.0,pytz==2021.1,PyYAML==5.4.1,requests==2.25.1,sentry-sdk==0.19.5,six==1.15.0,sortedcontainers==2.3.0,sqlalchemy-stubs==0.4,swh.core==0.11.0,swh.journal==0.7.0,swh.model==0.12.0,swh.objstorage==0.2.2,swh.storage @ file:///home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/.tmp/package/1/swh.storage-0.22.1.dev7%2Bg89cf1e51.zip,tenacity==6.3.1,toml==0.10.2,typed-ast==1.4.2,typing-extensions==3.7.4.3,urllib3==1.26.3,Werkzeug==1.0.1,wrapt==1.12.1,yarl==1.6.3,zipp==3.4.0 mypy run-test-pre: PYTHONHASHSEED='683255488' mypy run-test: commands[0] | mypy swh Success: no issues found in 81 source files py3 inst-nodeps: /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/.tmp/package/1/swh.storage-0.22.1.dev7+g89cf1e51.zip py3 installed: aiohttp==3.7.3,aiohttp-utils==3.1.1,apipkg==1.5,async-timeout==3.0.1,attrs==20.3.0,attrs-strict==0.2.0,blinker==1.4,cassandra-driver==3.24.0,certifi==2020.12.5,chardet==3.0.4,click==7.1.2,confluent-kafka==1.5.0,coverage==5.4,decorator==4.4.2,Deprecated==1.2.11,execnet==1.8.0,Flask==1.1.2,geomet==0.2.1.post1,gunicorn==20.0.4,hypothesis==5.49.0,idna==2.10,importlib-metadata==3.4.0,iniconfig==1.1.1,iso8601==0.1.13,itsdangerous==1.1.0,Jinja2==2.11.3,MarkupSafe==1.1.1,mirakuru==2.3.0,msgpack==1.0.2,multidict==5.1.0,mypy==0.800,mypy-extensions==0.4.3,packaging==20.9,pluggy==0.13.1,port-for==0.4,psutil==5.8.0,psycopg2==2.8.6,py==1.10.0,pyparsing==2.4.7,pytest==6.2.2,pytest-cov==2.11.1,pytest-forked==1.3.0,pytest-mock==3.5.1,pytest-postgresql==2.5.3,pytest-xdist==2.2.0,python-dateutil==2.8.1,python-mimeparse==1.6.0,pytz==2021.1,PyYAML==5.4.1,requests==2.25.1,sentry-sdk==0.19.5,six==1.15.0,sortedcontainers==2.3.0,sqlalchemy-stubs==0.4,swh.core==0.11.0,swh.journal==0.7.0,swh.model==0.12.0,swh.objstorage==0.2.2,swh.storage @ file:///home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/.tmp/package/1/swh.storage-0.22.1.dev7%2Bg89cf1e51.zip,tenacity==6.3.1,toml==0.10.2,typed-ast==1.4.2,typing-extensions==3.7.4.3,urllib3==1.26.3,Werkzeug==1.0.1,wrapt==1.12.1,yarl==1.6.3,zipp==3.4.0 py3 run-test-pre: PYTHONHASHSEED='683255488' py3 run-test: commands[0] | pytest --hypothesis-profile=fast --cov=/home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/swh/storage /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/swh/storage --doctest-modules --cov-branch -x -s ============================================================================================================= test session starts ============================================================================================================= platform linux -- Python 3.7.3, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 cachedir: .tox/py3/.pytest_cache rootdir: /home/tony/work/inria/repo/swh/swh-environment/swh-storage, configfile: pytest.ini plugins: xdist-2.2.0, swh.journal-0.7.0, mock-3.5.1, forked-1.3.0, postgresql-2.5.3, hypothesis-5.49.0, cov-2.11.1, swh.core-0.11.0 collected 770 items .tox/py3/lib/python3.7/site-packages/swh/storage/fixer.py .... .tox/py3/lib/python3.7/site-packages/swh/storage/utils.py . .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_api_client.py create_plpgsql_language ---------------------------- language already installed (1 row) .................................................................................................................................sss........ssss .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_backfill.py ......%5|1612531660.352|MOCK|rdkafka#producer-1| [thrd:app]: Mock cluster enabled: original bootstrap.servers and security.protocol ignored and replaced . .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_buffer.py ....................... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cassandra.py .....................................................................................................................................ssss........ssss .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cassandra_converters.py . .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cli.py . .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_exception.py . .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_filter.py ..... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_in_memory.py ...................................................................................................................................sss........ssss .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_init.py ...................... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_kafka_writer.py ... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_metrics.py .... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_postgresql.py ................................................................................................................................................x.......... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_postgresql_converters.py ..... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_pytest_plugin.py ... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_replay.py ..... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_retry.py ....... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_revision_bw_compat.py . .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_serializers.py .. .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_server.py ...... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage_data.py . .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_utils.py .... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_validate.py ...... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_diff.py ...... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_dir_iterator.py ... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_origin.py ....... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_revisions_walker.py ..... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_snapshot.py ............ .tox/py3/lib/python3.7/site-packages/swh/storage/tests/migrate_extrinsic_metadata/test_cran.py .... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/migrate_extrinsic_metadata/test_debian.py ..... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/migrate_extrinsic_metadata/test_deposit.py .......... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/migrate_extrinsic_metadata/test_gnu.py . .tox/py3/lib/python3.7/site-packages/swh/storage/tests/migrate_extrinsic_metadata/test_nixguix.py . .tox/py3/lib/python3.7/site-packages/swh/storage/tests/migrate_extrinsic_metadata/test_npm.py .... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/migrate_extrinsic_metadata/test_pypi.py ...... ============================================================================================================== warnings summary =============================================================================================================== .tox/py3/lib/python3.7/site-packages/swh/journal/tests/journal_data.py:14 /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/swh/journal/tests/journal_data.py:14: DeprecationWarning: This module is deprecated, please use swh.model.tests.swh_model_data instead category=DeprecationWarning, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_api_client.py::TestStorageApi::test_content_missing /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_api_client.py::TestStorageApi::test_content_missing uses the 'swh_storage' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_api_client.py::TestStorageApi::test_content_missing /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_api_client.py::TestStorageApi::test_content_missing uses the 'sample_data' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_api_client.py::TestStorageApi::test_content_missing_unknown_algo /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_api_client.py::TestStorageApi::test_content_missing_unknown_algo uses the 'swh_storage' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_api_client.py::TestStorageApi::test_content_missing_unknown_algo /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_api_client.py::TestStorageApi::test_content_missing_unknown_algo uses the 'sample_data' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_api_client.py::TestStorageApiGeneratedData::test_add_arbitrary /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_api_client.py::TestStorageApiGeneratedData::test_add_arbitrary uses the 'swh_storage' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cassandra.py::TestCassandraStorage::test_content_missing /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cassandra.py::TestCassandraStorage::test_content_missing uses the 'swh_storage' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cassandra.py::TestCassandraStorage::test_content_missing /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cassandra.py::TestCassandraStorage::test_content_missing uses the 'sample_data' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cassandra.py::TestCassandraStorage::test_content_missing_unknown_algo /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cassandra.py::TestCassandraStorage::test_content_missing_unknown_algo uses the 'swh_storage' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cassandra.py::TestCassandraStorage::test_content_missing_unknown_algo /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cassandra.py::TestCassandraStorage::test_content_missing_unknown_algo uses the 'sample_data' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cassandra.py::TestCassandraStorageGeneratedData::test_add_arbitrary /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cassandra.py::TestCassandraStorageGeneratedData::test_add_arbitrary uses the 'swh_storage' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_in_memory.py::TestInMemoryStorage::test_content_missing /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_in_memory.py::TestInMemoryStorage::test_content_missing uses the 'swh_storage' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_in_memory.py::TestInMemoryStorage::test_content_missing /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_in_memory.py::TestInMemoryStorage::test_content_missing uses the 'sample_data' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_in_memory.py::TestInMemoryStorage::test_content_missing_unknown_algo /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_in_memory.py::TestInMemoryStorage::test_content_missing_unknown_algo uses the 'swh_storage' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_in_memory.py::TestInMemoryStorage::test_content_missing_unknown_algo /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_in_memory.py::TestInMemoryStorage::test_content_missing_unknown_algo uses the 'sample_data' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_in_memory.py::TestInMemoryStorageGeneratedData::test_add_arbitrary /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_in_memory.py::TestInMemoryStorageGeneratedData::test_add_arbitrary uses the 'swh_storage' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_postgresql.py::TestStorage::test_content_missing /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_postgresql.py::TestStorage::test_content_missing uses the 'swh_storage' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_postgresql.py::TestStorage::test_content_missing /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_postgresql.py::TestStorage::test_content_missing uses the 'sample_data' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_postgresql.py::TestStorage::test_content_missing_unknown_algo /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_postgresql.py::TestStorage::test_content_missing_unknown_algo uses the 'swh_storage' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_postgresql.py::TestStorage::test_content_missing_unknown_algo /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_postgresql.py::TestStorage::test_content_missing_unknown_algo uses the 'sample_data' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_postgresql.py::TestStorageGeneratedData::test_add_arbitrary /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_postgresql.py::TestStorageGeneratedData::test_add_arbitrary uses the 'swh_storage' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_snapshot.py::test_snapshot_small /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_snapshot.py::test_snapshot_small uses the 'swh_storage' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, .tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_snapshot.py::test_snapshot_large /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/hypothesis/extra/pytestplugin.py:187: HypothesisDeprecationWarning: .tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_snapshot.py::test_snapshot_large uses the 'swh_storage' fixture, which is reset between function calls but not between test cases generated by `@given(...)`. You can change it to a module- or session-scoped fixture if it is safe to reuse; if not we recommend using a context manager inside your test function. See https://docs.pytest.org/en/latest/fixture.html#sharing-test-data for details on fixture scope. has_codemod=False, -- Docs: https://docs.pytest.org/en/stable/warnings.html ----------- coverage: platform linux, python 3.7.3-final-0 ----------- Name Stmts Miss Branch BrPart Cover ------------------------------------------------------------------------------------------------------------------------------------- .tox/py3/lib/python3.7/site-packages/swh/storage/__init__.py 37 2 20 2 93% .tox/py3/lib/python3.7/site-packages/swh/storage/algos/__init__.py 0 0 0 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/algos/diff.py 135 19 60 13 83% .tox/py3/lib/python3.7/site-packages/swh/storage/algos/dir_iterators.py 130 2 26 1 98% .tox/py3/lib/python3.7/site-packages/swh/storage/algos/origin.py 19 0 4 1 96% .tox/py3/lib/python3.7/site-packages/swh/storage/algos/revisions_walker.py 162 50 72 5 62% .tox/py3/lib/python3.7/site-packages/swh/storage/algos/snapshot.py 69 2 38 2 96% .tox/py3/lib/python3.7/site-packages/swh/storage/api/__init__.py 0 0 0 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/api/client.py 28 2 4 1 91% .tox/py3/lib/python3.7/site-packages/swh/storage/api/serializers.py 17 0 2 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/api/server.py 54 3 12 2 92% .tox/py3/lib/python3.7/site-packages/swh/storage/backfill.py 171 40 72 8 72% .tox/py3/lib/python3.7/site-packages/swh/storage/buffer.py 64 1 30 2 97% .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/__init__.py 3 0 0 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/common.py 8 0 2 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/converters.py 47 3 8 3 89% .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/cql.py 337 5 58 5 97% .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/model.py 190 0 38 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/schema.py 8 0 4 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py 614 19 344 19 96% .tox/py3/lib/python3.7/site-packages/swh/storage/cli.py 100 38 28 10 56% .tox/py3/lib/python3.7/site-packages/swh/storage/common.py 3 0 0 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/exc.py 20 3 4 0 88% .tox/py3/lib/python3.7/site-packages/swh/storage/filter.py 44 2 24 2 94% .tox/py3/lib/python3.7/site-packages/swh/storage/fixer.py 69 1 44 1 98% .tox/py3/lib/python3.7/site-packages/swh/storage/in_memory.py 301 3 110 4 98% .tox/py3/lib/python3.7/site-packages/swh/storage/interface.py 205 60 2 0 71% .tox/py3/lib/python3.7/site-packages/swh/storage/metrics.py 33 0 8 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/migrate_extrinsic_metadata.py 511 77 266 28 84% .tox/py3/lib/python3.7/site-packages/swh/storage/objstorage.py 26 2 6 0 94% .tox/py3/lib/python3.7/site-packages/swh/storage/postgresql/__init__.py 0 0 0 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/postgresql/converters.py 79 1 34 3 96% .tox/py3/lib/python3.7/site-packages/swh/storage/postgresql/db.py 454 12 125 6 96% .tox/py3/lib/python3.7/site-packages/swh/storage/postgresql/storage.py 712 35 272 19 94% .tox/py3/lib/python3.7/site-packages/swh/storage/pytest_plugin.py 16 0 0 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/replay.py 67 1 30 1 98% .tox/py3/lib/python3.7/site-packages/swh/storage/retry.py 39 3 14 2 91% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/__init__.py 3 0 0 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/__init__.py 0 0 0 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_diff.py 109 0 4 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_dir_iterator.py 80 1 26 1 98% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_origin.py 137 0 4 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_revisions_walker.py 38 0 10 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_snapshot.py 150 0 4 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/conftest.py 33 3 14 3 87% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/migrate_extrinsic_metadata/test_cran.py 53 0 2 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/migrate_extrinsic_metadata/test_debian.py 95 0 2 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/migrate_extrinsic_metadata/test_deposit.py 171 0 2 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/migrate_extrinsic_metadata/test_gnu.py 23 0 0 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/migrate_extrinsic_metadata/test_nixguix.py 25 0 0 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/migrate_extrinsic_metadata/test_npm.py 57 0 2 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/migrate_extrinsic_metadata/test_pypi.py 103 0 2 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_data.py 60 0 0 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py 1805 10 224 2 99% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_api_client.py 38 7 0 0 82% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_backfill.py 68 0 8 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_buffer.py 328 2 30 0 99% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cassandra.py 169 19 36 6 86% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cassandra_converters.py 12 0 4 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cli.py 49 3 6 1 85% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_exception.py 12 0 0 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_filter.py 60 0 4 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_in_memory.py 72 7 4 0 91% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_init.py 84 0 10 1 99% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_kafka_writer.py 55 1 28 1 98% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_metrics.py 20 0 0 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_postgresql.py 119 0 14 2 98% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_postgresql_converters.py 21 0 0 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_pytest_plugin.py 8 0 0 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_replay.py 161 3 54 2 97% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_retry.py 78 1 6 1 95% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_revision_bw_compat.py 20 0 2 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_serializers.py 17 0 0 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_server.py 46 0 2 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage_data.py 7 0 4 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_utils.py 26 0 8 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_validate.py 69 0 0 0 100% .tox/py3/lib/python3.7/site-packages/swh/storage/utils.py 38 2 12 2 92% .tox/py3/lib/python3.7/site-packages/swh/storage/validate.py 36 1 10 1 96% .tox/py3/lib/python3.7/site-packages/swh/storage/writer.py 55 6 14 2 86% ------------------------------------------------------------------------------------------------------------------------------------- TOTAL 9382 452 2313 165 94% ===================================================================================== 747 passed, 22 skipped, 1 xfailed, 23 warnings in 391.26s (0:06:31) ===================================================================================== ___________________________________________________________________________________________________________________ summary ___________________________________________________________________________________________________________________ black: commands succeeded flake8: commands succeeded mypy: commands succeeded py3: commands succeeded congratulations :) ``` now, recent tox -r is stuck (same as jenkins [1]): ``` tox -r -- -x -s GLOB sdist-make: /home/tony/work/inria/repo/swh/swh-environment/swh-storage/setup.py black recreate: /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/black black installdeps: black==19.10b0 black installed: appdirs==1.4.4,attrs==20.3.0,black==19.10b0,click==7.1.2,pathspec==0.8.1,regex==2020.11.13,toml==0.10.2,typed-ast==1.4.2 black run-test-pre: PYTHONHASHSEED='55685733' black run-test: commands[0] | /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/black/bin/python -m black --check swh All done! ✨ 🍰 ✨ 81 files would be left unchanged. flake8 recreate: /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/flake8 flake8 installdeps: flake8 flake8 installed: flake8==3.8.4,importlib-metadata==3.4.0,mccabe==0.6.1,pycodestyle==2.6.0,pyflakes==2.2.0,typing-extensions==3.7.4.3,zipp==3.4.0 flake8 run-test-pre: PYTHONHASHSEED='55685733' flake8 run-test: commands[0] | /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/flake8/bin/python -m flake8 mypy recreate: /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/mypy mypy installdeps: mypy mypy inst: /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/.tmp/package/1/swh.storage-0.22.1.dev7+g89cf1e51.zip mypy installed: aiohttp==3.7.3,aiohttp-utils==3.1.1,apipkg==1.5,async-timeout==3.0.1,attrs==20.3.0,attrs-strict==0.2.0,blinker==1.4,cassandra-driver==3.24.0,certifi==2020.12.5,chardet==3.0.4,click==7.1.2,confluent-kafka==1.6.0,decorator==4.4.2,Deprecated==1.2.11,execnet==1.8.0,Flask==1.1.2,geomet==0.2.1.post1,gunicorn==20.0.4,hypothesis==5.49.0,idna==3.1,importlib-metadata==3.4.0,iniconfig==1.1.1,iso8601==0.1.13,itsdangerous==1.1.0,Jinja2==2.11.3,MarkupSafe==1.1.1,mirakuru==2.3.0,msgpack==1.0.2,multidict==5.1.0,mypy==0.800,mypy-extensions==0.4.3,packaging==20.9,pluggy==0.13.1,port-for==0.4,psutil==5.8.0,psycopg2==2.8.6,py==1.10.0,pyparsing==2.4.7,pytest==6.2.2,pytest-forked==1.3.0,pytest-mock==3.5.1,pytest-postgresql==2.5.3,pytest-xdist==2.2.0,python-dateutil==2.8.1,python-mimeparse==1.6.0,pytz==2021.1,PyYAML==5.4.1,requests==2.25.1,sentry-sdk==0.19.5,six==1.15.0,sortedcontainers==2.3.0,sqlalchemy-stubs==0.4,swh.core==0.11.0,swh.journal==0.7.0,swh.model==0.12.0,swh.objstorage==0.2.2,swh.storage @ file:///home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/.tmp/package/1/swh.storage-0.22.1.dev7%2Bg89cf1e51.zip,tenacity==6.3.1,toml==0.10.2,typed-ast==1.4.2,typing-extensions==3.7.4.3,urllib3==1.26.3,Werkzeug==1.0.1,wrapt==1.12.1,yarl==1.6.3,zipp==3.4.0 mypy run-test-pre: PYTHONHASHSEED='55685733' mypy run-test: commands[0] | mypy swh Success: no issues found in 81 source files py3 recreate: /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3 py3 installdeps: pytest-cov py3 inst: /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/.tmp/package/1/swh.storage-0.22.1.dev7+g89cf1e51.zip py3 installed: aiohttp==3.7.3,aiohttp-utils==3.1.1,apipkg==1.5,async-timeout==3.0.1,attrs==20.3.0,attrs-strict==0.2.0,blinker==1.4,cassandra-driver==3.24.0,certifi==2020.12.5,chardet==3.0.4,click==7.1.2,confluent-kafka==1.6.0,coverage==5.4,decorator==4.4.2,Deprecated==1.2.11,execnet==1.8.0,Flask==1.1.2,geomet==0.2.1.post1,gunicorn==20.0.4,hypothesis==5.49.0,idna==3.1,importlib-metadata==3.4.0,iniconfig==1.1.1,iso8601==0.1.13,itsdangerous==1.1.0,Jinja2==2.11.3,MarkupSafe==1.1.1,mirakuru==2.3.0,msgpack==1.0.2,multidict==5.1.0,mypy==0.800,mypy-extensions==0.4.3,packaging==20.9,pluggy==0.13.1,port-for==0.4,psutil==5.8.0,psycopg2==2.8.6,py==1.10.0,pyparsing==2.4.7,pytest==6.2.2,pytest-cov==2.11.1,pytest-forked==1.3.0,pytest-mock==3.5.1,pytest-postgresql==2.5.3,pytest-xdist==2.2.0,python-dateutil==2.8.1,python-mimeparse==1.6.0,pytz==2021.1,PyYAML==5.4.1,requests==2.25.1,sentry-sdk==0.19.5,six==1.15.0,sortedcontainers==2.3.0,sqlalchemy-stubs==0.4,swh.core==0.11.0,swh.journal==0.7.0,swh.model==0.12.0,swh.objstorage==0.2.2,swh.storage @ file:///home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/.tmp/package/1/swh.storage-0.22.1.dev7%2Bg89cf1e51.zip,tenacity==6.3.1,toml==0.10.2,typed-ast==1.4.2,typing-extensions==3.7.4.3,urllib3==1.26.3,Werkzeug==1.0.1,wrapt==1.12.1,yarl==1.6.3,zipp==3.4.0 py3 run-test-pre: PYTHONHASHSEED='55685733' py3 run-test: commands[0] | pytest --hypothesis-profile=fast --cov=/home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/swh/storage /home/tony/work/inria/repo/swh/swh-environment/swh-storage/.tox/py3/lib/python3.7/site-packages/swh/storage --doctest-modules --cov-branch -x -s ============================================================================================================= test session starts ============================================================================================================= platform linux -- Python 3.7.3, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 cachedir: .tox/py3/.pytest_cache rootdir: /home/tony/work/inria/repo/swh/swh-environment/swh-storage, configfile: pytest.ini plugins: xdist-2.2.0, swh.journal-0.7.0, mock-3.5.1, forked-1.3.0, postgresql-2.5.3, hypothesis-5.49.0, cov-2.11.1, swh.core-0.11.0 collected 770 items .tox/py3/lib/python3.7/site-packages/swh/storage/fixer.py .... .tox/py3/lib/python3.7/site-packages/swh/storage/utils.py . .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_api_client.py create_plpgsql_language ---------------------------- language already installed (1 row) .................................................................................................................................sss........ssss .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_backfill.py ......%5|1612532109.659|MOCK|rdkafka#producer-1| [thrd:app]: Mock cluster enabled: original bootstrap.servers and security.protocol ignored and replaced . .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_buffer.py ....................... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cassandra.py .....................................................................................................................................ssss........ssss .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cassandra_converters.py . .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cli.py . .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_exception.py . .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_filter.py ..... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_in_memory.py ...................................................................................................................................sss........ssss .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_init.py ...................... .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_kafka_writer.py ..^CERROR: got KeyboardInterrupt signal ___________________________________________________________________________________________________________________ summary ___________________________________________________________________________________________________________________ black: commands succeeded flake8: commands succeeded mypy: commands succeeded ERROR: py3: keyboardinterrupt ``` [1] https://jenkins.softwareheritage.org/view/swh-draft/job/DSTO/job/tests/1912/console