Advertisement
Guest User

Untitled

a guest
May 24th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.59 KB | None | 0 0
  1. =================================== FAILURES ===================================
  2. ______________ TestBinaryCreate.test_jvm_binaries_deploy_excludes ______________
  3. this = <pants.java.nailgun_executor.NailgunExecutor._runner.<locals>.Runner object at 0x7bd54a5a8b70>
  4. stdout = <_pytest.capture.EncodedFile object at 0x7f089dc01080>
  5. stderr = <_pytest.capture.EncodedFile object at 0x7f089dc01080>, stdin = None
  6. cwd = None
  7. def run(this, stdout=None, stderr=None, stdin=None, cwd=None):
  8. nailgun = None
  9. try:
  10. > nailgun = self._get_nailgun_client(jvm_options, classpath, stdout, stderr, stdin)
  11. pants/java/nailgun_executor.py:146:
  12. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  13. self = <pants.java.nailgun_executor.NailgunExecutor object at 0x7f0898496cf8>
  14. jvm_options = ['-Xmx256m']
  15. classpath = ['/tmp/tmp5qk5ersx_BUILD_ROOT/.pants.d/bootstrap_jvm_tools/7c0a62077e8f/ivy/jars/com.martiansoftware/nailgun-server/ja...tmp5qk5ersx_BUILD_ROOT/.pants.d/bootstrap_jvm_tools/7c0a62077e8f/ivy/jars/org.pantsbuild/args4j/jars/args4j-0.0.9.jar']
  16. stdout = <_pytest.capture.EncodedFile object at 0x7f089dc01080>
  17. stderr = <_pytest.capture.EncodedFile object at 0x7f089dc01080>, stdin = None
  18. def _get_nailgun_client(self, jvm_options, classpath, stdout, stderr, stdin):
  19. """This (somewhat unfortunately) is the main entrypoint to this class via the Runner. It handles
  20. creation of the running nailgun server as well as creation of the client."""
  21. classpath = self._nailgun_classpath + classpath
  22. new_fingerprint = self._fingerprint(jvm_options, classpath, self._distribution.version)
  23.  
  24. with self._NAILGUN_SPAWN_LOCK:
  25. running, updated = self._check_nailgun_state(new_fingerprint)
  26.  
  27. if running and updated:
  28. logger.debug('Found running nailgun server that needs updating, killing {server}'
  29. .format(server=self._identity))
  30. self.terminate()
  31.  
  32. if (not running) or (running and updated):
  33. > return self._spawn_nailgun_server(new_fingerprint, jvm_options, classpath, stdout, stderr, stdin)
  34. pants/java/nailgun_executor.py:184:
  35. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  36. self = <pants.java.nailgun_executor.NailgunExecutor object at 0x7f0898496cf8>
  37. fingerprint = '31e7c3b213a1b6bffd543917b70b9c3f45b44e7f'
  38. jvm_options = ['-Xmx256m', '-Dpants.buildroot=/home/travis/build/pantsbuild/pants', '-Dpants.nailgun.owner=/tmp/tmp5qk5ersx_BUILD_ROOT/.pants.d/ng/test_BinaryCreate_test_scope', '-Dpants.nailgun.fingerprint=31e7c3b213a1b6bffd543917b70b9c3f45b44e7f']
  39. classpath = ['/tmp/tmp5qk5ersx_BUILD_ROOT/.pants.d/bootstrap_jvm_tools/7c0a62077e8f/ivy/jars/com.martiansoftware/nailgun-server/ja...tmp5qk5ersx_BUILD_ROOT/.pants.d/bootstrap_jvm_tools/7c0a62077e8f/ivy/jars/org.pantsbuild/args4j/jars/args4j-0.0.9.jar']
  40. stdout = <_pytest.capture.EncodedFile object at 0x7f089dc01080>
  41. stderr = <_pytest.capture.EncodedFile object at 0x7f089dc01080>, stdin = None
  42. def _spawn_nailgun_server(self, fingerprint, jvm_options, classpath, stdout, stderr, stdin):
  43. """Synchronously spawn a new nailgun server."""
  44. # Truncate the nailguns stdout & stderr.
  45. safe_file_dump(self._ng_stdout, b'', mode='wb')
  46. safe_file_dump(self._ng_stderr, b'', mode='wb')
  47.  
  48. jvm_options = jvm_options + [self._PANTS_NG_BUILDROOT_ARG,
  49. self._create_owner_arg(self._workdir),
  50. self._create_fingerprint_arg(fingerprint)]
  51.  
  52. post_fork_child_opts = dict(fingerprint=fingerprint,
  53. jvm_options=jvm_options,
  54. classpath=classpath,
  55. stdout=stdout,
  56. stderr=stderr)
  57.  
  58. logger.debug('Spawning nailgun server {i} with fingerprint={f}, jvm_options={j}, classpath={cp}'
  59. .format(i=self._identity, f=fingerprint, j=jvm_options, cp=classpath))
  60.  
  61. self.daemon_spawn(post_fork_child_opts=post_fork_child_opts)
  62.  
  63. # Wait for and write the port information in the parent so we can bail on exception/timeout.
  64. self.await_pid(self._startup_timeout)
  65. > self.write_socket(self._await_socket(self._connect_timeout))
  66. pants/java/nailgun_executor.py:267:
  67. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  68. self = <pants.java.nailgun_executor.NailgunExecutor object at 0x7f0898496cf8>
  69. timeout = 10
  70. def _await_socket(self, timeout):
  71. """Blocks for the nailgun subprocess to bind and emit a listening port in the nailgun stdout."""
  72. with safe_open(self._ng_stdout, 'r') as ng_stdout:
  73. start_time = time.time()
  74. accumulated_stdout = ''
  75. while 1:
  76. # TODO: share the decreasing timeout logic here with NailgunProtocol.iter_chunks() by adding
  77. # a method to pants.util.contextutil!
  78. remaining_time = time.time() - (start_time + timeout)
  79. if remaining_time > 0:
  80. stderr = read_file(self._ng_stderr, binary_mode=True)
  81. raise self.InitialNailgunConnectTimedOut(
  82. timeout=timeout,
  83. stdout=accumulated_stdout,
  84. > stderr=stderr,
  85. )
  86. E pants.java.nailgun_executor.NailgunExecutor.InitialNailgunConnectTimedOut: Failed to read nailgun output after 10 seconds!
  87. E Stdout:
  88. E
  89. E Stderr:
  90. E b''
  91. pants/java/nailgun_executor.py:213: InitialNailgunConnectTimedOut
  92. During handling of the above exception, another exception occurred:
  93. self = <abc.test_BinaryCreate_test_scope object at 0x7bd54a613b00>
  94. classpath = ['/tmp/tmp5qk5ersx_BUILD_ROOT/.pants.d/bootstrap_jvm_tools/7c0a62077e8f/ivy/jars/org.pantsbuild/jar-tool/jars/jar-tool...tmp5qk5ersx_BUILD_ROOT/.pants.d/bootstrap_jvm_tools/7c0a62077e8f/ivy/jars/org.pantsbuild/args4j/jars/args4j-0.0.9.jar']
  95. main = 'org.pantsbuild.tools.jar.Main', jvm_options = ['-Xmx256m']
  96. args = ['-files=/tmp/tmp5qk5ersx_BUILD_ROOT/.pants.d/pants_backend_jvm_tasks_binary_create_BinaryCreate/bar.bar-binary/tmpd1o...t_action=SKIP', '-skip=^META-INF/[^/]+\\.SF$,^META-INF/[^/]+\\.DSA$,^META-INF/[^/]+\\.RSA$,^META-INF/INDEX.LIST$', ...]
  97. workunit_name = 'jar-tool'
  98. workunit_labels = ['TOOL', 'JVM', 'NAILGUN', 'SUPPRESS_LABEL']
  99. workunit_log_config = None, dist = None
  100. def runjava(self, classpath, main, jvm_options=None, args=None, workunit_name=None,
  101. workunit_labels=None, workunit_log_config=None, dist=None):
  102. """Runs the java main using the given classpath and args.
  103.  
  104. If --execution-strategy=subprocess is specified then the java main is run in a freshly spawned
  105. subprocess, otherwise a persistent nailgun server dedicated to this Task subclass is used to
  106. speed up amortized run times.
  107.  
  108. :API: public
  109. """
  110. executor = self.create_java_executor(dist=dist)
  111.  
  112. # Creating synthetic jar to work around system arg length limit is not necessary
  113. # when `NailgunExecutor` is used because args are passed through socket, therefore turning off
  114. # creating synthetic jar if nailgun is used.
  115. create_synthetic_jar = self.execution_strategy != self.NAILGUN
  116. try:
  117. return util.execute_java(classpath=classpath,
  118. main=main,
  119. jvm_options=jvm_options,
  120. args=args,
  121. executor=executor,
  122. workunit_factory=self.context.new_workunit,
  123. workunit_name=workunit_name,
  124. workunit_labels=workunit_labels,
  125. workunit_log_config=workunit_log_config,
  126. create_synthetic_jar=create_synthetic_jar,
  127. > synthetic_jar_dir=self._executor_workdir)
  128. pants/backend/jvm/tasks/nailgun_task.py:121:
  129. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  130. classpath = ['/tmp/tmp5qk5ersx_BUILD_ROOT/.pants.d/bootstrap_jvm_tools/7c0a62077e8f/ivy/jars/org.pantsbuild/jar-tool/jars/jar-tool...tmp5qk5ersx_BUILD_ROOT/.pants.d/bootstrap_jvm_tools/7c0a62077e8f/ivy/jars/org.pantsbuild/args4j/jars/args4j-0.0.9.jar']
  131. main = 'org.pantsbuild.tools.jar.Main', jvm_options = ['-Xmx256m']
  132. args = ['-files=/tmp/tmp5qk5ersx_BUILD_ROOT/.pants.d/pants_backend_jvm_tasks_binary_create_BinaryCreate/bar.bar-binary/tmpd1o...t_action=SKIP', '-skip=^META-INF/[^/]+\\.SF$,^META-INF/[^/]+\\.DSA$,^META-INF/[^/]+\\.RSA$,^META-INF/INDEX.LIST$', ...]
  133. executor = <pants.java.nailgun_executor.NailgunExecutor object at 0x7f0898496cf8>
  134. workunit_factory = <bound method TestContext.new_workunit of <pants_test.base.context_utils.TestContext object at 0x7f089401fd68>>
  135. workunit_name = 'jar-tool'
  136. workunit_labels = ['TOOL', 'JVM', 'NAILGUN', 'SUPPRESS_LABEL'], cwd = None
  137. workunit_log_config = None, distribution = None, create_synthetic_jar = False
  138. synthetic_jar_dir = '/tmp/tmp5qk5ersx_BUILD_ROOT/.pants.d/ng/test_BinaryCreate_test_scope'
  139. stdin = None
  140. def execute_java(classpath, main, jvm_options=None, args=None, executor=None,
  141. workunit_factory=None, workunit_name=None, workunit_labels=None,
  142. cwd=None, workunit_log_config=None, distribution=None,
  143. create_synthetic_jar=True, synthetic_jar_dir=None, stdin=None):
  144. """Executes the java program defined by the classpath and main.
  145.  
  146. If `workunit_factory` is supplied, does so in the context of a workunit.
  147.  
  148. :param list classpath: the classpath for the java program
  149. :param string main: the fully qualified class name of the java program's entry point
  150. :param list jvm_options: an optional sequence of options for the underlying jvm
  151. :param list args: an optional sequence of args to pass to the java program
  152. :param executor: an optional java executor to use to launch the program; defaults to a subprocess
  153. spawn of the default java distribution
  154. :param workunit_factory: an optional callable that can produce a workunit context
  155. :param string workunit_name: an optional name for the work unit; defaults to the main
  156. :param list workunit_labels: an optional sequence of labels for the work unit
  157. :param string cwd: optionally set the working directory
  158. :param WorkUnit.LogConfig workunit_log_config: an optional tuple of options affecting reporting
  159. :param bool create_synthetic_jar: whether to create a synthentic jar that includes the original
  160. classpath in its manifest.
  161. :param string synthetic_jar_dir: an optional directory to store the synthetic jar, if `None`
  162. a temporary directory will be provided and cleaned up upon process exit.
  163. :param file stdin: The stdin handle to use: by default None, meaning that stdin will
  164. not be propagated into the process.
  165.  
  166. Returns the exit code of the java program.
  167. Raises `pants.java.Executor.Error` if there was a problem launching java itself.
  168. """
  169.  
  170. runner = _get_runner(classpath, main, jvm_options, args, executor, cwd, distribution,
  171. create_synthetic_jar, synthetic_jar_dir)
  172. workunit_name = workunit_name or main
  173.  
  174. return execute_runner(runner,
  175. workunit_factory=workunit_factory,
  176. workunit_name=workunit_name,
  177. workunit_labels=workunit_labels,
  178. workunit_log_config=workunit_log_config,
  179. > stdin=stdin)
  180. pants/java/util.py:80:
  181. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  182. runner = <pants.java.nailgun_executor.NailgunExecutor._runner.<locals>.Runner object at 0x7bd54a5a8b70>
  183. workunit_factory = <bound method TestContext.new_workunit of <pants_test.base.context_utils.TestContext object at 0x7f089401fd68>>
  184. workunit_name = 'jar-tool'
  185. workunit_labels = ['TOOL', 'NAILGUN', 'TOOL', 'JVM', 'NAILGUN', 'SUPPRESS_LABEL']
  186. workunit_log_config = None, stdin = None
  187. def execute_runner(runner, workunit_factory=None, workunit_name=None, workunit_labels=None,
  188. workunit_log_config=None, stdin=None):
  189. """Executes the given java runner.
  190.  
  191. If `workunit_factory` is supplied, does so in the context of a workunit.
  192.  
  193. :param runner: the java runner to run
  194. :param workunit_factory: an optional callable that can produce a workunit context
  195. :param string workunit_name: an optional name for the work unit; defaults to the main
  196. :param list workunit_labels: an optional sequence of labels for the work unit
  197. :param WorkUnit.LogConfig workunit_log_config: an optional tuple of task options affecting reporting
  198. :param file stdin: The stdin handle to use: by default None, meaning that stdin will
  199. not be propagated into the process.
  200.  
  201. Returns the exit code of the java runner.
  202. Raises `pants.java.Executor.Error` if there was a problem launching java itself.
  203. """
  204. if not isinstance(runner, Executor.Runner):
  205. raise ValueError('The runner argument must be a java Executor.Runner instance, '
  206. 'given {} of type {}'.format(runner, type(runner)))
  207.  
  208. if workunit_factory is None:
  209. return runner.run(stdin=stdin)
  210. else:
  211. workunit_labels = [
  212. WorkUnitLabel.TOOL,
  213. WorkUnitLabel.NAILGUN if isinstance(runner.executor, NailgunExecutor) else WorkUnitLabel.JVM
  214. ] + (workunit_labels or [])
  215.  
  216. with workunit_factory(name=workunit_name, labels=workunit_labels,
  217. cmd=runner.cmd, log_config=workunit_log_config) as workunit:
  218. ret = runner.run(stdout=workunit.output('stdout'),
  219. stderr=workunit.output('stderr'),
  220. > stdin=stdin)
  221. pants/java/util.py:156:
  222. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  223. this = <pants.java.nailgun_executor.NailgunExecutor._runner.<locals>.Runner object at 0x7bd54a5a8b70>
  224. stdout = <_pytest.capture.EncodedFile object at 0x7f089dc01080>
  225. stderr = <_pytest.capture.EncodedFile object at 0x7f089dc01080>, stdin = None
  226. cwd = None
  227. def run(this, stdout=None, stderr=None, stdin=None, cwd=None):
  228. nailgun = None
  229. try:
  230. nailgun = self._get_nailgun_client(jvm_options, classpath, stdout, stderr, stdin)
  231. logger.debug('Executing via {ng_desc}: {cmd}'.format(ng_desc=nailgun, cmd=this.cmd))
  232. return nailgun.execute(main, cwd, *args)
  233. except (NailgunClient.NailgunError, self.InitialNailgunConnectTimedOut) as e:
  234. self.terminate()
  235. raise self.Error('Problem launching via {ng_desc} command {main} {args}: {msg}'
  236. .format(ng_desc=nailgun or '<no nailgun connection>',
  237. main=main,
  238. args=' '.join(args),
  239. > msg=e))
  240. E pants.java.executor.Executor.Error: Problem launching via <no nailgun connection> command org.pantsbuild.tools.jar.Main -files=/tmp/tmp5qk5ersx_BUILD_ROOT/.pants.d/pants_backend_jvm_tasks_binary_create_BinaryCreate/bar.bar-binary/tmpd1o0zr68/bar.txt=bar.txt,/tmp/tmp5qk5ersx_BUILD_ROOT/.pants.d/pants_backend_jvm_tasks_binary_create_BinaryCreate/bar.bar-binary/tmpd1o0zr68/Bar.class=Bar.class -jars=/tmp/tmp5qk5ersx_BUILD_ROOT/.pants.d/org.example-foo-1.0.0.jar -update=false -compress=true -default_action=SKIP -skip=^META-INF/[^/]+\.SF$,^META-INF/[^/]+\.DSA$,^META-INF/[^/]+\.RSA$,^META-INF/INDEX.LIST$ -policies=^META-INF/services/=CONCAT_TEXT /tmp/tmp5qk5ersx_BUILD_ROOT/dist/bar-binary.jar: Failed to read nailgun output after 10 seconds!
  241. E Stdout:
  242. E
  243. E Stderr:
  244. E b''
  245. pants/java/nailgun_executor.py:155: Error
  246. During handling of the above exception, another exception occurred:
  247. self = <pants_test.backend.jvm.tasks.test_binary_create.TestBinaryCreate testMethod=test_jvm_binaries_deploy_excludes>
  248. def test_jvm_binaries_deploy_excludes(self):
  249. self.add_to_build_file(
  250. '3rdparty/jvm/org/example',
  251. 'jar_library(name = "foo", jars = [jar(org = "org.example", name = "foo", rev = "1.0.0")])',
  252. )
  253. foo_jar_lib = self.target('3rdparty/jvm/org/example:foo')
  254.  
  255. self.add_to_build_file(
  256. 'bar',
  257. '''jvm_binary(
  258. name = "bar-binary",
  259. source = "Bar.java",
  260. dependencies = ["3rdparty/jvm/org/example:foo"],
  261. deploy_excludes = [exclude(org = "org.pantsbuild")],
  262. )'''
  263. )
  264. binary_target = self.target('//bar:bar-binary')
  265. context = self.context(target_roots=[binary_target])
  266. classpath_products = self.ensure_classpath_products(context)
  267.  
  268.  
  269. foo_artifact = self.create_artifact(org='org.example', name='foo', rev='1.0.0')
  270. with open_zip(foo_artifact.pants_path, 'w') as jar:
  271. jar.writestr('foo/Foo.class', '')
  272.  
  273. baz_artifact = self.create_artifact(org='org.pantsbuild', name='baz', rev='2.0.0')
  274. with open_zip(baz_artifact.pants_path, 'w') as jar:
  275. # This file should not be included in the binary jar since org.pantsbuild is deploy excluded.
  276. jar.writestr('baz/Baz.class', '')
  277.  
  278. classpath_products.add_jars_for_targets(targets=[foo_jar_lib],
  279. conf='default',
  280. resolved_jars=[foo_artifact, baz_artifact])
  281.  
  282. self.add_to_runtime_classpath(context, binary_target, {'Bar.class': '', 'bar.txt': ''})
  283.  
  284. > self.execute(context)
  285. pants_test/backend/jvm/tasks/test_binary_create.py:88:
  286. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  287. pants_test/jvm/jvm_tool_task_test_base.py:122: in execute
  288. task.execute()
  289. pants/backend/jvm/tasks/binary_create.py:29: in execute
  290. self.create_binary(binary)
  291. pants/backend/jvm/tasks/binary_create.py:39: in create_binary
  292. self.add_main_manifest_entry(jar, binary)
  293. /opt/pyenv/versions/3.6.7/lib/python3.6/contextlib.py:88: in __exit__
  294. next(self.gen)
  295. pants/backend/jvm/tasks/jvm_binary_task.py:107: in monolithic_jar
  296. yield monolithic_jar
  297. /opt/pyenv/versions/3.6.7/lib/python3.6/contextlib.py:88: in __exit__
  298. next(self.gen)
  299. pants/backend/jvm/tasks/jar_task.py:360: in open_jar
  300. if JarTool.global_instance().run(context=self.context, runjava=self.runjava, args=args):
  301. pants/backend/jvm/subsystems/jar_tool.py:33: in run
  302. WorkUnitLabel.NAILGUN, WorkUnitLabel.SUPPRESS_LABEL])
  303. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  304. self = <abc.test_BinaryCreate_test_scope object at 0x7bd54a613b00>
  305. classpath = ['/tmp/tmp5qk5ersx_BUILD_ROOT/.pants.d/bootstrap_jvm_tools/7c0a62077e8f/ivy/jars/org.pantsbuild/jar-tool/jars/jar-tool...tmp5qk5ersx_BUILD_ROOT/.pants.d/bootstrap_jvm_tools/7c0a62077e8f/ivy/jars/org.pantsbuild/args4j/jars/args4j-0.0.9.jar']
  306. main = 'org.pantsbuild.tools.jar.Main', jvm_options = ['-Xmx256m']
  307. args = ['-files=/tmp/tmp5qk5ersx_BUILD_ROOT/.pants.d/pants_backend_jvm_tasks_binary_create_BinaryCreate/bar.bar-binary/tmpd1o...t_action=SKIP', '-skip=^META-INF/[^/]+\\.SF$,^META-INF/[^/]+\\.DSA$,^META-INF/[^/]+\\.RSA$,^META-INF/INDEX.LIST$', ...]
  308. workunit_name = 'jar-tool'
  309. workunit_labels = ['TOOL', 'JVM', 'NAILGUN', 'SUPPRESS_LABEL']
  310. workunit_log_config = None, dist = None
  311. def runjava(self, classpath, main, jvm_options=None, args=None, workunit_name=None,
  312. workunit_labels=None, workunit_log_config=None, dist=None):
  313. """Runs the java main using the given classpath and args.
  314.  
  315. If --execution-strategy=subprocess is specified then the java main is run in a freshly spawned
  316. subprocess, otherwise a persistent nailgun server dedicated to this Task subclass is used to
  317. speed up amortized run times.
  318.  
  319. :API: public
  320. """
  321. executor = self.create_java_executor(dist=dist)
  322.  
  323. # Creating synthetic jar to work around system arg length limit is not necessary
  324. # when `NailgunExecutor` is used because args are passed through socket, therefore turning off
  325. # creating synthetic jar if nailgun is used.
  326. create_synthetic_jar = self.execution_strategy != self.NAILGUN
  327. try:
  328. return util.execute_java(classpath=classpath,
  329. main=main,
  330. jvm_options=jvm_options,
  331. args=args,
  332. executor=executor,
  333. workunit_factory=self.context.new_workunit,
  334. workunit_name=workunit_name,
  335. workunit_labels=workunit_labels,
  336. workunit_log_config=workunit_log_config,
  337. create_synthetic_jar=create_synthetic_jar,
  338. synthetic_jar_dir=self._executor_workdir)
  339. except executor.Error as e:
  340. > raise TaskError(e)
  341. E pants.base.exceptions.TaskError: Problem launching via <no nailgun connection> command org.pantsbuild.tools.jar.Main -files=/tmp/tmp5qk5ersx_BUILD_ROOT/.pants.d/pants_backend_jvm_tasks_binary_create_BinaryCreate/bar.bar-binary/tmpd1o0zr68/bar.txt=bar.txt,/tmp/tmp5qk5ersx_BUILD_ROOT/.pants.d/pants_backend_jvm_tasks_binary_create_BinaryCreate/bar.bar-binary/tmpd1o0zr68/Bar.class=Bar.class -jars=/tmp/tmp5qk5ersx_BUILD_ROOT/.pants.d/org.example-foo-1.0.0.jar -update=false -compress=true -default_action=SKIP -skip=^META-INF/[^/]+\.SF$,^META-INF/[^/]+\.DSA$,^META-INF/[^/]+\.RSA$,^META-INF/INDEX.LIST$ -policies=^META-INF/services/=CONCAT_TEXT /tmp/tmp5qk5ersx_BUILD_ROOT/dist/bar-binary.jar: Failed to read nailgun output after 10 seconds!
  342. E Stdout:
  343. E
  344. E Stderr:
  345. E b''
  346. pants/backend/jvm/tasks/nailgun_task.py:123: TaskError
  347. ----------------------------- Captured stderr call -----------------------------
  348. Starting workunit create-monolithic-jar
  349. Starting workunit add-internal-classes
  350. Starting workunit add-dependency-jars
  351. Starting workunit cache
  352. .
  353. Starting workunit bootstrap-jar-tool
  354. :: loading settings :: url = jar:file:/home/travis/.ivy2/pants/org.apache.ivy/ivy/jars/ivy-2.4.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
  355. :: resolving dependencies :: internal#42f1fedb02831e5a4cb63034fb17bbb5d4a52248-IvyResolveFingerprintStrategy_76d7a3f2dc89-fetch;working@travis-job-2a99c987-cee3-47df-b1e9-8aedf733143a
  356. confs: [default]
  357. found org.pantsbuild#jar-tool;0.0.10 in default
  358. found args4j#args4j;2.32 in default
  359. found com.google.code.findbugs#jsr305;3.0.0 in default
  360. found com.google.guava#guava;18.0 in default
  361. found org.pantsbuild#args4j;0.0.9 in default
  362. :: resolution report :: resolve 429ms :: artifacts dl 30ms
  363. ---------------------------------------------------------------------
  364. | | modules || artifacts |
  365. | conf | number| search|dwnlded|evicted|| number|dwnlded|
  366. ---------------------------------------------------------------------
  367. | default | 5 | 0 | 0 | 0 || 5 | 0 |
  368. ---------------------------------------------------------------------
  369. cachepath output to /tmp/tmp5qk5ersx_BUILD_ROOT/.pants.d/bootstrap_jvm_tools/7c0a62077e8f/ivy/42f1fedb02831e5a4cb63034fb17bbb5d4a52248-IvyResolveFingerprintStrategy_76d7a3f2dc89/classpath.raw.tmp.6118249be57640dc845fdb36dff95f90
  370. WorkUnit outcome: SUCCESS
  371. Starting workunit cache
  372. .
  373. Starting workunit bootstrap-nailgun-server
  374. :: loading settings :: url = jar:file:/home/travis/.ivy2/pants/org.apache.ivy/ivy/jars/ivy-2.4.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
  375. :: resolving dependencies :: internal#c109bfa74ccd26cbc0a32b4145338ab536124702-IvyResolveFingerprintStrategy_76d7a3f2dc89-fetch;working@travis-job-2a99c987-cee3-47df-b1e9-8aedf733143a
  376. confs: [default]
  377. found com.martiansoftware#nailgun-server;0.9.1 in default
  378. :: resolution report :: resolve 140ms :: artifacts dl 4ms
  379. ---------------------------------------------------------------------
  380. | | modules || artifacts |
  381. | conf | number| search|dwnlded|evicted|| number|dwnlded|
  382. ---------------------------------------------------------------------
  383. | default | 1 | 0 | 0 | 0 || 1 | 0 |
  384. ---------------------------------------------------------------------
  385. cachepath output to /tmp/tmp5qk5ersx_BUILD_ROOT/.pants.d/bootstrap_jvm_tools/7c0a62077e8f/ivy/c109bfa74ccd26cbc0a32b4145338ab536124702-IvyResolveFingerprintStrategy_76d7a3f2dc89/classpath.raw.tmp.6fbfa068d5ee45c5a41d56e4170bc50d
  386. WorkUnit outcome: SUCCESS
  387. Starting workunit jar-tool
  388. ===================== 1 failed, 1 passed in 18.63 seconds ======================
  389. tests/python/pants_test/backend/jvm/tasks:binary_create stderr:
  390. /home/travis/build/pantsbuild/pants/.pants.d/process-executionspLTWm/pytest-with-requirements.pex/.bootstrap/pex/environment.py:330: PEXWarning: The `pkg_resources` package was loaded from a pex vendored version when declaring namespace packages defined by twitter.common.confluence 0.3.11. The twitter.common.confluence 0.3.11 distribution should fix its `install_requires` to include `setuptools`
  391. tests/python/pants_test/backend/jvm/tasks:bootstrap_jvm_tools stdout:
  392. ============================= test session starts ==============================
  393. platform linux -- Python 3.6.7, pytest-3.6.4, py-1.8.0, pluggy-0.7.1
  394. rootdir: /home/travis/build/pantsbuild/pants/.pants.d/process-execution2NKdX0, inifile:
  395. plugins: cov-2.4.0, timeout-1.2.1
  396. collected 5 items
  397. pants_test/backend/jvm/tasks/test_bootstrap_jvm_tools.py ..... [100%]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement