fancy-motherboard-24956
03/17/2020, 4:15 PMmaster
. They come from a runtime error in pex.
Here is a repro:
./pants test tests/python/pants_test/backend/jvm/tasks/jvm_compile/zinc:zinc_compile_integration
16:05:07 00:17 [run]
Traceback (most recent call last):
File "/Users/pchevalier/Documents/code/pants/.pants.d/test/pytest-prep/CPython-3.6.4/0de04c112d1f5c996126ea94d80b19cbaccfa5d0/.bootstrap/pex/pex.py", line 391, in execute
working_set = self._activate()
File "/Users/pchevalier/Documents/code/pants/.pants.d/test/pytest-prep/CPython-3.6.4/0de04c112d1f5c996126ea94d80b19cbaccfa5d0/.bootstrap/pex/pex.py", line 89, in _activate
for dist in env.activate():
File "/Users/pchevalier/Documents/code/pants/.pants.d/test/pytest-prep/CPython-3.6.4/0de04c112d1f5c996126ea94d80b19cbaccfa5d0/.bootstrap/pex/environment.py", line 232, in activate
self._working_set = self._activate()
File "/Users/pchevalier/Documents/code/pants/.pants.d/test/pytest-prep/CPython-3.6.4/0de04c112d1f5c996126ea94d80b19cbaccfa5d0/.bootstrap/pex/environment.py", line 393, in _activate
resolved = self._resolve(working_set, all_reqs)
File "/Users/pchevalier/Documents/code/pants/.pants.d/test/pytest-prep/CPython-3.6.4/0de04c112d1f5c996126ea94d80b19cbaccfa5d0/.bootstrap/pex/environment.py", line 275, in _resolve
distributions_by_key[distribution.as_requirement().key].append(distribution)
AttributeError: 'NoneType' object has no attribute 'as_requirement'
tests/python/pants_test/backend/jvm/tasks/jvm_compile/zinc:zinc_compile_integration..... NOT RUN
FAILURE
Has anyone seen this/know what to do about it?average-vr-56795
03/17/2020, 4:17 PMfancy-motherboard-24956
03/17/2020, 4:17 PM./pants --no-v1 --v2 test tests/python/pants_test/backend/jvm/tasks/jvm_compile/zinc:zinc_compile_integration
14:46:27 [INFO] Starting tests: tests/python/pants_test/backend/jvm/tasks/jvm_compile/zinc:zinc_compile_integration
15:03:46 [INFO] Tests failed: tests/python/pants_test/backend/jvm/tasks/jvm_compile/zinc:zinc_compile_integration
tests/python/pants_test/backend/jvm/tasks/jvm_compile/zinc:zinc_compile_integration stdout:
Exceeded timeout of 900s for local process execution, Run Pytest for tests/python/pants_test/backend/jvm/tasks/jvm_compile/zinc:zinc_compile_integration
tests/python/pants_test/backend/jvm/tasks/jvm_compile/zinc:zinc_compile_integration..... FAILURE
Tests failed
hundreds-father-404
03/17/2020, 5:08 PMfancy-motherboard-24956
03/17/2020, 5:08 PMhundreds-father-404
03/17/2020, 5:17 PM./v2
is an alias for ./pants --no-v1 --v2
!)fancy-motherboard-24956
03/17/2020, 5:21 PM./pants test tests/python/pants_test/backend/docgen/tasks:
for instance, which doesn’t depend on the jvmhundreds-father-404
03/17/2020, 5:59 PM./pants test tests/python/pants_test/backend/jvm/tasks/jvm_compile/zinc:zinc_compile_integration
worked fine minus 2 tests that needed JDK 8fancy-motherboard-24956
03/18/2020, 11:14 AMrm -rf ~/.cache/pants .pants.d
git clean -fdx
./pants clean-all
Note that at some point before the git clean -fdx
, I hit another failure with this line: ImportError: bad magic number in 'pex.vendor._vendored.setuptools': b'\x03\xf3\r\n'
so if you hit this, git clean -fdx
and ./pants clean-all
may get you back to a working state.hundreds-father-404
03/18/2020, 2:15 PM