hundreds-father-404
01/04/2021, 9:26 PM./pants test src/python/pants/util/objects_test.py
, I get a no such file error for the script `./find_binary.sh`:14:04:34.94 [ERROR] Exception caught: (pants.engine.internals.scheduler.ExecutionError)
File "/Users/eric/DocsLocal/code/projects/pants/src/python/pants/bin/local_pants_runner.py", line 276, in run
engine_result = self._run_v2(goals)
File "/Users/eric/DocsLocal/code/projects/pants/src/python/pants/bin/local_pants_runner.py", line 190, in _run_v2
return self._maybe_run_v2_body(goals, poll=False)
File "/Users/eric/DocsLocal/code/projects/pants/src/python/pants/bin/local_pants_runner.py", line 212, in _maybe_run_v2_body
poll_delay=(0.1 if poll else None),
File "/Users/eric/DocsLocal/code/projects/pants/src/python/pants/init/engine_initializer.py", line 132, in run_goal_rules
goal_product, params, poll=poll, poll_delay=poll_delay
File "/Users/eric/DocsLocal/code/projects/pants/src/python/pants/engine/internals/scheduler.py", line 563, in run_goal_rule
self._raise_on_error([t for _, t in throws])
File "/Users/eric/DocsLocal/code/projects/pants/src/python/pants/engine/internals/scheduler.py", line 527, in _raise_on_error
wrapped_exceptions=tuple(t.exc for t in throws),
Exception message: 1 Exception encountered:
Engine traceback:
in select
in pants.core.goals.test.run_tests
in pants.core.goals.test.enrich_test_result (src/python/pants/util/objects_test.py:tests)
in pants.backend.python.goals.pytest_runner.run_python_test (src/python/pants/util/objects_test.py:tests)
in pants.backend.python.goals.pytest_runner.setup_pytest_for_target
in pants.engine.internals.graph.transitive_targets
in pants.engine.internals.graph.resolve_targets (src/python/pants/util/objects_test.py:tests)
in pants.engine.internals.graph.resolve_unexpanded_targets (src/python/pants/util/objects_test.py:tests)
in pants.engine.internals.graph.resolve_dependencies (src/python/pants/util/objects_test.py:tests)
in pants.backend.python.dependency_inference.rules.infer_python_dependencies_via_imports (src/python/pants/util/objects_test.py:tests)
in pants.backend.python.dependency_inference.import_parser.parse_python_imports
in pants.backend.python.util_rules.pex.find_interpreter (CPython<3.9,>=3.7)
in pants.engine.process.fallible_to_exec_result_or_raise
in pants.engine.process.remove_platform_information
in pants.engine.process.upcast_process
in pants.backend.python.util_rules.pex_cli.setup_pex_cli_process
in pants.backend.python.util_rules.pex_environment.find_pex_python
in pants.engine.process.find_binary
in pants.engine.process.find_binary
in pants.engine.process.fallible_to_exec_result_or_raise
in pants.engine.process.remove_platform_information
in multi_platform_process
Traceback (no traceback):
<pants native internals>
Exception: Failed to execute: Process {
argv: [
"./find_binary.sh",
"bash",
],
env: {
"PATH": "/usr/bin:/bin:/usr/local/bin",
},
working_directory: None,
input_files: Digest(
Fingerprint<124495cfdd1160d88a797da1b5de65f0b9d57642b553d7ff5195d5375411b492>,
91,
),
output_files: {},
output_directories: {},
timeout: None,
execution_slot_variable: None,
description: "Searching for `bash` on PATH=/usr/bin:/bin:/usr/local/bin",
level: Debug,
append_only_caches: {},
jdk_home: None,
platform_constraint: None,
is_nailgunnable: false,
cache_scope: PerRestart,
}
Error launching process: Os { code: 2, kind: NotFound, message: "No such file or directory" }
Traceback (most recent call last):
File "/Users/eric/DocsLocal/code/projects/pants/src/python/pants/bin/local_pants_runner.py", line 276, in run
engine_result = self._run_v2(goals)
File "/Users/eric/DocsLocal/code/projects/pants/src/python/pants/bin/local_pants_runner.py", line 190, in _run_v2
return self._maybe_run_v2_body(goals, poll=False)
File "/Users/eric/DocsLocal/code/projects/pants/src/python/pants/bin/local_pants_runner.py", line 212, in _maybe_run_v2_body
poll_delay=(0.1 if poll else None),
File "/Users/eric/DocsLocal/code/projects/pants/src/python/pants/init/engine_initializer.py", line 132, in run_goal_rules
goal_product, params, poll=poll, poll_delay=poll_delay
File "/Users/eric/DocsLocal/code/projects/pants/src/python/pants/engine/internals/scheduler.py", line 563, in run_goal_rule
self._raise_on_error([t for _, t in throws])
File "/Users/eric/DocsLocal/code/projects/pants/src/python/pants/engine/internals/scheduler.py", line 527, in _raise_on_error
wrapped_exceptions=tuple(t.exc for t in throws),
pants.engine.internals.scheduler.ExecutionError: 1 Exception encountered:
Engine traceback:
in select
in pants.core.goals.test.run_tests
in pants.core.goals.test.enrich_test_result (src/python/pants/util/objects_test.py:tests)
in pants.backend.python.goals.pytest_runner.run_python_test (src/python/pants/util/objects_test.py:tests)
in pants.backend.python.goals.pytest_runner.setup_pytest_for_target
in pants.engine.internals.graph.transitive_targets
in pants.engine.internals.graph.resolve_targets (src/python/pants/util/objects_test.py:tests)
in pants.engine.internals.graph.resolve_unexpanded_targets (src/python/pants/util/objects_test.py:tests)
in pants.engine.internals.graph.resolve_dependencies (src/python/pants/util/objects_test.py:tests)
in pants.backend.python.dependency_inference.rules.infer_python_dependencies_via_imports (src/python/pants/util/objects_test.py:tests)
in pants.backend.python.dependency_inference.import_parser.parse_python_imports
in pants.backend.python.util_rules.pex.find_interpreter (CPython<3.9,>=3.7)
in pants.engine.process.fallible_to_exec_result_or_raise
in pants.engine.process.remove_platform_information
in pants.engine.process.upcast_process
in pants.backend.python.util_rules.pex_cli.setup_pex_cli_process
in pants.backend.python.util_rules.pex_environment.find_pex_python
in pants.engine.process.find_binary
in pants.engine.process.find_binary
in pants.engine.process.fallible_to_exec_result_or_raise
in pants.engine.process.remove_platform_information
in multi_platform_process
Traceback (no traceback):
<pants native internals>
Exception: Failed to execute: Process {
argv: [
"./find_binary.sh",
"bash",
],
env: {
"PATH": "/usr/bin:/bin:/usr/local/bin",
},
working_directory: None,
input_files: Digest(
Fingerprint<124495cfdd1160d88a797da1b5de65f0b9d57642b553d7ff5195d5375411b492>,
91,
),
output_files: {},
output_directories: {},
timeout: None,
execution_slot_variable: None,
description: "Searching for `bash` on PATH=/usr/bin:/bin:/usr/local/bin",
level: Debug,
append_only_caches: {},
jdk_home: None,
platform_constraint: None,
is_nailgunnable: false,
cache_scope: PerRestart,
}
Error launching process: Os { code: 2, kind: NotFound, message: "No such file or directory" }
hundreds-breakfast-49010
01/04/2021, 9:29 PM./pants test src/python/pants/util/objects_test.py
works for me on latest masterhundreds-father-404
01/04/2021, 9:31 PMfast-nail-55400
01/04/2021, 9:31 PMwitty-crayon-22786
01/04/2021, 9:32 PMfast-nail-55400
01/04/2021, 9:33 PMhundreds-father-404
01/04/2021, 9:33 PM./pants list ::
on macOS. We definitely should run ./pants test src/python/pants/util:
though, that’s a great and quick test to dofast-nail-55400
01/04/2021, 9:33 PMhundreds-father-404
01/04/2021, 9:34 PM▶ where bash
/usr/local/bin/bash
/bin/bash
witty-crayon-22786
01/04/2021, 9:34 PMfast-nail-55400
01/04/2021, 9:38 PMwitty-crayon-22786
01/04/2021, 9:38 PM--no-process-execution-cleanup-local-dirs
shows the file in the sandbox, but could be racey?fast-nail-55400
01/04/2021, 9:39 PMhundreds-breakfast-49010
01/04/2021, 9:40 PMwitty-crayon-22786
01/04/2021, 9:40 PMhundreds-father-404
01/04/2021, 9:41 PMgoing to revert the change and see if the test passesCI won’t show you this. You’d need to add to `ci.py`’s
run_smoke_tests()
that it runs test src/python/pants/util:
. That would be an excellent change to makewitty-crayon-22786
01/04/2021, 9:42 PMfast-nail-55400
01/04/2021, 9:47 PMtest_get_docstring_fallback_to_parents
fails for mehundreds-father-404
01/04/2021, 9:47 PMfast-nail-55400
01/04/2021, 9:47 PME AssertionError: assert equals failed
E 'The base class of the class hi 'The base class of the class hi
E erarchy.\n\nWhen called, it acc erarchy.\n\nWhen called, it acc
E epts no arguments and returns a epts no arguments and returns a
E new featureless\ninstance that new featureless\ninstance that
E has no instance attributes and has no instance attributes and
E cannot be given any.' cannot be given any.\n'
hundreds-father-404
01/04/2021, 9:49 PMfast-nail-55400
01/04/2021, 9:55 PMwitty-crayon-22786
01/04/2021, 9:58 PMfast-nail-55400
01/04/2021, 10:29 PM./pants test src/python/pants/base::
fails on 1.49 and succeeds on 1.48witty-crayon-22786
01/04/2021, 10:29 PMfast-nail-55400
01/04/2021, 10:31 PMwitty-crayon-22786
01/04/2021, 10:32 PMfast-nail-55400
01/04/2021, 10:34 PMhundreds-father-404
01/04/2021, 10:34 PMenough-analyst-54434
01/04/2021, 10:38 PMhundreds-father-404
01/04/2021, 10:38 PM/usr/bin/env bash
witty-crayon-22786
01/04/2021, 10:39 PM/private/var/folders/bg/_r10hqp14kjcpv68yzdk5svc0000gn/T/process-executionvrX4qr/find_binary.sh bash
works after the run with --no-process-execution-cleanup-local-dirs
(will add to ticket)hundreds-father-404
01/04/2021, 10:39 PMwitty-crayon-22786
01/04/2021, 10:40 PMfast-nail-55400
01/04/2021, 11:10 PMenough-analyst-54434
01/04/2021, 11:19 PMfast-nail-55400
01/04/2021, 11:20 PM