==================== FAILURES ==================== JUnitRunnerTest.test_junit_run_target_cwd_trumps_chroot self = args = (), kwargs = {} def wrapper(self, *args, **kwargs): with self.cache_check(expected_num_artifacts=expected_num_artifacts): > test_fn(self, *args, **kwargs) pants_test/task_test_base.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pants_test/backend/jvm/tasks/test_junit_run.py:467: in test_junit_run_target_cwd_trumps_chroot target_name='tests/java/org/pantsbuild/foo:foo_test') pants_test/backend/jvm/tasks/test_junit_run.py:167: in _execute_junit_runner self.execute(context) pants_test/jvm/jvm_tool_task_test_base.py:123: in execute task.execute() pants/task/testrunner_task_mixin.py:139: in execute self._execute(all_targets) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = all_targets = [Resources(some_resources:some_resources), JUnitTests(tests/java/org/pantsbuild/foo:foo_test), Files(config/org/pantsbuild/foo:sentinel), JarLibrary(//:junit_library)] def _execute(self, all_targets): test_targets = self._get_test_targets() if not test_targets: return self.context.release_lock() per_target = not self.get_options().fast fail_fast = self.get_options().fail_fast results = {} failure = False with self.partitions(per_target, all_targets, test_targets) as partitions: for (partition, args) in partitions(): try: rv = self._run_partition(fail_fast, partition, *args) except ErrorWhileTesting as e: rv = self.result_class.from_error(e) results[partition] = rv if not rv.success: failure = True if fail_fast: break for partition in sorted(results): rv = results[partition] failed_targets = set(rv.failed_targets) for target in partition: if target in failed_targets: log = self.context.log.error result = rv else: log = self.context.log.info result = self.result_class.successful() log('{0:80}.....{1:>10}'.format(target.address.reference(), result)) msgs = [str(_rv) for _rv in results.values() if not _rv.success] failed_targets = [target for _rv in results.values() if not _rv.success for target in _rv.failed_targets] if len(failed_targets) > 0: raise ErrorWhileTesting('\n'.join(msgs), failed_targets=failed_targets) elif failure: # A low-level test execution failure occurred before tests were run. > raise TaskError() E TaskError pants/task/testrunner_task_mixin.py:481: TaskError -------------- Captured stdout call -------------- :: loading settings :: url = jar:file:/Users/earellano/.ivy2/pants/org.apache.ivy/ivy/jars/ivy-2.4.0.jar!/org/apache/ivy/core/settings/ivysettings.xml :: resolving dependencies :: junit#junit-dep-caller;working confs: [default] found junit#junit-dep;4.10 in public found org.hamcrest#hamcrest-core;1.1 in public :: resolution report :: resolve 67ms :: artifacts dl 6ms --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | default | 2 | 0 | 0 | 0 || 4 | 0 | --------------------------------------------------------------------- cachepath output to /private/var/folders/3q/rl02b2k936bb2x8mqfg48t180000gn/T/tmpSrZeTy_BUILD_ROOT/tests/java/org/pantsbuild/foo/junit.classpath -------------- Captured stderr call -------------- Starting workunit cache . Starting workunit run Error: Could not find or load main class org.pantsbuild.tools.junit.ConsoleRunner WorkUnit outcome: FAILURE --------------- Captured log call ---------------- jvm_platform.py 112 WARN No default jvm platform is defined. JUnitRunnerTest.test_junit_run_target_cwd_trumps_cwd_option self = args = (), kwargs = {} def wrapper(self, *args, **kwargs): with self.cache_check(expected_num_artifacts=expected_num_artifacts): > test_fn(self, *args, **kwargs) pants_test/task_test_base.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pants_test/backend/jvm/tasks/test_junit_run.py:497: in test_junit_run_target_cwd_trumps_cwd_option target_name='tests/java/org/pantsbuild/foo:foo_test') pants_test/backend/jvm/tasks/test_junit_run.py:167: in _execute_junit_runner self.execute(context) pants_test/jvm/jvm_tool_task_test_base.py:123: in execute task.execute() pants/task/testrunner_task_mixin.py:139: in execute self._execute(all_targets) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = all_targets = [Resources(some_resources:some_resources), JUnitTests(tests/java/org/pantsbuild/foo:foo_test), JarLibrary(//:junit_library)] def _execute(self, all_targets): test_targets = self._get_test_targets() if not test_targets: return self.context.release_lock() per_target = not self.get_options().fast fail_fast = self.get_options().fail_fast results = {} failure = False with self.partitions(per_target, all_targets, test_targets) as partitions: for (partition, args) in partitions(): try: rv = self._run_partition(fail_fast, partition, *args) except ErrorWhileTesting as e: rv = self.result_class.from_error(e) results[partition] = rv if not rv.success: failure = True if fail_fast: break for partition in sorted(results): rv = results[partition] failed_targets = set(rv.failed_targets) for target in partition: if target in failed_targets: log = self.context.log.error result = rv else: log = self.context.log.info result = self.result_class.successful() log('{0:80}.....{1:>10}'.format(target.address.reference(), result)) msgs = [str(_rv) for _rv in results.values() if not _rv.success] failed_targets = [target for _rv in results.values() if not _rv.success for target in _rv.failed_targets] if len(failed_targets) > 0: raise ErrorWhileTesting('\n'.join(msgs), failed_targets=failed_targets) elif failure: # A low-level test execution failure occurred before tests were run. > raise TaskError() E TaskError pants/task/testrunner_task_mixin.py:481: TaskError -------------- Captured stdout call -------------- :: loading settings :: url = jar:file:/Users/earellano/.ivy2/pants/org.apache.ivy/ivy/jars/ivy-2.4.0.jar!/org/apache/ivy/core/settings/ivysettings.xml :: resolving dependencies :: junit#junit-dep-caller;working confs: [default] found junit#junit-dep;4.10 in public found org.hamcrest#hamcrest-core;1.1 in public :: resolution report :: resolve 71ms :: artifacts dl 5ms --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | default | 2 | 0 | 0 | 0 || 4 | 0 | --------------------------------------------------------------------- cachepath output to /private/var/folders/3q/rl02b2k936bb2x8mqfg48t180000gn/T/tmpSrZeTy_BUILD_ROOT/tests/java/org/pantsbuild/foo/junit.classpath -------------- Captured stderr call -------------- Starting workunit cache . Starting workunit run Error: Could not find or load main class org.pantsbuild.tools.junit.ConsoleRunner WorkUnit outcome: FAILURE --------------- Captured log call ---------------- jvm_platform.py 112 WARN No default jvm platform is defined. PythonDistributionIntegrationTest.test_pants_resolves_local_dists_for_current_platform_only self = def test_pants_resolves_local_dists_for_current_platform_only(self): # Test that pants will override pants.ini platforms config when building # or running a target that depends on native (c or cpp) sources. with temporary_dir() as tmp_dir: pex = os.path.join(tmp_dir, 'main.pex') pants_ini_config = {'python-setup': {'platforms': ['current', 'linux-x86_64']}} # Clean all to rebuild requirements pex. command=[ '--pants-distdir={}'.format(tmp_dir), 'run', '{}:main'.format(self.fasthello_project)] pants_run = self.run_pants(command=command, config=pants_ini_config) > self.assert_success(pants_run) pants_test/backend/python/tasks/test_python_distribution_integration.py:132: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pants_test/pants_run_integration_test.py:392: in assert_success self.assert_result(pants_run, self.PANTS_SUCCESS_CODE, expected=True, msg=msg) pants_test/pants_run_integration_test.py:413: in assert_result assertion(value, pants_run.returncode, error_msg) E AssertionError: /Users/earellano/code/pants/pants --no-pantsrc --pants-workdir=/Users/earellano/code/pants/.pants.d/tmp/tmpvytl2R.pants.d --kill-nailguns --print-exception-stacktrace=True --pants-config-files=/Users/earellano/code/pants/.pants.d/tmp/tmpvytl2R.pants.d/pants.ini --pants-distdir=/var/folders/3q/rl02b2k936bb2x8mqfg48t180000gn/T/tmpp7QSC6 run examples/src/python/example/python_distribution/hello/fasthello:main E returncode: 1 E stdout: E E 11:06:39 00:00 [main] E (To run a reporting server: ./pants server) E 11:06:40 00:01 [setup] E 11:06:40 00:01 [parse] E Executing tasks in goals: native-compile -> link -> bootstrap -> imports -> unpack-jars -> deferred-sources -> jvm-platform-validate -> gen -> resolve -> resources -> compile -> pyprep -> binary -> run E 11:06:40 00:01 [native-compile] E 11:06:40 00:01 [c-for-ctypes] E 11:06:40 00:01 [cpp-for-ctypes] E 11:06:40 00:01 [link] E 11:06:40 00:01 [shared-libraries] E 11:06:40 00:01 [bootstrap] E 11:06:40 00:01 [substitute-aliased-targets] E 11:06:40 00:01 [jar-dependency-management] E 11:06:40 00:01 [bootstrap-jvm-tools] E 11:06:40 00:01 [provide-tools-jar] E 11:06:40 00:01 [imports] E 11:06:40 00:01 [ivy-imports] E 11:06:40 00:01 [unpack-jars] E 11:06:40 00:01 [unpack-jars] E 11:06:41 00:02 [deferred-sources] E 11:06:41 00:02 [deferred-sources] E 11:06:41 00:02 [jvm-platform-validate] E 11:06:41 00:02 [jvm-platform-validate] E 11:06:41 00:02 [gen] E 11:06:41 00:02 [antlr-java] E 11:06:41 00:02 [antlr-py] E 11:06:41 00:02 [jaxb] E 11:06:41 00:02 [protoc] E 11:06:41 00:02 [ragel] E 11:06:41 00:02 [thrift-java] E 11:06:41 00:02 [thrift-py] E 11:06:41 00:02 [wire] E 11:06:41 00:02 [avro-java] E 11:06:41 00:02 [go-thrift] E 11:06:41 00:02 [go-protobuf] E 11:06:41 00:02 [jax-ws] E 11:06:41 00:02 [scrooge] E 11:06:41 00:02 [thrifty] E 11:06:41 00:02 [resolve] E 11:06:41 00:02 [ivy] E 11:06:41 00:02 [coursier] E 11:06:41 00:02 [go] E 11:06:41 00:02 [scala-js-compile] E 11:06:41 00:02 [scala-js-link] E 11:06:41 00:02 [node] E 11:06:41 00:02 [resources] E 11:06:41 00:02 [prepare] E 11:06:41 00:02 [services] E 11:06:41 00:02 [compile] E 11:06:41 00:02 [node] E 11:06:41 00:02 [compile-jvm-prep-command] E 11:06:41 00:02 [jvm_prep_command] E 11:06:41 00:02 [compile-prep-command] E 11:06:41 00:02 [compile] E 11:06:41 00:02 [zinc] E 11:06:41 00:02 [javac] E 11:06:41 00:02 [cpp] E 11:06:41 00:02 [errorprone] E 11:06:41 00:02 [findbugs] E 11:06:41 00:02 [go] E 11:06:41 00:02 [pyprep] E 11:06:41 00:02 [interpreter] E 11:06:43 00:04 [build-local-dists] E Invalidated 1 target. E 11:06:45 00:06 [requirements] E Invalidated 1 target. E 11:06:45 00:06 [sources] E Invalidated 1 target. E 11:06:46 00:07 [binary] E 11:06:46 00:07 [binary-jvm-prep-command] E 11:06:46 00:07 [jvm_prep_command] E 11:06:46 00:07 [binary-prep-command] E 11:06:46 00:07 [py] E Invalidated 1 target. E created pex ../../../../var/folders/3q/rl02b2k936bb2x8mqfg48t180000gn/T/tmpp7QSC6/main.pex E 11:06:46 00:07 [py-wheels] E created wheel ../../../../var/folders/3q/rl02b2k936bb2x8mqfg48t180000gn/T/tmpp7QSC6/fasthello-1.0.0-cp27-cp27m-macosx_10_13_x86_64.whl E 11:06:46 00:07 [jvm] E 11:06:46 00:07 [dup] E 11:06:46 00:07 [cpplib] E 11:06:46 00:07 [cpp-library] E 11:06:46 00:07 [cpp] E 11:06:46 00:07 [cpp-binary] E 11:06:46 00:07 [go] E 11:06:46 00:07 [run] E 11:06:46 00:07 [py] E Invalidated 3 targets. E 11:06:46 00:07 [run] E E FAILURE: /usr/bin/python example.python_distribution.hello.fasthello.main ... exited non-zero (1) E E E Waiting for background workers to finish. E 11:06:47 00:08 [complete] E FAILURE E stderr: E WARN] /Users/earellano/code/pants/src/python/pants/build_graph/target.py:108: DeprecationWarning: DEPRECATED: The source argument in targets is deprecated - it gets automatically promoted to sources. Target python_binary should just use a sources argument. No BUILD files need changing. The source argument will stop being populated - will be removed in version 1.10.0.dev0. E cls.global_instance().check_unknown(target, kwargs, payload) E E Failed to execute PEX file, missing macosx_10_13_x86_64-cp-27-cp27m compatible dependencies for: E fasthello PythonDistributionIntegrationTest.test_pants_run self = def test_pants_run(self): with temporary_dir() as tmp_dir: command=[ '--pants-distdir={}'.format(tmp_dir), 'run', '{}:main'.format(self.fasthello_project)] pants_run = self.run_pants(command=command) > self.assert_success(pants_run) pants_test/backend/python/tasks/test_python_distribution_integration.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pants_test/pants_run_integration_test.py:392: in assert_success self.assert_result(pants_run, self.PANTS_SUCCESS_CODE, expected=True, msg=msg) pants_test/pants_run_integration_test.py:413: in assert_result assertion(value, pants_run.returncode, error_msg) E AssertionError: /Users/earellano/code/pants/pants --no-pantsrc --pants-workdir=/Users/earellano/code/pants/.pants.d/tmp/tmpkS40FK.pants.d --kill-nailguns --print-exception-stacktrace=True --pants-distdir=/var/folders/3q/rl02b2k936bb2x8mqfg48t180000gn/T/tmp7JCEpm run examples/src/python/example/python_distribution/hello/fasthello:main E returncode: 1 E stdout: E E 11:06:48 00:00 [main] E (To run a reporting server: ./pants server) E 11:06:49 00:01 [setup] E 11:06:49 00:01 [parse] E Executing tasks in goals: native-compile -> link -> bootstrap -> imports -> unpack-jars -> deferred-sources -> gen -> jvm-platform-validate -> resolve -> resources -> pyprep -> compile -> binary -> run E 11:06:49 00:01 [native-compile] E 11:06:49 00:01 [c-for-ctypes] E 11:06:49 00:01 [cpp-for-ctypes] E 11:06:49 00:01 [link] E 11:06:50 00:02 [shared-libraries] E 11:06:50 00:02 [bootstrap] E 11:06:50 00:02 [substitute-aliased-targets] E 11:06:50 00:02 [jar-dependency-management] E 11:06:50 00:02 [bootstrap-jvm-tools] E 11:06:50 00:02 [provide-tools-jar] E 11:06:50 00:02 [imports] E 11:06:50 00:02 [ivy-imports] E 11:06:50 00:02 [unpack-jars] E 11:06:50 00:02 [unpack-jars] E 11:06:50 00:02 [deferred-sources] E 11:06:50 00:02 [deferred-sources] E 11:06:50 00:02 [gen] E 11:06:50 00:02 [antlr-java] E 11:06:50 00:02 [antlr-py] E 11:06:50 00:02 [jaxb] E 11:06:50 00:02 [protoc] E 11:06:50 00:02 [ragel] E 11:06:50 00:02 [thrift-java] E 11:06:50 00:02 [thrift-py] E 11:06:50 00:02 [wire] E 11:06:50 00:02 [avro-java] E 11:06:50 00:02 [go-thrift] E 11:06:50 00:02 [go-protobuf] E 11:06:50 00:02 [jax-ws] E 11:06:50 00:02 [scrooge] E 11:06:50 00:02 [thrifty] E 11:06:50 00:02 [jvm-platform-validate] E 11:06:50 00:02 [jvm-platform-validate] E 11:06:50 00:02 [resolve] E 11:06:50 00:02 [ivy] E 11:06:50 00:02 [coursier] E 11:06:50 00:02 [go] E 11:06:50 00:02 [scala-js-compile] E 11:06:50 00:02 [scala-js-link] E 11:06:50 00:02 [node] E 11:06:50 00:02 [resources] E 11:06:50 00:02 [prepare] E 11:06:50 00:02 [services] E 11:06:50 00:02 [pyprep] E 11:06:50 00:02 [interpreter] E 11:06:52 00:04 [build-local-dists] E Invalidated 1 target. E 11:06:54 00:06 [requirements] E Invalidated 1 target. E 11:06:54 00:06 [sources] E Invalidated 1 target. E 11:06:54 00:06 [compile] E 11:06:54 00:06 [node] E 11:06:54 00:06 [compile-jvm-prep-command] E 11:06:54 00:06 [jvm_prep_command] E 11:06:54 00:06 [compile-prep-command] E 11:06:54 00:06 [compile] E 11:06:54 00:06 [zinc] E 11:06:54 00:06 [javac] E 11:06:54 00:06 [cpp] E 11:06:54 00:06 [errorprone] E 11:06:54 00:06 [findbugs] E 11:06:54 00:06 [go] E 11:06:54 00:06 [binary] E 11:06:54 00:06 [binary-jvm-prep-command] E 11:06:54 00:06 [jvm_prep_command] E 11:06:54 00:06 [binary-prep-command] E 11:06:54 00:06 [py] E Invalidated 1 target. E created pex ../../../../var/folders/3q/rl02b2k936bb2x8mqfg48t180000gn/T/tmp7JCEpm/main.pex E 11:06:55 00:07 [py-wheels] E created wheel ../../../../var/folders/3q/rl02b2k936bb2x8mqfg48t180000gn/T/tmp7JCEpm/fasthello-1.0.0-cp27-cp27m-macosx_10_13_x86_64.whl E 11:06:55 00:07 [jvm] E 11:06:55 00:07 [dup] E 11:06:55 00:07 [cpplib] E 11:06:55 00:07 [cpp-library] E 11:06:55 00:07 [cpp] E 11:06:55 00:07 [cpp-binary] E 11:06:55 00:07 [go] E 11:06:55 00:07 [run] E 11:06:55 00:07 [py] E Invalidated 3 targets. E 11:06:55 00:07 [run] E E FAILURE: /usr/bin/python example.python_distribution.hello.fasthello.main ... exited non-zero (1) E E E Waiting for background workers to finish. E 11:06:56 00:08 [complete] E FAILURE E stderr: E WARN] /Users/earellano/code/pants/src/python/pants/build_graph/target.py:108: DeprecationWarning: DEPRECATED: The source argument in targets is deprecated - it gets automatically promoted to sources. Target python_binary should just use a sources argument. No BUILD files need changing. The source argument will stop being populated - will be removed in version 1.10.0.dev0. E cls.global_instance().check_unknown(target, kwargs, payload) E E Failed to execute PEX file, missing macosx_10_13_x86_64-cp-27-cp27m compatible dependencies for: E fasthello PythonDistributionIntegrationTest.test_pants_test self = def test_pants_test(self): with temporary_dir() as tmp_dir: wheel_glob = os.path.join(tmp_dir, 'fasthello-1.0.0-*.whl') command=[ '--pants-distdir={}'.format(tmp_dir), 'test', '{}:fasthello'.format(self.fasthello_tests)] pants_run = self.run_pants(command=command) > self.assert_success(pants_run) pants_test/backend/python/tasks/test_python_distribution_integration.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pants_test/pants_run_integration_test.py:392: in assert_success self.assert_result(pants_run, self.PANTS_SUCCESS_CODE, expected=True, msg=msg) pants_test/pants_run_integration_test.py:413: in assert_result assertion(value, pants_run.returncode, error_msg) E AssertionError: /Users/earellano/code/pants/pants --no-pantsrc --pants-workdir=/Users/earellano/code/pants/.pants.d/tmp/tmpIMOlxA.pants.d --kill-nailguns --print-exception-stacktrace=True --pants-distdir=/var/folders/3q/rl02b2k936bb2x8mqfg48t180000gn/T/tmpkM01DH test examples/tests/python/example/python_distribution/hello/test_fasthello:fasthello E returncode: 1 E stdout: E E 11:06:57 00:00 [main] E (To run a reporting server: ./pants server) E 11:06:58 00:01 [setup] E 11:06:58 00:01 [parse] E Executing tasks in goals: jvm-platform-validate -> native-compile -> bootstrap -> imports -> unpack-jars -> deferred-sources -> link -> gen -> resolve -> resources -> compile -> pyprep -> test E 11:06:58 00:01 [jvm-platform-validate] E 11:06:58 00:01 [jvm-platform-validate] E 11:06:58 00:01 [native-compile] E 11:06:58 00:01 [c-for-ctypes] E 11:06:58 00:01 [cpp-for-ctypes] E 11:06:58 00:01 [bootstrap] E 11:06:58 00:01 [substitute-aliased-targets] E 11:06:58 00:01 [jar-dependency-management] E 11:06:58 00:01 [bootstrap-jvm-tools] E 11:06:58 00:01 [provide-tools-jar] E 11:06:58 00:01 [imports] E 11:06:58 00:01 [ivy-imports] E 11:06:58 00:01 [unpack-jars] E 11:06:58 00:01 [unpack-jars] E 11:06:58 00:01 [deferred-sources] E 11:06:58 00:01 [deferred-sources] E 11:06:58 00:01 [link] E 11:06:58 00:01 [shared-libraries] E 11:06:58 00:01 [gen] E 11:06:58 00:01 [antlr-java] E 11:06:58 00:01 [antlr-py] E 11:06:58 00:01 [jaxb] E 11:06:58 00:01 [protoc] E 11:06:58 00:01 [ragel] E 11:06:58 00:01 [thrift-java] E 11:06:58 00:01 [thrift-py] E 11:06:59 00:02 [wire] E 11:06:59 00:02 [avro-java] E 11:06:59 00:02 [go-thrift] E 11:06:59 00:02 [go-protobuf] E 11:06:59 00:02 [jax-ws] E 11:06:59 00:02 [scrooge] E 11:06:59 00:02 [thrifty] E 11:06:59 00:02 [resolve] E 11:06:59 00:02 [ivy] E 11:06:59 00:02 [coursier] E 11:06:59 00:02 [go] E 11:06:59 00:02 [scala-js-compile] E 11:06:59 00:02 [scala-js-link] E 11:06:59 00:02 [node] E 11:06:59 00:02 [resources] E 11:06:59 00:02 [prepare] E 11:06:59 00:02 [services] E 11:06:59 00:02 [compile] E 11:06:59 00:02 [node] E 11:06:59 00:02 [compile-jvm-prep-command] E 11:06:59 00:02 [jvm_prep_command] E 11:06:59 00:02 [compile-prep-command] E 11:06:59 00:02 [compile] E 11:06:59 00:02 [zinc] E 11:06:59 00:02 [javac] E 11:06:59 00:02 [cpp] E 11:06:59 00:02 [errorprone] E 11:06:59 00:02 [findbugs] E 11:06:59 00:02 [go] E 11:06:59 00:02 [pyprep] E 11:06:59 00:02 [interpreter] E 11:07:00 00:03 [build-local-dists] E Invalidated 1 target. E 11:07:02 00:05 [requirements] E Invalidated 1 target. E 11:07:02 00:05 [sources] E Invalidated 1 target. E 11:07:02 00:05 [test] E 11:07:02 00:05 [test-jvm-prep-command] E 11:07:02 00:05 [jvm_prep_command] E 11:07:02 00:05 [test-prep-command] E 11:07:02 00:05 [test] E 11:07:02 00:05 [pytest-prep] E Invalidated 3 targets. E 11:07:05 00:08 [pytest] E Invalidated 1 target. E scrubbed PYTHONPATH=/Users/earellano/code/pants/src/python: from py.test environment E 11:07:05 00:08 [run] E Failed to execute PEX file, missing macosx_10_13_x86_64-cp-27-cp27m compatible dependencies for: E fasthello E E examples/tests/python/example/python_distribution/hello/test_fasthello:fasthello..... SUCCESS E FAILURE E E E Waiting for background workers to finish. E 11:07:06 00:09 [complete] E FAILURE E stderr: PythonDistributionIntegrationTest.test_pants_tests_local_dists_for_current_platform_only self = def test_pants_tests_local_dists_for_current_platform_only(self): platform_string = Platform.create().resolve_platform_specific({ 'darwin': lambda: 'macosx-10.12-x86_64', 'linux': lambda: 'linux-x86_64', }) # Use a platform-specific string for testing because the test goal # requires the coverage package and the pex resolver raises an Untranslatable error when # attempting to translate the coverage sdist for incompatible platforms. pants_ini_config = {'python-setup': {'platforms': [platform_string]}} # Clean all to rebuild requirements pex. with temporary_dir() as tmp_dir: command=[ '--pants-distdir={}'.format(tmp_dir), 'clean-all', 'test', '{}:fasthello'.format(self.fasthello_tests)] pants_run = self.run_pants(command=command, config=pants_ini_config) > self.assert_success(pants_run) pants_test/backend/python/tasks/test_python_distribution_integration.py:160: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pants_test/pants_run_integration_test.py:392: in assert_success self.assert_result(pants_run, self.PANTS_SUCCESS_CODE, expected=True, msg=msg) pants_test/pants_run_integration_test.py:413: in assert_result assertion(value, pants_run.returncode, error_msg) E AssertionError: /Users/earellano/code/pants/pants --no-pantsrc --pants-workdir=/Users/earellano/code/pants/.pants.d/tmp/tmpFxRN4Z.pants.d --kill-nailguns --print-exception-stacktrace=True --pants-config-files=/Users/earellano/code/pants/.pants.d/tmp/tmpFxRN4Z.pants.d/pants.ini --pants-distdir=/var/folders/3q/rl02b2k936bb2x8mqfg48t180000gn/T/tmpTUSaBc clean-all test examples/tests/python/example/python_distribution/hello/test_fasthello:fasthello E returncode: 1 E stdout: E E 11:07:07 00:00 [main] E (To run a reporting server: ./pants server) E 11:07:07 00:00 [setup] E 11:07:07 00:00 [parse] E Executing tasks in goals: clean-all -> native-compile -> link -> bootstrap -> imports -> unpack-jars -> jvm-platform-validate -> deferred-sources -> gen -> resolve -> resources -> pyprep -> compile -> test E 11:07:08 00:01 [clean-all] E 11:07:08 00:01 [ng-killall] E 11:07:08 00:01 [kill-pantsd] E 11:07:08 00:01 [clean-all] E 11:07:08 00:01 [native-compile] E 11:07:08 00:01 [c-for-ctypes] E 11:07:08 00:01 [cpp-for-ctypes] E 11:07:08 00:01 [link] E 11:07:08 00:01 [shared-libraries] E 11:07:08 00:01 [bootstrap] E 11:07:08 00:01 [substitute-aliased-targets] E 11:07:08 00:01 [jar-dependency-management] E 11:07:08 00:01 [bootstrap-jvm-tools] E 11:07:08 00:01 [provide-tools-jar] E 11:07:08 00:01 [imports] E 11:07:08 00:01 [ivy-imports] E 11:07:08 00:01 [unpack-jars] E 11:07:08 00:01 [unpack-jars] E 11:07:08 00:01 [jvm-platform-validate] E 11:07:08 00:01 [jvm-platform-validate] E 11:07:08 00:01 [deferred-sources] E 11:07:08 00:01 [deferred-sources] E 11:07:08 00:01 [gen] E 11:07:08 00:01 [antlr-java] E 11:07:08 00:01 [antlr-py] E 11:07:08 00:01 [jaxb] E 11:07:08 00:01 [protoc] E 11:07:08 00:01 [ragel] E 11:07:08 00:01 [thrift-java] E 11:07:08 00:01 [thrift-py] E 11:07:08 00:01 [wire] E 11:07:08 00:01 [avro-java] E 11:07:08 00:01 [go-thrift] E 11:07:08 00:01 [go-protobuf] E 11:07:08 00:01 [jax-ws] E 11:07:08 00:01 [scrooge] E 11:07:08 00:01 [thrifty] E 11:07:08 00:01 [resolve] E 11:07:08 00:01 [ivy] E 11:07:08 00:01 [coursier] E 11:07:08 00:01 [go] E 11:07:08 00:01 [scala-js-compile] E 11:07:08 00:01 [scala-js-link] E 11:07:08 00:01 [node] E 11:07:08 00:01 [resources] E 11:07:08 00:01 [prepare] E 11:07:08 00:01 [services] E 11:07:08 00:01 [pyprep] E 11:07:08 00:01 [interpreter] E 11:07:10 00:03 [build-local-dists] E Invalidated 1 target. E 11:07:11 00:04 [requirements] E Invalidated 1 target. E 11:07:12 00:05 [sources] E Invalidated 1 target. E 11:07:12 00:05 [compile] E 11:07:12 00:05 [node] E 11:07:12 00:05 [compile-jvm-prep-command] E 11:07:12 00:05 [jvm_prep_command] E 11:07:12 00:05 [compile-prep-command] E 11:07:12 00:05 [compile] E 11:07:12 00:05 [zinc] E 11:07:12 00:05 [javac] E 11:07:12 00:05 [cpp] E 11:07:12 00:05 [errorprone] E 11:07:12 00:05 [findbugs] E 11:07:12 00:05 [go] E 11:07:12 00:05 [test] E 11:07:12 00:05 [test-jvm-prep-command] E 11:07:12 00:05 [jvm_prep_command] E 11:07:12 00:05 [test-prep-command] E 11:07:12 00:05 [test] E 11:07:12 00:05 [pytest-prep] E Invalidated 3 targets. E 11:07:15 00:08 [pytest] E Invalidated 1 target. E scrubbed PYTHONPATH=/Users/earellano/code/pants/src/python: from py.test environment E 11:07:15 00:08 [run] E Failed to execute PEX file, missing macosx_10_13_x86_64-cp-27-cp27m compatible dependencies for: E fasthello E E examples/tests/python/example/python_distribution/hello/test_fasthello:fasthello..... SUCCESS E FAILURE E E E Waiting for background workers to finish. E 11:07:15 00:08 [complete] E FAILURE E stderr: E INFO] For async removal, run `./pants clean-all --async` PythonDistributionIntegrationTest.test_with_install_requires self = def test_with_install_requires(self): with temporary_dir() as tmp_dir: pex = os.path.join(tmp_dir, 'main_with_no_conflict.pex') command=[ '--pants-distdir={}'.format(tmp_dir), 'run', '{}:main_with_no_conflict'.format(self.fasthello_install_requires)] pants_run = self.run_pants(command=command) > self.assert_success(pants_run) pants_test/backend/python/tasks/test_python_distribution_integration.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pants_test/pants_run_integration_test.py:392: in assert_success self.assert_result(pants_run, self.PANTS_SUCCESS_CODE, expected=True, msg=msg) pants_test/pants_run_integration_test.py:413: in assert_result assertion(value, pants_run.returncode, error_msg) E AssertionError: /Users/earellano/code/pants/pants --no-pantsrc --pants-workdir=/Users/earellano/code/pants/.pants.d/tmp/tmpzzNk3M.pants.d --kill-nailguns --print-exception-stacktrace=True --pants-distdir=/var/folders/3q/rl02b2k936bb2x8mqfg48t180000gn/T/tmp0q6z07 run testprojects/src/python/python_distribution/fasthello_with_install_requires:main_with_no_conflict E returncode: 1 E stdout: E E 11:07:57 00:00 [main] E (To run a reporting server: ./pants server) E 11:07:57 00:00 [setup] E 11:07:57 00:00 [parse] E Executing tasks in goals: native-compile -> link -> bootstrap -> imports -> unpack-jars -> deferred-sources -> gen -> jvm-platform-validate -> resolve -> pyprep -> resources -> compile -> binary -> run E 11:07:58 00:01 [native-compile] E 11:07:58 00:01 [c-for-ctypes] E 11:07:58 00:01 [cpp-for-ctypes] E 11:07:58 00:01 [link] E 11:07:58 00:01 [shared-libraries] E 11:07:58 00:01 [bootstrap] E 11:07:58 00:01 [substitute-aliased-targets] E 11:07:58 00:01 [jar-dependency-management] E 11:07:58 00:01 [bootstrap-jvm-tools] E 11:07:58 00:01 [provide-tools-jar] E 11:07:58 00:01 [imports] E 11:07:58 00:01 [ivy-imports] E 11:07:58 00:01 [unpack-jars] E 11:07:58 00:01 [unpack-jars] E 11:07:58 00:01 [deferred-sources] E 11:07:58 00:01 [deferred-sources] E 11:07:58 00:01 [gen] E 11:07:58 00:01 [antlr-java] E 11:07:58 00:01 [antlr-py] E 11:07:58 00:01 [jaxb] E 11:07:58 00:01 [protoc] E 11:07:58 00:01 [ragel] E 11:07:58 00:01 [thrift-java] E 11:07:58 00:01 [thrift-py] E 11:07:58 00:01 [wire] E 11:07:58 00:01 [avro-java] E 11:07:58 00:01 [go-thrift] E 11:07:58 00:01 [go-protobuf] E 11:07:58 00:01 [jax-ws] E 11:07:58 00:01 [scrooge] E 11:07:58 00:01 [thrifty] E 11:07:58 00:01 [jvm-platform-validate] E 11:07:58 00:01 [jvm-platform-validate] E 11:07:58 00:01 [resolve] E 11:07:58 00:01 [ivy] E 11:07:58 00:01 [coursier] E 11:07:58 00:01 [go] E 11:07:58 00:01 [scala-js-compile] E 11:07:58 00:01 [scala-js-link] E 11:07:58 00:01 [node] E 11:07:58 00:01 [pyprep] E 11:07:58 00:01 [interpreter] E 11:07:59 00:02 [build-local-dists] E Invalidated 1 target. E 11:08:00 00:03 [requirements] E Invalidated 1 target. E 11:08:02 00:05 [sources] E Invalidated 1 target. E 11:08:02 00:05 [resources] E 11:08:02 00:05 [prepare] E 11:08:02 00:05 [services] E 11:08:02 00:05 [compile] E 11:08:02 00:05 [node] E 11:08:02 00:05 [compile-jvm-prep-command] E 11:08:02 00:05 [jvm_prep_command] E 11:08:02 00:05 [compile-prep-command] E 11:08:02 00:05 [compile] E 11:08:02 00:05 [zinc] E 11:08:02 00:05 [javac] E 11:08:02 00:05 [cpp] E 11:08:02 00:05 [errorprone] E 11:08:02 00:05 [findbugs] E 11:08:02 00:05 [go] E 11:08:02 00:05 [binary] E 11:08:02 00:05 [binary-jvm-prep-command] E 11:08:02 00:05 [jvm_prep_command] E 11:08:02 00:05 [binary-prep-command] E 11:08:02 00:05 [py] E Invalidated 1 target. E created pex ../../../../var/folders/3q/rl02b2k936bb2x8mqfg48t180000gn/T/tmp0q6z07/main_with_no_conflict.pex E 11:08:05 00:08 [py-wheels] E created wheel ../../../../var/folders/3q/rl02b2k936bb2x8mqfg48t180000gn/T/tmp0q6z07/fasthello_test-1.0.0-cp27-cp27m-macosx_10_13_x86_64.whl E 11:08:05 00:08 [jvm] E 11:08:05 00:08 [dup] E 11:08:05 00:08 [cpplib] E 11:08:05 00:08 [cpp-library] E 11:08:05 00:08 [cpp] E 11:08:05 00:08 [cpp-binary] E 11:08:05 00:08 [go] E 11:08:05 00:08 [run] E 11:08:05 00:08 [py] E Invalidated 3 targets. E 11:08:05 00:08 [run] E E FAILURE: /usr/bin/python python_distribution.fasthello_with_install_requires.main ... exited non-zero (1) E E E Waiting for background workers to finish. E 11:08:06 00:09 [complete] E FAILURE E stderr: E WARN] /Users/earellano/code/pants/src/python/pants/build_graph/target.py:108: DeprecationWarning: DEPRECATED: The source argument in targets is deprecated - it gets automatically promoted to sources. Target python_binary should just use a sources argument. No BUILD files need changing. The source argument will stop being populated - will be removed in version 1.10.0.dev0. E cls.global_instance().check_unknown(target, kwargs, payload) E E Failed to execute PEX file, missing macosx_10_13_x86_64-cp-27-cp27m compatible dependencies for: E fasthello-test ResolveRequirementsTest.test_resolve_multiplatform_requirements self = def test_resolve_multiplatform_requirements(self): cffi_tgt = self._fake_target('cffi', ['cffi==1.9.1']) pex = self._resolve_requirements([cffi_tgt], { 'python-setup': { # We have 'current' so we can import the module in order to get the path to it. # The other platforms (one of which may happen to be the same as current) are what we # actually test the presence of. 'platforms': ['current', 'macosx-10.10-x86_64', 'manylinux1_i686', 'win_amd64'] } }) stdout_data, stderr_data = self._exercise_module(pex, 'cffi') > self.assertEquals('', stderr_data.strip()) E AssertionError: u'' != 'Failed to execute PEX file, missing macosx_10_13_x86_64-cp-27-cp27m compatible dependencies for:\ncffi' pants_test/backend/python/tasks/test_resolve_requirements.py:62: AssertionError _____ BinaryUtilTest.test_support_url_multi ______ self = def test_support_url_multi(self): """Tests to make sure existing base urls function as expected.""" bootstrap_dir = '/tmp' with temporary_dir() as invalid_local_files, temporary_dir() as valid_local_files: binary_util = self._gen_binary_util( baseurls=[ 'BLATANTLY INVALID URL', 'https://dl.bintray.com/pantsbuild/bin/reasonably-invalid-url', invalid_local_files, valid_local_files, 'https://dl.bintray.com/pantsbuild/bin/another-invalid-url', ], bootstrap_dir=bootstrap_dir) binary_request = binary_util._make_deprecated_binary_request( supportdir='bin/protobuf', version='2.4.1', name='protoc') binary_path = binary_request.get_download_path(binary_util._host_platform()) contents = b'proof' with safe_open(os.path.join(valid_local_files, binary_path), 'wb') as fp: fp.write(contents) binary_path_abs = os.path.join(bootstrap_dir, binary_path) > self.assertEqual(binary_path_abs, binary_util.select(binary_request)) E AssertionError: u'/tmp/bin/protobuf/mac/10.13/2.4.1/protoc' != u'/private/tmp/bin/protobuf/mac/10.13/2.4.1/protoc' E - /tmp/bin/protobuf/mac/10.13/2.4.1/protoc E + /private/tmp/bin/protobuf/mac/10.13/2.4.1/protoc E ? ++++++++ pants_test/binaries/test_binary_util.py:156: AssertionError -------------- Captured stderr call -------------- 100% .................................................. 0 KB 0.000s _ BuildGraphTest.test_transitive_closure_address _ self = def test_transitive_closure_address(self): root_address = self.inject_graph('//:foo', { "//:foo": ['a'], "a": ['a/b:bat'], > "a/b:bat": [], }) pants_test/build_graph/test_build_graph.py:64: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pants_test/build_graph/test_build_graph.py:46: in inject_graph self.build_graph.inject_address_closure(root_address) pants/engine/legacy/graph.py:199: in inject_address_closure self.inject_addresses_closure([address]) pants/engine/legacy/graph.py:207: in inject_addresses_closure for _ in self._inject_specs(specs): pants/engine/legacy/graph.py:264: in _inject_specs subjects) /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py:35: in __exit__ self.gen.throw(type, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = @contextmanager def _resolve_context(self): try: yield except Exception as e: raise AddressLookupError( > 'Build graph construction failed: {} {}'.format(type(e).__name__, str(e)) ) E AddressLookupError: Build graph construction failed: ExecutionError Received unexpected Throw state(s): E Computing Select(Specs(dependencies=(SingleAddress(directory=u'', name=u'foo'),), tags=(), exclude_patterns<=tuple>=()), =TransitiveHydratedTargets) E Computing Task(transitive_hydrated_targets, Specs(dependencies=(SingleAddress(directory=u'', name=u'foo'),), tags=(), exclude_patterns<=tuple>=()), =TransitiveHydratedTargets) E Computing Task(addresses_from_address_families, Specs(dependencies=(SingleAddress(directory=u'', name=u'foo'),), tags=(), exclude_patterns<=tuple>=()), =BuildFileAddresses) E Throw("foo" was not found in namespace "". Did you mean one of: E :a) E Traceback (most recent call last): E File "/Users/earellano/code/pants/.pants.d/pyprep/sources/b0a107ea65753c87975bc703dd9911ff685aab26/pants/engine/native.py", line 466, in extern_generator_send E res = c.from_value(func[0]).send(c.from_value(arg[0])) E File "/Users/earellano/code/pants/.pants.d/pyprep/sources/b0a107ea65753c87975bc703dd9911ff685aab26/pants/engine/build_files.py", line 272, in addresses_from_address_families E _raise_did_you_mean(address_family, spec.name) E File "/Users/earellano/code/pants/.pants.d/pyprep/sources/b0a107ea65753c87975bc703dd9911ff685aab26/pants/engine/build_files.py", line 84, in _raise_did_you_mean E .format(name, address_family.namespace, possibilities)) E ResolveError: "foo" was not found in namespace "". Did you mean one of: E :a pants/engine/legacy/graph.py:231: AddressLookupError ___ OsutilTest.test_warnings_on_unknown_names ____ self = def test_warnings_on_unknown_names(self): name = 'I really hope no one ever names an operating system with this string.' with self.captured_logging(logging.WARNING) as captured: normalize_os_name(name) self.assertEqual(1, len(captured.warnings()), > 'Expected exactly one warning, but got: {}'.format(captured.warnings())) E AssertionError: Expected exactly one warning, but got: [] pants_test/util/test_osutil.py:37: AssertionError --------------- Captured log call ---------------- osutil.py 39 WARN Unknown operating system name: I really hope no one ever names an operating system with this string., known names are: darwin, linux, linux2, mac, mac os x, macos, macosx generated xml file: /Users/earellano/code/pants/.pants.d/test/pytest/8e12c28ea82b2a60b226898a9e22d0506cf860fe/junitxml/TEST-8e12c28ea82b2a60b226898a9e22d0506cf860fe.xml 11 failed, 2154 passed, 29 skipped, 3 xfailed, 4 xpassed in 751.61 seconds