Page MenuHomeSoftware Heritage
Paste P782

Tox fail in swh-scanner
ActivePublic

Authored by tenma on Sep 25 2020, 1:59 PM.
(swh) tenma@swh-ng1:~/Dev/swh-env/swh-scanner$ tox
GLOB sdist-make: /home/tenma/Dev/swh-env/swh-scanner/setup.py
black create: /home/tenma/Dev/swh-env/swh-scanner/.tox/black
black installdeps: black
black installed: appdirs==1.4.4,black==20.8b1,click==7.1.2,mypy-extensions==0.4.3,pathspec==0.8.0,regex==2020.7.14,toml==0.10.1,typed-ast==1.4.1,typing-extensions==3.7.4.3
black run-test-pre: PYTHONHASHSEED='4116300895'
black run-test: commands[0] | /home/tenma/Dev/swh-env/swh-scanner/.tox/black/bin/python -m black --check swh
would reformat /home/tenma/Dev/swh-env/swh-scanner/swh/scanner/dashboard/dashboard.py
would reformat /home/tenma/Dev/swh-env/swh-scanner/swh/scanner/tests/conftest.py
would reformat /home/tenma/Dev/swh-env/swh-scanner/swh/scanner/scanner.py
would reformat /home/tenma/Dev/swh-env/swh-scanner/swh/scanner/plot.py
would reformat /home/tenma/Dev/swh-env/swh-scanner/swh/scanner/model.py
Oh no! ๐Ÿ’ฅ ๐Ÿ’” ๐Ÿ’ฅ
5 files would be reformatted, 12 files would be left unchanged.
ERROR: InvocationError for command /home/tenma/Dev/swh-env/swh-scanner/.tox/black/bin/python -m black --check swh (exited with code 1)
flake8 create: /home/tenma/Dev/swh-env/swh-scanner/.tox/flake8
flake8 installdeps: flake8
flake8 installed: flake8==3.8.3,importlib-metadata==2.0.0,mccabe==0.6.1,pycodestyle==2.6.0,pyflakes==2.2.0,zipp==3.2.0
flake8 run-test-pre: PYTHONHASHSEED='4116300895'
flake8 run-test: commands[0] | /home/tenma/Dev/swh-env/swh-scanner/.tox/flake8/bin/python -m flake8
mypy create: /home/tenma/Dev/swh-env/swh-scanner/.tox/mypy
mypy installdeps: mypy
mypy inst: /home/tenma/Dev/swh-env/swh-scanner/.tox/.tmp/package/1/swh.scanner-0.1.2.dev23+gf10d3d8.d20200925.zip
mypy installed: aiohttp==3.6.2,aioresponses==0.6.4,amqp==5.0.1,apipkg==1.5,arrow==0.16.0,async-timeout==3.0.1,attrs==20.2.0,attrs-strict==0.2.0,beautifulsoup4==4.9.1,billiard==3.6.3.0,Brotli==1.0.9,cachetools==4.1.1,cassandra-driver==3.24.0,celery==5.0.0,certifi==2020.6.20,cffi==1.14.3,chardet==3.0.4,click==7.1.2,click-didyoumean==0.0.3,click-repl==0.1.6,confluent-kafka==1.5.0,cryptography==3.1.1,dash==1.16.1,dash-bootstrap-components==0.10.6,dash-core-components==1.12.1,dash-html-components==1.1.1,dash-renderer==1.8.1,dash-table==4.10.1,decorator==4.4.2,Deprecated==1.2.10,Django==2.2.16,django-cors-headers==3.5.0,django-js-reverse==0.9.1,django-stubs==1.5.0,django-webpack-loader==0.7.0,djangorestframework==3.11.1,djangorestframework-stubs==1.2.0,docutils==0.16,dulwich==0.20.6,ecdsa==0.14.1,elasticsearch==7.9.1,execnet==1.7.1,fastimport==0.9.8,Flask==1.1.2,Flask-Compress==1.5.0,frozendict==1.2,future==0.18.2,geomet==0.2.1.post1,htmlmin==0.1.12,hypothesis==5.36.0,idna==2.10,importlib-metadata==2.0.0,iniconfig==1.0.1,iso8601==0.1.13,itsdangerous==1.1.0,Jinja2==2.11.2,kombu==5.0.2,lxml==4.5.2,MarkupSafe==1.1.1,mirakuru==2.3.0,more-itertools==8.5.0,msgpack==1.0.0,multidict==4.7.6,mypy==0.782,mypy-extensions==0.4.3,ndjson==0.3.1,numpy==1.19.2,packaging==20.4,pandas==1.1.2,pika==1.1.0,pkginfo==1.5.0.1,plotly==4.10.0,pluggy==0.13.1,port-for==0.4,prometheus-client==0.8.0,prompt-toolkit==3.0.7,psutil==5.7.2,psycopg2==2.8.6,py==1.9.0,pyasn1==0.4.8,pybadges==2.2.1,pycparser==2.20,Pygments==2.7.1,PyLD==2.0.3,pyparsing==2.4.7,pytest==6.0.2,pytest-asyncio==0.14.0,pytest-django==3.10.0,pytest-flask==1.0.0,pytest-forked==1.3.0,pytest-mock==3.3.1,pytest-postgresql==2.5.0,pytest-xdist==2.1.0,python-dateutil==2.8.1,python-debian==0.1.37,python-jose==3.2.0,python-keycloak==0.22.0,python-magic==0.4.18,python-memcached==1.59,pytz==2020.1,PyYAML==5.3.1,requests==2.24.0,requests-mock==1.8.0,retrying==1.3.3,rsa==4.6,sentry-sdk==0.17.8,six==1.15.0,sortedcontainers==2.2.2,soupsieve==2.0.1,sqlalchemy-stubs==0.3,sqlparse==0.3.1,swh.core==0.3.0,swh.indexer==0.2.4,swh.journal==0.4.3,swh.loader.core==0.11.0,swh.loader.git==0.3.6,swh.model==0.6.6,swh.objstorage==0.2.1,swh.scanner @ file:///home/tenma/Dev/swh-env/swh-scanner/.tox/.tmp/package/1/swh.scanner-0.1.2.dev23%2Bgf10d3d8.d20200925.zip,swh.scheduler==0.6.0,swh.search==0.2.3,swh.storage==0.15.3,swh.vault==0.1.0,swh.web==0.0.260,tenacity==6.2.0,toml==0.10.1,typed-ast==1.4.1,typing-extensions==3.7.4.3,urllib3==1.25.10,vcversioner==2.16.0.0,vine==5.0.0,wcwidth==0.2.5,Werkzeug==1.0.1,wrapt==1.12.1,xmltodict==0.12.0,yarl==1.6.0,zipp==3.2.0
mypy run-test-pre: PYTHONHASHSEED='4116300895'
mypy run-test: commands[0] | mypy swh
.tox/mypy/lib/python3.7/site-packages/swh/objstorage/backends/libcloud.py:12: error: Cannot find implementation or library stub for module named 'libcloud.storage'
.tox/mypy/lib/python3.7/site-packages/swh/objstorage/backends/libcloud.py:12: error: Cannot find implementation or library stub for module named 'libcloud.storage.providers'
.tox/mypy/lib/python3.7/site-packages/swh/objstorage/backends/libcloud.py:13: error: Cannot find implementation or library stub for module named 'libcloud.storage.drivers.s3'
.tox/mypy/lib/python3.7/site-packages/swh/objstorage/backends/libcloud.py:13: error: Cannot find implementation or library stub for module named 'libcloud'
.tox/mypy/lib/python3.7/site-packages/swh/objstorage/backends/libcloud.py:13: error: Cannot find implementation or library stub for module named 'libcloud.storage.drivers'
.tox/mypy/lib/python3.7/site-packages/swh/objstorage/backends/libcloud.py:14: error: Cannot find implementation or library stub for module named 'libcloud.storage.types'
.tox/mypy/lib/python3.7/site-packages/swh/objstorage/backends/azure.py:12: error: Cannot find implementation or library stub for module named 'azure.core.exceptions'
.tox/mypy/lib/python3.7/site-packages/swh/objstorage/backends/azure.py:12: note: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
Found 7 errors in 2 files (checked 17 source files)
ERROR: InvocationError for command /home/tenma/Dev/swh-env/swh-scanner/.tox/mypy/bin/mypy swh (exited with code 1)
py3 create: /home/tenma/Dev/swh-env/swh-scanner/.tox/py3
py3 installdeps: pytest-cov
py3 inst: /home/tenma/Dev/swh-env/swh-scanner/.tox/.tmp/package/1/swh.scanner-0.1.2.dev23+gf10d3d8.d20200925.zip
py3 installed: aiohttp==3.6.2,aioresponses==0.6.4,amqp==5.0.1,apipkg==1.5,arrow==0.16.0,async-timeout==3.0.1,attrs==20.2.0,attrs-strict==0.2.0,beautifulsoup4==4.9.1,billiard==3.6.3.0,Brotli==1.0.9,cachetools==4.1.1,cassandra-driver==3.24.0,celery==5.0.0,certifi==2020.6.20,cffi==1.14.3,chardet==3.0.4,click==7.1.2,click-didyoumean==0.0.3,click-repl==0.1.6,confluent-kafka==1.5.0,coverage==5.3,cryptography==3.1.1,dash==1.16.1,dash-bootstrap-components==0.10.6,dash-core-components==1.12.1,dash-html-components==1.1.1,dash-renderer==1.8.1,dash-table==4.10.1,decorator==4.4.2,Deprecated==1.2.10,Django==2.2.16,django-cors-headers==3.5.0,django-js-reverse==0.9.1,django-stubs==1.5.0,django-webpack-loader==0.7.0,djangorestframework==3.11.1,djangorestframework-stubs==1.2.0,docutils==0.16,dulwich==0.20.6,ecdsa==0.14.1,elasticsearch==7.9.1,execnet==1.7.1,fastimport==0.9.8,Flask==1.1.2,Flask-Compress==1.5.0,frozendict==1.2,future==0.18.2,geomet==0.2.1.post1,htmlmin==0.1.12,hypothesis==5.36.0,idna==2.10,importlib-metadata==2.0.0,iniconfig==1.0.1,iso8601==0.1.13,itsdangerous==1.1.0,Jinja2==2.11.2,kombu==5.0.2,lxml==4.5.2,MarkupSafe==1.1.1,mirakuru==2.3.0,more-itertools==8.5.0,msgpack==1.0.0,multidict==4.7.6,mypy==0.782,mypy-extensions==0.4.3,ndjson==0.3.1,numpy==1.19.2,packaging==20.4,pandas==1.1.2,pika==1.1.0,pkginfo==1.5.0.1,plotly==4.10.0,pluggy==0.13.1,port-for==0.4,prometheus-client==0.8.0,prompt-toolkit==3.0.7,psutil==5.7.2,psycopg2==2.8.6,py==1.9.0,pyasn1==0.4.8,pybadges==2.2.1,pycparser==2.20,Pygments==2.7.1,PyLD==2.0.3,pyparsing==2.4.7,pytest==6.0.2,pytest-asyncio==0.14.0,pytest-cov==2.10.1,pytest-django==3.10.0,pytest-flask==1.0.0,pytest-forked==1.3.0,pytest-mock==3.3.1,pytest-postgresql==2.5.0,pytest-xdist==2.1.0,python-dateutil==2.8.1,python-debian==0.1.37,python-jose==3.2.0,python-keycloak==0.22.0,python-magic==0.4.18,python-memcached==1.59,pytz==2020.1,PyYAML==5.3.1,requests==2.24.0,requests-mock==1.8.0,retrying==1.3.3,rsa==4.6,sentry-sdk==0.17.8,six==1.15.0,sortedcontainers==2.2.2,soupsieve==2.0.1,sqlalchemy-stubs==0.3,sqlparse==0.3.1,swh.core==0.3.0,swh.indexer==0.2.4,swh.journal==0.4.3,swh.loader.core==0.11.0,swh.loader.git==0.3.6,swh.model==0.6.6,swh.objstorage==0.2.1,swh.scanner @ file:///home/tenma/Dev/swh-env/swh-scanner/.tox/.tmp/package/1/swh.scanner-0.1.2.dev23%2Bgf10d3d8.d20200925.zip,swh.scheduler==0.6.0,swh.search==0.2.3,swh.storage==0.15.3,swh.vault==0.1.0,swh.web==0.0.260,tenacity==6.2.0,toml==0.10.1,typed-ast==1.4.1,typing-extensions==3.7.4.3,urllib3==1.25.10,vcversioner==2.16.0.0,vine==5.0.0,wcwidth==0.2.5,Werkzeug==1.0.1,wrapt==1.12.1,xmltodict==0.12.0,yarl==1.6.0,zipp==3.2.0
py3 run-test-pre: PYTHONHASHSEED='4116300895'
py3 run-test: commands[0] | pytest --doctest-modules /home/tenma/Dev/swh-env/swh-scanner/.tox/py3/lib/python3.7/site-packages/swh/scanner --cov=/home/tenma/Dev/swh-env/swh-scanner/.tox/py3/lib/python3.7/site-packages/swh/scanner --cov-branch
==================================================== test session starts =====================================================
platform linux -- Python 3.7.3, pytest-6.0.2, py-1.9.0, pluggy-0.13.1
cachedir: .tox/py3/.pytest_cache
rootdir: /home/tenma/Dev/swh-env/swh-scanner, configfile: pytest.ini
plugins: swh.journal-0.4.3, requests-mock-1.8.0, dash-1.16.1, cov-2.10.1, postgresql-2.5.0, xdist-2.1.0, forked-1.3.0, swh.core-0.3.0, hypothesis-5.36.0, flask-1.0.0, asyncio-0.14.0, mock-3.3.1
collected 20 items
.tox/py3/lib/python3.7/site-packages/swh/scanner/tests/test_dashboard.py . [ 5%]
.tox/py3/lib/python3.7/site-packages/swh/scanner/tests/test_model.py ........ [ 45%]
.tox/py3/lib/python3.7/site-packages/swh/scanner/tests/test_plot.py ... [ 60%]
.tox/py3/lib/python3.7/site-packages/swh/scanner/tests/test_scanner.py ........ [100%]
----------- coverage: platform linux, python 3.7.3-final-0 -----------
Name Stmts Miss Branch BrPart Cover
------------------------------------------------------------------------------------------------------------
.tox/py3/lib/python3.7/site-packages/swh/scanner/__init__.py 0 0 0 0 100%
.tox/py3/lib/python3.7/site-packages/swh/scanner/cli.py 44 22 14 1 40%
.tox/py3/lib/python3.7/site-packages/swh/scanner/dashboard/__init__.py 0 0 0 0 100%
.tox/py3/lib/python3.7/site-packages/swh/scanner/dashboard/dashboard.py 29 12 6 0 60%
.tox/py3/lib/python3.7/site-packages/swh/scanner/exceptions.py 10 1 0 0 90%
.tox/py3/lib/python3.7/site-packages/swh/scanner/model.py 126 30 68 2 72%
.tox/py3/lib/python3.7/site-packages/swh/scanner/plot.py 76 12 26 2 84%
.tox/py3/lib/python3.7/site-packages/swh/scanner/scanner.py 99 19 42 2 77%
.tox/py3/lib/python3.7/site-packages/swh/scanner/tests/__init__.py 0 0 0 0 100%
.tox/py3/lib/python3.7/site-packages/swh/scanner/tests/conftest.py 61 0 4 0 100%
.tox/py3/lib/python3.7/site-packages/swh/scanner/tests/data.py 3 0 0 0 100%
.tox/py3/lib/python3.7/site-packages/swh/scanner/tests/flask_api.py 15 8 8 0 30%
.tox/py3/lib/python3.7/site-packages/swh/scanner/tests/test_dashboard.py 9 0 2 0 100%
.tox/py3/lib/python3.7/site-packages/swh/scanner/tests/test_model.py 65 0 32 0 100%
.tox/py3/lib/python3.7/site-packages/swh/scanner/tests/test_plot.py 30 0 4 0 100%
.tox/py3/lib/python3.7/site-packages/swh/scanner/tests/test_scanner.py 57 0 18 0 100%
------------------------------------------------------------------------------------------------------------
TOTAL 624 104 224 7 80%
===================================================== 20 passed in 5.48s =====================================================
__________________________________________________________ summary ___________________________________________________________
ERROR: black: commands failed
flake8: commands succeeded
ERROR: mypy: commands failed
py3: commands succeeded