[
https://issues.apache.org/jira/browse/BEAM-9427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17049770#comment-17049770
]
Valentyn Tymofieiev commented on BEAM-9427:
-------------------------------------------
FWIW Here's my latest output of
gradlew clean :sdks:python:test-suites:tox:py35:testPy35Gcp --info
on a PyEnv + Python 3.5.2
{noformat}
...
Custom actions are attached to task
':sdks:python:test-suites:tox:py35:setupVirtualenv'.
Starting process 'command 'virtualenv''. Working directory:
/home/valentyn/projects/beam/beam2/beam/sdks/python/test-suites/tox/py35
Command: virtualenv /home/valentyn/projects/beam/beam2/beam/build/gradleenv/-1
227304285 --python=python3.5
Successfully started process 'command 'virtualenv''
Using base prefix '/home/valentyn/.pyenv/versions/3.5.2'
New python executable in
/home/valentyn/projects/beam/beam2/beam/build/gradleenv/-1227304285/bin/python3.5
...
Also creating executable in
/home/valentyn/projects/beam/beam2/beam/build/gradleenv/-1227304285/bin/python
...
Installing collected packages: toml, six, filelock, zipp, importlib-metadata,
importlib-resources, appdirs, distlib, virtualenv, pluggy, py, tox, grpcio,
protobuf, grpcio-tools, future, mypy-protobuf
Successfully installed appdirs-1.4.3 distlib-0.3.0 filelock-3.0.12
future-0.16.0 grpcio-1.27.2 grpcio-tools-1.14.2 importlib-metadata-1.5.0
importlib-resources-1.2.0 mypy-protobuf-1.18 pluggy-0.13.1 protobuf-3.1
1.3 py-1.8.1 six-1.14.0 toml-0.10.0 tox-3.11.1 virtualenv-20.0.7 zipp-1.2.0
Create distribution tar file apache-beam.tar.gz in
/home/valentyn/projects/beam/beam2/beam/sdks/python/build
:sdks:python:sdist (Thread[Execution worker for ':',5,main]) completed. Took
1.354 secs.
file or directory
'/home/valentyn/projects/beam/beam2/beam/sdks/python/target/.tox/py35-gcp-pytest/log',
not found
:sdks:python:test-suites:tox:py35:testPy35Gcp (Thread[Execution worker for
':',5,main]) started.
> Task :sdks:python:test-suites:tox:py35:testPy35Gcp
>
>
...
py35-gcp-pytest run-test-pre: PYTHONHASHSEED='2031808691'
py35-gcp-pytest run-test-pre: commands[0] | python --version
Python 3.5.2
py35-gcp-pytest run-test-pre: commands[1] | pip --version
pip 20.0.2 from
/home/valentyn/projects/beam/beam2/beam/sdks/python/test-suites/tox/py35/build/srcs/sdks/python/target/.tox-py35-gcp-pytest/py35-gcp-pytest/lib/python3.5/site-packages/pip
(python 3.5)
py35-gcp-pytest run-test-pre: commands[2] | pip check
No broken requirements found.
py35-gcp-pytest run-test-pre: commands[3] |
/home/valentyn/projects/beam/beam2/beam/sdks/python/test-suites/tox/py35/build/srcs/sdks/python/scripts/run_tox_cleanup.sh
py35-gcp-pytest run-test: commands[0] |
/home/valentyn/projects/beam/beam2/beam/sdks/python/test-suites/tox/py35/build/srcs/sdks/python/scripts/run_pytest.sh
py35-gcp-pytest ''
============================= test session starts
==============================
platform linux -- Python 3.5.2, pytest-4.6.9, py-1.8.1, pluggy-0.13.1
cachedir: target/.tox-py35-gcp-pytest/py35-gcp-pytest/.pytest_cache
rootdir:
/home/valentyn/projects/beam/beam2/beam/sdks/python/test-suites/tox/py35/build/srcs/sdks/python,
inifile: pytest.ini
plugins: timeout-1.3.4, xdist-1.31.0, requests-mock-1.7.0, forked-1.1.3
timeout: 600.0s
timeout method: signal
timeout func_only: False
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I
gw0 [3185] / gw1 [3185] / gw2 [3185] / gw3 [3185] / gw4 [3185] / gw5 [3185]
{noformat}
We can see that tests started to run.
> Python precommits flaky with ImportError: cannot import name 'ContextManager'
> -----------------------------------------------------------------------------
>
> Key: BEAM-9427
> URL: https://issues.apache.org/jira/browse/BEAM-9427
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-core, test-failures
> Reporter: Udi Meiri
> Priority: Major
>
> https://builds.apache.org/job/beam_PreCommit_Python_Commit/11469/
> {code}
> 11:51:34 > Task :sdks:python:test-suites:tox:py35:testPy35Gcp FAILED
> 11:51:34 py35-gcp-pytest create:
> /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/sdks/python/test-suites/tox/py35/build/srcs/sdks/python/target/.tox-py35-gcp-pytest/py35-gcp-pytest
> 11:51:34 ERROR: invocation failed (exit code 1), logfile:
> /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/sdks/python/test-suites/tox/py35/build/srcs/sdks/python/target/.tox-py35-gcp-pytest/py35-gcp-pytest/log/py35-gcp-pytest-0.log
> 11:51:34 ================================== log start
> ===================================
> 11:51:34 ImportError: cannot import name 'ContextManager'
> 11:51:34
> 11:51:34 =================================== log end
> ====================================
> 11:51:34 ERROR: InvocationError for command
> /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/build/gradleenv/-1227304285/bin/python3.5
> -m virtualenv --no-download --python
> /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/build/gradleenv/-1227304285/bin/python3.5
> py35-gcp-pytest (exited with code 1)
> 11:51:34 ___________________________________ summary
> ____________________________________
> 11:51:34 ERROR: py35-gcp-pytest: InvocationError for command
> /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/build/gradleenv/-1227304285/bin/python3.5
> -m virtualenv --no-download --python
> /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/build/gradleenv/-1227304285/bin/python3.5
> py35-gcp-pytest (exited with code 1)
> {code}
> {code}
> 11:51:35 > Task :sdks:python:test-suites:tox:py35:testPy35Cython FAILED
> 11:51:35 py35-cython-pytest create:
> /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/sdks/python/test-suites/tox/py35/build/srcs/sdks/python/target/.tox-py35-cython-pytest/py35-cython-pytest
> 11:51:35 ERROR: invocation failed (exit code 1), logfile:
> /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/sdks/python/test-suites/tox/py35/build/srcs/sdks/python/target/.tox-py35-cython-pytest/py35-cython-pytest/log/py35-cython-pytest-0.log
> 11:51:35 ================================== log start
> ===================================
> 11:51:35 ImportError: cannot import name 'ContextManager'
> 11:51:35
> 11:51:35 =================================== log end
> ====================================
> 11:51:35 ERROR: InvocationError for command
> /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/build/gradleenv/-1227304285/bin/python3.5
> -m virtualenv --no-download --python
> /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/build/gradleenv/-1227304285/bin/python3.5
> py35-cython-pytest (exited with code 1)
> 11:51:35 ___________________________________ summary
> ____________________________________
> 11:51:35 ERROR: py35-cython-pytest: InvocationError for command
> /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/build/gradleenv/-1227304285/bin/python3.5
> -m virtualenv --no-download --python
> /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/build/gradleenv/-1227304285/bin/python3.5
> py35-cython-pytest (exited with code 1)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)