Skip to content

Instantly share code, notes, and snippets.

@douglasnaphas
Created December 9, 2019 00:14
Show Gist options
  • Save douglasnaphas/69463333de734fc0c7df140d5606c306 to your computer and use it in GitHub Desktop.
Save douglasnaphas/69463333de734fc0c7df140d5606c306 to your computer and use it in GitHub Desktop.
Errors from running tox on the development branch of aws-sam-cli
GLOB sdist-make: /Users/douglasnaphas/repos/aws-sam-cli/setup.py
py27 inst-nodeps: /Users/douglasnaphas/repos/aws-sam-cli/.tox/.tmp/package/1/aws-sam-cli-0.37.0.zip
ERROR: invocation failed (exit code 1), logfile: /Users/douglasnaphas/repos/aws-sam-cli/.tox/py27/log/py27-3.log
================================== log start ===================================
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Processing ./.tox/.tmp/package/1/aws-sam-cli-0.37.0.zip
ERROR: Package 'aws-sam-cli' requires a different Python: 2.7.14 not in '>=3.6, <=4.0, !=4.0'
=================================== log end ====================================
py36 inst-nodeps: /Users/douglasnaphas/repos/aws-sam-cli/.tox/.tmp/package/1/aws-sam-cli-0.37.0.zip
py36 installed: apipkg==1.5,arrow==0.15.4,astroid==2.3.3,atomicwrites==1.3.0,attrs==19.3.0,aws-lambda-builders==0.6.0,aws-sam-cli==0.37.0,aws-sam-translator==1.19.0,binaryornot==0.4.4,boto3==1.10.34,botocore==1.13.34,certifi==2019.11.28,chardet==3.0.4,chevron==0.13.1,Click==7.0,cookiecutter==1.6.0,coverage==4.5.4,dateparser==0.7.2,docker==4.1.0,docutils==0.15.2,execnet==1.7.1,Flask==1.0.4,future==0.18.2,idna==2.8,importlib-metadata==1.2.0,isort==4.3.21,itsdangerous==1.1.0,Jinja2==2.10.3,jinja2-time==0.2.0,jmespath==0.9.4,jsonschema==3.2.0,lazy-object-proxy==1.4.3,MarkupSafe==1.1.1,mccabe==0.6.1,more-itertools==8.0.2,packaging==19.2,parameterized==0.7.0,pluggy==0.13.1,poyo==0.5.0,py==1.8.0,pylint==2.3.1,pyparsing==2.4.5,pyrsistent==0.15.6,pytest==5.2.1,pytest-cov==2.7.1,pytest-forked==1.1.3,pytest-rerunfailures==7.0,pytest-timeout==1.3.3,pytest-xdist==1.30.0,python-dateutil==2.8.0,pytz==2019.3,PyYAML==5.2,regex==2019.11.1,requests==2.22.0,s3transfer==0.2.1,serverlessrepo==0.1.9,six==1.13.0,tomlkit==0.5.8,typed-ast==1.4.0,tzlocal==2.0.0,urllib3==1.25.7,wcwidth==0.1.7,websocket-client==0.56.0,Werkzeug==0.16.0,whichcraft==0.6.1,wrapt==1.11.2,zipp==0.6.0
py36 run-test-pre: PYTHONHASHSEED='3961523384'
py36 run-test: commands[0] | make pr
SAM_CLI_DEV=1 pip install -e '.[dev]'
Obtaining file:///Users/douglasnaphas/repos/aws-sam-cli
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Requirement already satisfied: cookiecutter~=1.6.0 in ./.tox/py36/lib/python3.6/site-packages (from aws-sam-cli==0.37.0) (1.6.0)
Requirement already satisfied: jmespath~=0.9.4 in ./.tox/py36/lib/python3.6/site-packages (from aws-sam-cli==0.37.0) (0.9.4)
...<output truncated>...
Requirement already satisfied: zipp>=0.5 in ./.tox/py36/lib/python3.6/site-packages (from importlib-metadata>=0.12; python_version < "3.8"->pytest==5.2.1; extra == "dev"->aws-sam-cli==0.37.0) (0.6.0)
Requirement already satisfied: apipkg>=1.4 in ./.tox/py36/lib/python3.6/site-packages (from execnet>=1.1->pytest-xdist==1.30.0; extra == "dev"->aws-sam-cli==0.37.0) (1.5)
Installing collected packages: aws-sam-cli
Found existing installation: aws-sam-cli 0.37.0
Uninstalling aws-sam-cli-0.37.0:
Successfully uninstalled aws-sam-cli-0.37.0
Running setup.py develop for aws-sam-cli
Successfully installed aws-sam-cli
# Linter performs static analysis to catch latent bugs
pylint --rcfile .pylintrc samcli
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
# Run unit tests
# Fail if coverage falls below 95%
pytest --cov samcli --cov-report term-missing --cov-fail-under 95 tests/unit
============================= test session starts ==============================
platform darwin -- Python 3.6.8, pytest-5.2.1, py-1.8.0, pluggy-0.13.1
cachedir: .tox/py36/.pytest_cache
rootdir: /Users/douglasnaphas/repos/aws-sam-cli, inifile: pytest.ini
plugins: xdist-1.30.0, timeout-1.3.3, cov-2.7.1, rerunfailures-7.0, forked-1.1.3
collected 1474 items
tests/unit/test_yamlhelper.py ....... [ 0%]
tests/unit/cli/test_cli_config_file.py ........ [ 1%]
...<output truncated>...
tests/unit/local/layers/test_download_layers.py .............. [ 98%]
tests/unit/local/services/test_base_local_service.py ................... [100%]
=============================== warnings summary ===============================
.tox/py36/lib/python3.6/site-packages/nose_parameterized/__init__.py:7
/Users/douglasnaphas/repos/aws-sam-cli/.tox/py36/lib/python3.6/site-packages/nose_parameterized/__init__.py:7: UserWarning: The 'nose-parameterized' package has been renamed 'parameterized'. For the two step migration instructions, see: https://github.com/wolever/parameterized#migrating-from-nose-parameterized-to-parameterized (set NOSE_PARAMETERIZED_NO_WARN=1 to suppress this warning)
"The 'nose-parameterized' package has been renamed 'parameterized'. "
.tox/py36/lib/python3.6/site-packages/past/builtins/misc.py:45
/Users/douglasnaphas/repos/aws-sam-cli/.tox/py36/lib/python3.6/site-packages/past/builtins/misc.py:45: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
from imp import reload
.tox/py36/lib/python3.6/site-packages/cookiecutter/repository.py:19
/Users/douglasnaphas/repos/aws-sam-cli/.tox/py36/lib/python3.6/site-packages/cookiecutter/repository.py:19: DeprecationWarning: Flags not at the start of the expression '\n(?x)\n((((git|hg)\\+)' (truncated)
""")
tests/unit/local/docker/test_lambda_container.py::TestLambdaContainer_get_debug_settings::test_must_skip_if_debug_port_is_not_specified
/Users/douglasnaphas/repos/aws-sam-cli/tests/unit/local/docker/test_lambda_container.py:175: DeprecationWarning: Please use assertEqual instead.
"Must not provide entrypoint if debug port is not given",
-- Docs: https://docs.pytest.org/en/latest/warnings.html
---------- coverage: platform darwin, python 3.6.8-final-0 -----------
Name Stmts Miss Branch BrPart Cover Missing
-----------------------------------------------------------------------------------------------------------
samcli/__init__.py 1 0 0 0 100%
samcli/__main__.py 3 3 2 0 0% 7-12
...<output truncated>...
samcli/settings/__init__.py 5 1 2 1 71% 22, 21->22
samcli/yamlhelper.py 37 0 8 0 100%
-----------------------------------------------------------------------------------------------------------
TOTAL 6221 174 1495 87 96%
Required test coverage of 95% reached. Total coverage: 96.20%
====================== 1474 passed, 4 warnings in 20.40s =======================
black --check samcli/* tests/* scripts/*
would reformat /Users/douglasnaphas/repos/aws-sam-cli/samcli/commands/deploy/command.py
Oh no! 💥 💔 💥
1 file would be reformatted, 376 files would be left unchanged.
make: *** [black-check] Error 1
ERROR: InvocationError for command /usr/bin/make pr (exited with code 2)
py37 inst-nodeps: /Users/douglasnaphas/repos/aws-sam-cli/.tox/.tmp/package/1/aws-sam-cli-0.37.0.zip
py37 installed: apipkg==1.5,arrow==0.15.4,astroid==2.3.3,atomicwrites==1.3.0,attrs==19.3.0,aws-lambda-builders==0.6.0,aws-sam-cli==0.37.0,aws-sam-translator==1.19.0,binaryornot==0.4.4,boto3==1.10.34,botocore==1.13.34,certifi==2019.11.28,chardet==3.0.4,chevron==0.13.1,Click==7.0,cookiecutter==1.6.0,coverage==4.5.4,dateparser==0.7.2,docker==4.1.0,docutils==0.15.2,execnet==1.7.1,Flask==1.0.4,future==0.18.2,idna==2.8,importlib-metadata==1.2.0,isort==4.3.21,itsdangerous==1.1.0,Jinja2==2.10.3,jinja2-time==0.2.0,jmespath==0.9.4,jsonschema==3.2.0,lazy-object-proxy==1.4.3,MarkupSafe==1.1.1,mccabe==0.6.1,more-itertools==8.0.2,packaging==19.2,parameterized==0.7.0,pluggy==0.13.1,poyo==0.5.0,py==1.8.0,pylint==2.3.1,pyparsing==2.4.5,pyrsistent==0.15.6,pytest==5.2.1,pytest-cov==2.7.1,pytest-forked==1.1.3,pytest-rerunfailures==7.0,pytest-timeout==1.3.3,pytest-xdist==1.30.0,python-dateutil==2.8.0,pytz==2019.3,PyYAML==5.2,regex==2019.11.1,requests==2.22.0,s3transfer==0.2.1,serverlessrepo==0.1.9,six==1.13.0,tomlkit==0.5.8,typed-ast==1.4.0,tzlocal==2.0.0,urllib3==1.25.7,wcwidth==0.1.7,websocket-client==0.56.0,Werkzeug==0.16.0,whichcraft==0.6.1,wrapt==1.11.2,zipp==0.6.0
py37 run-test-pre: PYTHONHASHSEED='3961523384'
py37 run-test: commands[0] | make pr
SAM_CLI_DEV=1 pip install -e '.[dev]'
Obtaining file:///Users/douglasnaphas/repos/aws-sam-cli
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Requirement already satisfied: PyYAML~=5.1 in ./.tox/py37/lib/python3.7/site-packages (from aws-sam-cli==0.37.0) (5.2)
Requirement already satisfied: python-dateutil<2.8.1,~=2.6 in ./.tox/py37/lib/python3.7/site-packages (from aws-sam-cli==0.37.0) (2.8.0)
...<output truncated>...
Requirement already satisfied: zipp>=0.5 in ./.tox/py37/lib/python3.7/site-packages (from importlib-metadata>=0.12; python_version < "3.8"->pytest==5.2.1; extra == "dev"->aws-sam-cli==0.37.0) (0.6.0)
Requirement already satisfied: apipkg>=1.4 in ./.tox/py37/lib/python3.7/site-packages (from execnet>=1.1->pytest-xdist==1.30.0; extra == "dev"->aws-sam-cli==0.37.0) (1.5)
Installing collected packages: aws-sam-cli
Found existing installation: aws-sam-cli 0.37.0
Uninstalling aws-sam-cli-0.37.0:
Successfully uninstalled aws-sam-cli-0.37.0
Running setup.py develop for aws-sam-cli
Successfully installed aws-sam-cli
# Linter performs static analysis to catch latent bugs
pylint --rcfile .pylintrc samcli
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
# Run unit tests
# Fail if coverage falls below 95%
pytest --cov samcli --cov-report term-missing --cov-fail-under 95 tests/unit
============================= test session starts ==============================
platform darwin -- Python 3.7.2, pytest-5.2.1, py-1.8.0, pluggy-0.13.1
cachedir: .tox/py37/.pytest_cache
rootdir: /Users/douglasnaphas/repos/aws-sam-cli, inifile: pytest.ini
plugins: xdist-1.30.0, timeout-1.3.3, cov-2.7.1, rerunfailures-7.0, forked-1.1.3
collected 1474 items
tests/unit/test_yamlhelper.py ....... [ 0%]
tests/unit/cli/test_cli_config_file.py ........ [ 1%]
...<output truncated>...
tests/unit/local/layers/test_download_layers.py .............. [ 98%]
tests/unit/local/services/test_base_local_service.py ................... [100%]
=============================== warnings summary ===============================
.tox/py37/lib/python3.7/site-packages/botocore/awsrequest.py:624
/Users/douglasnaphas/repos/aws-sam-cli/.tox/py37/lib/python3.7/site-packages/botocore/awsrequest.py:624: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
class HeadersDict(collections.MutableMapping):
.tox/py37/lib/python3.7/site-packages/nose_parameterized/__init__.py:7
/Users/douglasnaphas/repos/aws-sam-cli/.tox/py37/lib/python3.7/site-packages/nose_parameterized/__init__.py:7: UserWarning: The 'nose-parameterized' package has been renamed 'parameterized'. For the two step migration instructions, see: https://github.com/wolever/parameterized#migrating-from-nose-parameterized-to-parameterized (set NOSE_PARAMETERIZED_NO_WARN=1 to suppress this warning)
"The 'nose-parameterized' package has been renamed 'parameterized'. "
.tox/py37/lib/python3.7/site-packages/past/builtins/misc.py:45
/Users/douglasnaphas/repos/aws-sam-cli/.tox/py37/lib/python3.7/site-packages/past/builtins/misc.py:45: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
from imp import reload
.tox/py37/lib/python3.7/site-packages/cookiecutter/repository.py:19
/Users/douglasnaphas/repos/aws-sam-cli/.tox/py37/lib/python3.7/site-packages/cookiecutter/repository.py:19: DeprecationWarning: Flags not at the start of the expression '\n(?x)\n((((git|hg)\\+)' (truncated)
""")
tests/unit/local/docker/test_lambda_container.py::TestLambdaContainer_get_debug_settings::test_must_skip_if_debug_port_is_not_specified
/Users/douglasnaphas/repos/aws-sam-cli/tests/unit/local/docker/test_lambda_container.py:175: DeprecationWarning: Please use assertEqual instead.
"Must not provide entrypoint if debug port is not given",
-- Docs: https://docs.pytest.org/en/latest/warnings.html
---------- coverage: platform darwin, python 3.7.2-final-0 -----------
Name Stmts Miss Branch BrPart Cover Missing
-----------------------------------------------------------------------------------------------------------
samcli/__init__.py 1 0 0 0 100%
samcli/__main__.py 3 3 2 0 0% 7-12
...<output truncated>...
samcli/settings/__init__.py 5 1 2 1 71% 22, 21->22
samcli/yamlhelper.py 37 0 8 0 100%
-----------------------------------------------------------------------------------------------------------
TOTAL 6221 174 1495 87 96%
Required test coverage of 95% reached. Total coverage: 96.20%
====================== 1474 passed, 5 warnings in 18.18s =======================
black --check samcli/* tests/* scripts/*
would reformat /Users/douglasnaphas/repos/aws-sam-cli/samcli/commands/deploy/command.py
Oh no! 💥 💔 💥
1 file would be reformatted, 376 files would be left unchanged.
make: *** [black-check] Error 1
ERROR: InvocationError for command /usr/bin/make pr (exited with code 2)
___________________________________ summary ____________________________________
ERROR: py27: InvocationError for command /Users/douglasnaphas/repos/aws-sam-cli/.tox/py27/bin/python -m pip install --no-deps -U .tox/.tmp/package/1/aws-sam-cli-0.37.0.zip (exited with code 1)
ERROR: py36: commands failed
ERROR: py37: commands failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment