https://pantsbuild.org/ logo
p

plain-sundown-25537

11/11/2016, 9:19 PM
Hitting some Jenkin Build issue, pants throws error while it is running (randomly)
Copy code
webapp_common/tests/python/web_clients:test
Exception caught: (<type 'exceptions.OSError'>)
  File "/home/ubuntu/.cache/pants/setup/bootstrap-Linux-x86_64/1.1.0/bin/pants", line 11, in <module>
    sys.exit(main())
  File "/home/ubuntu/.cache/pants/setup/bootstrap-Linux-x86_64/pants.wUhK3l/install/local/lib/python2.7/site-packages/pants/bin/pants_exe.py", line 44, in main
    PantsRunner(exiter).run()
  File "/home/ubuntu/.cache/pants/setup/bootstrap-Linux-x86_64/pants.wUhK3l/install/local/lib/python2.7/site-packages/pants/bin/pants_runner.py", line 57, in run
    options_bootstrapper=options_bootstrapper)
  File "/home/ubuntu/.cache/pants/setup/bootstrap-Linux-x86_64/pants.wUhK3l/install/local/lib/python2.7/site-packages/pants/bin/pants_runner.py", line 46, in _run
    return LocalPantsRunner(exiter, args, env, options_bootstrapper=options_bootstrapper).run()
  File "/home/ubuntu/.cache/pants/setup/bootstrap-Linux-x86_64/pants.wUhK3l/install/local/lib/python2.7/site-packages/pants/bin/local_pants_runner.py", line 53, in run
    self._maybe_profiled(self._run)
  File "/home/ubuntu/.cache/pants/setup/bootstrap-Linux-x86_64/pants.wUhK3l/install/local/lib/python2.7/site-packages/pants/bin/local_pants_runner.py", line 50, in _maybe_profiled
    runner()
  File "/home/ubuntu/.cache/pants/setup/bootstrap-Linux-x86_64/pants.wUhK3l/install/local/lib/python2.7/site-packages/pants/bin/local_pants_runner.py", line 60, in _run
    global_options = options.for_global_scope()
  File "/home/ubuntu/.cache/pants/setup/bootstrap-Linux-x86_64/pants.wUhK3l/install/local/lib/python2.7/site-packages/pants/option/options.py", line 369, in for_global_scope
    return self.for_scope(GLOBAL_SCOPE)
  File "/home/ubuntu/.cache/pants/setup/bootstrap-Linux-x86_64/pants.wUhK3l/install/local/lib/python2.7/site-packages/pants/option/options.py", line 288, in for_scope
    self._parser_hierarchy.get_parser_by_scope(scope).parse_args(flags_in_scope, values)
  File "/home/ubuntu/.cache/pants/setup/bootstrap-Linux-x86_64/pants.wUhK3l/install/local/lib/python2.7/site-packages/pants/option/parser.py", line 193, in parse_args
    val = self._compute_value(dest, kwargs, flag_vals)
  File "/home/ubuntu/.cache/pants/setup/bootstrap-Linux-x86_64/pants.wUhK3l/install/local/lib/python2.7/site-packages/pants/option/parser.py", line 436, in _compute_value
    config_source_file = os.path.relpath(config_source_file)
  File "/home/ubuntu/.cache/pants/setup/bootstrap-Linux-x86_64/pants.wUhK3l/install/lib/python2.7/posixpath.py", line 437, in relpath
    start_list = [x for x in abspath(start).split(sep) if x]
  File "/home/ubuntu/.cache/pants/setup/bootstrap-Linux-x86_64/pants.wUhK3l/install/lib/python2.7/posixpath.py", line 371, in abspath
    cwd = os.getcwd()

Exception message: [Errno 2] No such file or directory