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

Python unit tests failing in CI for Python 3.5 (AzDO) #14469

Closed
kimadeline opened this issue Oct 21, 2020 · 0 comments
Closed

Python unit tests failing in CI for Python 3.5 (AzDO) #14469

kimadeline opened this issue Oct 21, 2020 · 0 comments
Labels
area-internal Label for non-user facing issues bug Issue identified by VS Code Team member as probable bug regression Bug didn't exist in a previous release

Comments

@kimadeline
Copy link

kimadeline commented Oct 21, 2020

Failing steps:

  • Py35 Unit
  • Py35 Debugger

https://dev.azure.com/ms/vscode-python/_build/results?buildId=117067&view=results

Traceback (most recent call last):
  File "pythonFiles/tests/run_all.py", line 10, in <module>
    from tests.__main__ import main, parse_args
  File "/home/vsts/work/1/s/pythonFiles/tests/__main__.py", line 7, in <module>
    import pytest
ImportError: No module named 'pytest'

Somehow pytest doesn't get installed during the pip install system test requirements of the Py35 Unit job (note that there's also a problem with installing black):

DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
Ignoring pytest: markers 'python_version == "2.7"' don't match your environment
Ignoring py: markers 'python_version == "2.7"' don't match your environment
Ignoring pathlib2: markers 'python_version == "2.7"' don't match your environment
Ignoring prospector: markers 'python_version == "2.7"' don't match your environment
Collecting flake8
  Downloading flake8-3.8.4-py2.py3-none-any.whl (72 kB)
Collecting autopep8
  Downloading autopep8-1.5.4.tar.gz (121 kB)
Collecting bandit
  Downloading bandit-1.6.2-py2.py3-none-any.whl (122 kB)
ERROR: Could not find a version that satisfies the requirement black (from -r build/test-requirements.txt (line 6)) (from versions: none)
ERROR: No matching distribution found for black (from -r build/test-requirements.txt (line 6))
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
Ignoring isort: markers 'python_version >= "3.6"' don't match your environment
Ignoring None: markers 'python_version >= "3.6"' don't match your environment
Ignoring pygls: markers 'python_version >= "3.6"' don't match your environment
Collecting click==7.1.2
  Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting future==0.18.2
  Downloading future-0.18.2.tar.gz (829 kB)
Collecting jedi==0.17.2
  Downloading jedi-0.17.2-py2.py3-none-any.whl (1.4 MB)
Collecting parso==0.7.0
  Downloading parso-0.7.0-py2.py3-none-any.whl (100 kB)
Collecting python-jsonrpc-server==0.2.0
  Downloading python-jsonrpc-server-0.2.0.tar.gz (25 kB)
Using legacy 'setup.py install' for future, since package 'wheel' is not installed.
Using legacy 'setup.py install' for python-jsonrpc-server, since package 'wheel' is not installed.
Installing collected packages: click, future, jedi, parso, python-jsonrpc-server
    Running setup.py install for future: started
    Running setup.py install for future: finished with status 'done'
    Running setup.py install for python-jsonrpc-server: started
    Running setup.py install for python-jsonrpc-server: finished with status 'done'
Successfully installed click-7.1.2 future-0.18.2 jedi-0.17.2 parso-0.7.0 python-jsonrpc-server-0.2.0
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
Collecting debugpy
  Downloading debugpy-1.0.0-py2.py3-none-any.whl (4.1 MB)
Installing collected packages: debugpy
Successfully installed debugpy-1.0.0

Compare that with the (much longer) output of the pip install system test requirements step of the Py3x Unit job:

 Ignoring pytest: markers 'python_version == "2.7"' don't match your environment
 Ignoring py: markers 'python_version == "2.7"' don't match your environment
 Ignoring pathlib2: markers 'python_version == "2.7"' don't match your environment
 Ignoring prospector: markers 'python_version == "2.7"' don't match your environment
 Collecting flake8
   Downloading flake8-3.8.4-py2.py3-none-any.whl (72 kB)
 Collecting autopep8
   Downloading autopep8-1.5.4.tar.gz (121 kB)
 Collecting bandit
   Downloading bandit-1.6.2-py2.py3-none-any.whl (122 kB)
 Collecting black
   Downloading black-20.8b1.tar.gz (1.1 MB)
   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'
 Collecting yapf
   Downloading yapf-0.30.0-py2.py3-none-any.whl (190 kB)
 Collecting pylint
   Downloading pylint-2.6.0-py3-none-any.whl (325 kB)
 Collecting pycodestyle
   Downloading pycodestyle-2.6.0-py2.py3-none-any.whl (41 kB)
 Collecting pydocstyle
   Downloading pydocstyle-5.1.1-py3-none-any.whl (35 kB)
 Collecting prospector
   Downloading prospector-1.3.0.tar.gz (58 kB)
   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'
 Collecting nose
   Downloading nose-1.3.7-py3-none-any.whl (154 kB)
 Collecting pytest<6
   Downloading pytest-5.4.3-py3-none-any.whl (248 kB)
 Collecting rope
   Downloading rope-0.18.0.tar.gz (249 kB)
 Collecting flask
   Downloading Flask-1.1.2-py2.py3-none-any.whl (94 kB)
 Collecting django
   Downloading Django-3.1.2-py3-none-any.whl (7.8 MB)
 Collecting isort
   Downloading isort-5.6.4-py3-none-any.whl (98 kB)
 Collecting mccabe<0.7.0,>=0.6.0
   Downloading mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
 Collecting pyflakes<2.3.0,>=2.2.0
   Downloading pyflakes-2.2.0-py2.py3-none-any.whl (66 kB)
 Collecting toml
   Downloading toml-0.10.1-py2.py3-none-any.whl (19 kB)
 Collecting six>=1.10.0
   Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
 Collecting PyYAML>=3.13
   Downloading PyYAML-5.3.1.tar.gz (269 kB)
 Collecting stevedore>=1.20.0
   Downloading stevedore-3.2.2-py3-none-any.whl (42 kB)
 Collecting GitPython>=1.0.1
   Downloading GitPython-3.1.9-py3-none-any.whl (159 kB)
 Collecting mypy-extensions>=0.4.3
   Downloading mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
 Collecting click>=7.1.2
   Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
 Collecting pathspec<1,>=0.6
   Downloading pathspec-0.8.0-py2.py3-none-any.whl (28 kB)
 Collecting typed-ast>=1.4.0
   Downloading typed_ast-1.4.1-cp38-cp38-manylinux1_x86_64.whl (768 kB)
 Collecting appdirs
   Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
 Collecting typing-extensions>=3.7.4
   Downloading typing_extensions-3.7.4.3-py3-none-any.whl (22 kB)
 Collecting regex>=2020.1.8
   Downloading regex-2020.10.15-cp38-cp38-manylinux2010_x86_64.whl (675 kB)
 Collecting astroid<=2.5,>=2.4.0
   Downloading astroid-2.4.2-py3-none-any.whl (213 kB)
 Collecting snowballstemmer
   Downloading snowballstemmer-2.0.0-py2.py3-none-any.whl (97 kB)
 Collecting pep8-naming<=0.10.0,>=0.3.3
   Downloading pep8_naming-0.10.0-py2.py3-none-any.whl (8.1 kB)
 Collecting dodgy>=0.1.9
   Downloading dodgy-0.2.1-py3-none-any.whl (5.4 kB)
 Collecting pylint-plugin-utils>=0.2.6
   Downloading pylint_plugin_utils-0.6-py3-none-any.whl (10 kB)
 Collecting pylint-celery==0.3
   Downloading pylint-celery-0.3.tar.gz (1.9 kB)
 Collecting setoptconf>=0.2.0
   Downloading setoptconf-0.2.0.tar.gz (13 kB)
 Collecting requirements-detector>=0.6
   Downloading requirements-detector-0.7.tar.gz (8.6 kB)
 Collecting pylint-django==2.0.15
   Downloading pylint_django-2.0.15-py3-none-any.whl (70 kB)
 Collecting pylint-flask==0.6
   Downloading pylint-flask-0.6.tar.gz (10.0 kB)
 Collecting py>=1.5.0
   Downloading py-1.9.0-py2.py3-none-any.whl (99 kB)
 Collecting packaging
   Downloading packaging-20.4-py2.py3-none-any.whl (37 kB)
 Collecting pluggy<1.0,>=0.12
   Downloading pluggy-0.13.1-py2.py3-none-any.whl (18 kB)
 Collecting more-itertools>=4.0.0
   Downloading more_itertools-8.5.0-py3-none-any.whl (44 kB)
 Collecting attrs>=17.4.0
   Downloading attrs-20.2.0-py2.py3-none-any.whl (48 kB)
 Collecting wcwidth
   Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
 Collecting Werkzeug>=0.15
   Downloading Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
 Collecting Jinja2>=2.10.1
   Downloading Jinja2-2.11.2-py2.py3-none-any.whl (125 kB)
 Collecting itsdangerous>=0.24
   Downloading itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)
 Collecting asgiref~=3.2.10
   Downloading asgiref-3.2.10-py3-none-any.whl (19 kB)
 Collecting pytz
   Downloading pytz-2020.1-py2.py3-none-any.whl (510 kB)
 Collecting sqlparse>=0.2.2
   Downloading sqlparse-0.4.1-py3-none-any.whl (42 kB)
 Collecting pbr!=2.1.0,>=2.0.0
   Downloading pbr-5.5.1-py2.py3-none-any.whl (106 kB)
 Collecting gitdb<5,>=4.0.1
   Downloading gitdb-4.0.5-py3-none-any.whl (63 kB)
 Collecting wrapt~=1.11
   Downloading wrapt-1.12.1.tar.gz (27 kB)
 Collecting lazy-object-proxy==1.4.*
   Downloading lazy_object_proxy-1.4.3-cp38-cp38-manylinux1_x86_64.whl (58 kB)
 Collecting flake8-polyfill<2,>=1.0.2
   Downloading flake8_polyfill-1.0.2-py2.py3-none-any.whl (7.3 kB)
 Collecting pyparsing>=2.0.2
   Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
 Collecting MarkupSafe>=0.23
   Downloading MarkupSafe-1.1.1-cp38-cp38-manylinux1_x86_64.whl (32 kB)
 Collecting smmap<4,>=3.0.1
   Downloading smmap-3.0.4-py2.py3-none-any.whl (25 kB)
 Using legacy 'setup.py install' for autopep8, since package 'wheel' is not installed.
 Using legacy 'setup.py install' for rope, since package 'wheel' is not installed.
 Using legacy 'setup.py install' for PyYAML, since package 'wheel' is not installed.
 Using legacy 'setup.py install' for pylint-celery, since package 'wheel' is not installed.
 Using legacy 'setup.py install' for setoptconf, since package 'wheel' is not installed.
 Using legacy 'setup.py install' for requirements-detector, since package 'wheel' is not installed.
 Using legacy 'setup.py install' for pylint-flask, since package 'wheel' is not installed.
 Using legacy 'setup.py install' for wrapt, since package 'wheel' is not installed.
 Building wheels for collected packages: black, prospector
   Building wheel for black (PEP 517): started
   Building wheel for black (PEP 517): finished with status 'done'
   Created wheel for black: filename=black-20.8b1-py3-none-any.whl size=124186 sha256=9d63b4e22ae0b1bc54ad10374fce8d7ad0e37b8f7d7d4d7742dc712cdd0736fb
   Stored in directory: /home/vsts/.cache/pip/wheels/95/a4/59/10cd5378d52f92cdb45025f040e4686e10ae5217961c25fd66
   Building wheel for prospector (PEP 517): started
   Building wheel for prospector (PEP 517): finished with status 'done'
   Created wheel for prospector: filename=prospector-1.3.0-py3-none-any.whl size=74818 sha256=203c96b77ec30287368e3d291b3b7d8373b26c5a9df3939ad4be7e2cf9a745cb
   Stored in directory: /home/vsts/.cache/pip/wheels/44/41/60/2cf25691ff569f0b739cbd270982263d18f311ef097d73389a
 Successfully built black prospector
 Installing collected packages: mccabe, pycodestyle, pyflakes, flake8, toml, autopep8, six, PyYAML, pbr, stevedore, smmap, gitdb, GitPython, bandit, mypy-extensions, click, pathspec, typed-ast, appdirs, typing-extensions, regex, black, yapf, isort, wrapt, lazy-object-proxy, astroid, pylint, snowballstemmer, pydocstyle, flake8-polyfill, pep8-naming, dodgy, pylint-plugin-utils, pylint-celery, setoptconf, requirements-detector, pylint-django, pylint-flask, prospector, nose, py, pyparsing, packaging, pluggy, more-itertools, attrs, wcwidth, pytest, rope, Werkzeug, MarkupSafe, Jinja2, itsdangerous, flask, asgiref, pytz, sqlparse, django
     Running setup.py install for autopep8: started
     Running setup.py install for autopep8: finished with status 'done'
     Running setup.py install for PyYAML: started
     Running setup.py install for PyYAML: finished with status 'done'
     Running setup.py install for wrapt: started
     Running setup.py install for wrapt: finished with status 'done'
     Running setup.py install for pylint-celery: started
     Running setup.py install for pylint-celery: finished with status 'done'
     Running setup.py install for setoptconf: started
     Running setup.py install for setoptconf: finished with status 'done'
     Running setup.py install for requirements-detector: started
     Running setup.py install for requirements-detector: finished with status 'done'
     Running setup.py install for pylint-flask: started
     Running setup.py install for pylint-flask: finished with status 'done'
     Running setup.py install for rope: started
     Running setup.py install for rope: finished with status 'done'
 ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.
 
 We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.
 
 prospector 1.3.0 requires astroid==2.4.1, but you'll have astroid 2.4.2 which is incompatible.
 prospector 1.3.0 requires pylint==2.5.2, but you'll have pylint 2.6.0 which is incompatible.
 Successfully installed GitPython-3.1.9 Jinja2-2.11.2 MarkupSafe-1.1.1 PyYAML-5.3.1 Werkzeug-1.0.1 appdirs-1.4.4 asgiref-3.2.10 astroid-2.4.2 attrs-20.2.0 autopep8-1.5.4 bandit-1.6.2 black-20.8b1 click-7.1.2 django-3.1.2 dodgy-0.2.1 flake8-3.8.4 flake8-polyfill-1.0.2 flask-1.1.2 gitdb-4.0.5 isort-5.6.4 itsdangerous-1.1.0 lazy-object-proxy-1.4.3 mccabe-0.6.1 more-itertools-8.5.0 mypy-extensions-0.4.3 nose-1.3.7 packaging-20.4 pathspec-0.8.0 pbr-5.5.1 pep8-naming-0.10.0 pluggy-0.13.1 prospector-1.3.0 py-1.9.0 pycodestyle-2.6.0 pydocstyle-5.1.1 pyflakes-2.2.0 pylint-2.6.0 pylint-celery-0.3 pylint-django-2.0.15 pylint-flask-0.6 pylint-plugin-utils-0.6 pyparsing-2.4.7 pytest-5.4.3 pytz-2020.1 regex-2020.10.15 requirements-detector-0.7 rope-0.18.0 setoptconf-0.2.0 six-1.15.0 smmap-3.0.4 snowballstemmer-2.0.0 sqlparse-0.4.1 stevedore-3.2.2 toml-0.10.1 typed-ast-1.4.1 typing-extensions-3.7.4.3 wcwidth-0.2.5 wrapt-1.12.1 yapf-0.30.0
 Collecting git+git://github.com/vscode-python/jedi-language-server@42823a2598d4b6369e9273c5ad237a48c5d67553 (from -r requirements.txt (line 10))
   Cloning git://github.com/vscode-python/jedi-language-server (to revision 42823a2598d4b6369e9273c5ad237a48c5d67553) to /tmp/pip-req-build-v7pbjrfs
   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'
 Collecting click==7.1.2
   Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
 Collecting future==0.18.2
   Downloading future-0.18.2.tar.gz (829 kB)
 Collecting isort==5.5.3
   Downloading isort-5.5.3-py3-none-any.whl (95 kB)
 Collecting jedi==0.17.2
   Downloading jedi-0.17.2-py2.py3-none-any.whl (1.4 MB)
 Collecting parso==0.7.0
   Downloading parso-0.7.0-py2.py3-none-any.whl (100 kB)
 Collecting pygls==0.9.0
   Downloading pygls-0.9.0-py3-none-any.whl (46 kB)
 Collecting python-jsonrpc-server==0.2.0
   Downloading python-jsonrpc-server-0.2.0.tar.gz (25 kB)
 Using legacy 'setup.py install' for future, since package 'wheel' is not installed.
 Using legacy 'setup.py install' for python-jsonrpc-server, since package 'wheel' is not installed.
 Building wheels for collected packages: jedi-language-server
   Building wheel for jedi-language-server (PEP 517): started
   Building wheel for jedi-language-server (PEP 517): finished with status 'done'
   Created wheel for jedi-language-server: filename=jedi_language_server-0.19.3-py3-none-any.whl size=20442 sha256=305a2f4c1e19f627e6d1820784fd4c865eb2f4ce8d3008935a092b5f32c5f611
   Stored in directory: /tmp/pip-ephem-wheel-cache-tqgooa7_/wheels/7c/ea/db/fd33a0909eace29257c2041ba70c88a9d3644db101e9a5de99
 Successfully built jedi-language-server
 Installing collected packages: click, future, isort, jedi, parso, pygls, python-jsonrpc-server, jedi-language-server
     Running setup.py install for future: started
     Running setup.py install for future: finished with status 'done'
     Running setup.py install for python-jsonrpc-server: started
     Running setup.py install for python-jsonrpc-server: finished with status 'done'
 Successfully installed click-7.1.2 future-0.18.2 isort-5.5.3 jedi-0.17.2 jedi-language-server-0.19.3 parso-0.7.0 pygls-0.9.0 python-jsonrpc-server-0.2.0
 Collecting debugpy
   Downloading debugpy-1.0.0-py2.py3-none-any.whl (4.1 MB)
 Installing collected packages: debugpy
 Successfully installed debugpy-1.0.0
@kimadeline kimadeline added bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team labels Oct 21, 2020
@karthiknadig karthiknadig added area-internal Label for non-user facing issues needs PR labels Oct 22, 2020
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Oct 22, 2020
@brettcannon brettcannon added the regression Bug didn't exist in a previous release label Oct 26, 2020
@luabud luabud closed this as completed Oct 27, 2020
@ghost ghost removed the needs PR label Oct 27, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-internal Label for non-user facing issues bug Issue identified by VS Code Team member as probable bug regression Bug didn't exist in a previous release
Projects
None yet
Development

No branches or pull requests

4 participants