hundreds-father-404
10/14/2022, 9:04 PMhundreds-father-404
10/14/2022, 9:04 PMEngine traceback:
in select
..
in pants.core.goals.test.run_tests
`test` goal
in pants.backend.python.goals.pytest_runner.run_python_test
Run Pytest - (environment:remote, src/python/pants/util/osutil_test.py:tests)
in pants.backend.python.goals.pytest_runner.setup_pytest_for_target
..
in pants.backend.python.util_rules.pex.create_venv_pex
..
in pants.backend.python.util_rules.pex.build_pex
..
in pants.engine.process.fallible_to_exec_result_or_raise
..
Traceback (most recent call last):
File "/Users/ericarellano/code/pants/src/python/pants/engine/process.py", line 289, in fallible_to_exec_result_or_raise
raise ProcessExecutionFailure(
pants.engine.process.ProcessExecutionFailure: Process 'Building pytest_runner.pex' failed with exit code 1.
stdout:
stderr:
[Errno 2] No such file or directory: 'local_dists.pex/PEX-INFO'
witty-crayon-22786
10/14/2022, 9:21 PMhundreds-father-404
10/14/2022, 9:21 PMwitty-crayon-22786
10/14/2022, 9:21 PMhundreds-father-404
10/14/2022, 9:21 PMwitty-crayon-22786
10/14/2022, 9:21 PMwitty-crayon-22786
10/14/2022, 9:22 PMhundreds-father-404
10/14/2022, 9:32 PMaction=Action { command_digest: Some(Digest { hash: "a4e682122b29d2202d4307d55c54c142df5fe1d96c6401f254d871c57076d068", size_bytes: 772 }), input_root_digest: Some(Digest { hash: "de271807c1a24e8d41b0e843c0ece6626aee7f5dc3030c7405ff1b10ef723a87", size_bytes: 508 }), timeout: None, do_not_cache: false, salt: b"", platform: None }; command=Command { arguments: ["/usr/local/bin/python3.9", "./pex", "--tmpdir", ".tmp", "--python-path", "/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "--output-file", "pytest_runner.pex", "--no-emit-warnings", "--venv", "--seed", "verbose", "--no-venv-site-packages-copies", "--python", "/usr/local/bin/python3.9", "--console-script", "pytest", "--pex-path", "pytest.pex:requirements.pex:local_dists.pex", "--sources-directory=source_files", "--no-pypi", "--index=<https://pypi.org/simple/>", "--manylinux", "manylinux2014", "--resolver-version", "pip-2020-resolver", "--layout", "packed"], environment_variables: [EnvironmentVariable { name: "CPPFLAGS", value: "" }, EnvironmentVariable { name: "LANG", value: "C.UTF-8" }, EnvironmentVariable { name: "LDFLAGS", value: "" }, EnvironmentVariable { name: "PANTS_CACHE_KEY_TARGET_PLATFORM", value: "linux_x86_64" }, EnvironmentVariable { name: "PATH", value: "/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin" }, EnvironmentVariable { name: "PEX_IGNORE_RCFILES", value: "true" }, EnvironmentVariable { name: "PEX_ROOT", value: ".cache/pex_root" }], output_files: [], output_directories: ["pytest_runner.pex"], output_paths: [], platform: Some(Platform { properties: [] }), working_directory: "", output_node_properties: [] }; execute_request=ExecuteRequest { instance_name: "", skip_cache_lookup: true, action_digest: Some(Digest { hash: "04952d45f525c3142fd86081a4a74f46adc65fb193d7f1af7777501525dfd8cc", size_bytes: 142 }), execution_policy: None, results_cache_policy: None }
witty-crayon-22786
10/14/2022, 9:33 PMwitty-crayon-22786
10/14/2022, 9:33 PM./cargo run -p fs_util -- --help
hundreds-father-404
10/14/2022, 9:33 PMDigest { hash: "de271807c1a24e8d41b0e843c0ece6626aee7f5dc3030c7405ff1b10ef723a87", size_bytes: 508 })
witty-crayon-22786
10/14/2022, 9:41 PM./cargo run -p fs_util -- --remote-instance-name="" --server-address=127.0.0.1:50051 directory materialize de271807c1a24e8d41b0e843c0ece6626aee7f5dc3030c7405ff1b10ef723a87 508 dest
hundreds-father-404
10/14/2022, 9:45 PMthread 'main' panicked at 'A WorkunitStore has not been set for this thread.', workunit_store/src/lib.rs:831:31
witty-crayon-22786
10/14/2022, 9:45 PMRUST_BACKTRACE=1
and run again?witty-crayon-22786
10/14/2022, 9:47 PMdiff --git a/src/rust/engine/fs/fs_util/src/main.rs b/src/rust/engine/fs/fs_util/src/main.rs
index 4f23a17ae5..03486ccefd 100644
--- a/src/rust/engine/fs/fs_util/src/main.rs
+++ b/src/rust/engine/fs/fs_util/src/main.rs
@@ -84,6 +84,8 @@ struct SummaryWithDigest {
#[tokio::main]
async fn main() {
env_logger::init();
+ let workunit_store = WorkunitStore::new(false, log::Level::Debug);
+ workunit_store.init_thread_state(None);
match execute(
&Command::new("fs_util")
hundreds-father-404
10/14/2022, 9:48 PMwitty-crayon-22786
10/14/2022, 10:47 PMbuild-support/reapi-sample-server/run.sh
or some other server?witty-crayon-22786
10/14/2022, 10:48 PMhundreds-father-404
10/14/2022, 10:48 PMwitty-crayon-22786
10/14/2022, 10:48 PMhundreds-father-404
10/14/2022, 10:49 PM./pants --pants-config-files=pants.remote-execution.toml test src/python/pants/util/osutil_test.py --no-python-infer-conftests -ldebug
witty-crayon-22786
10/14/2022, 10:50 PMwitty-crayon-22786
10/14/2022, 10:51 PMhundreds-father-404
10/14/2022, 10:51 PMwitty-crayon-22786
10/14/2022, 10:53 PMhundreds-father-404
10/14/2022, 10:53 PMmain
doesn't have that setwitty-crayon-22786
10/14/2022, 10:54 PMfs_util
issue?hundreds-father-404
10/14/2022, 10:55 PMhundreds-father-404
10/14/2022, 10:57 PMdest/
witty-crayon-22786
10/14/2022, 10:57 PMos_util.py
hundreds-father-404
10/14/2022, 10:58 PMwitty-crayon-22786
10/14/2022, 10:59 PMwitty-crayon-22786
10/14/2022, 11:00 PMhundreds-father-404
10/14/2022, 11:02 PMcommand_digest: Some(Digest { hash: "e7f28fff7fd45be366ca220d6ef13a383851836a301803311a0921ccbc4dc5e8", size_bytes: 740 }), input_root_digest: Some(Digest { hash: "de271807c1a24e8d41b0e843c0ece6626aee7f5dc3030c7405ff1b10ef723a87", size_bytes: 508 })
I was using input_root_digest
- is that not it?witty-crayon-22786
10/14/2022, 11:03 PMhundreds-father-404
10/14/2022, 11:04 PMwitty-crayon-22786
10/14/2022, 11:08 PM:tcp
isn’t right in your fs_util
commandwitty-crayon-22786
10/14/2022, 11:09 PMhundreds-father-404
10/14/2022, 11:09 PMwitty-crayon-22786
10/14/2022, 11:10 PMwitty-crayon-22786
10/14/2022, 11:11 PM<http://127.0.0.1:50051>
. sorry about that.witty-crayon-22786
10/14/2022, 11:12 PMdest
witty-crayon-22786
10/14/2022, 11:14 PMwitty-crayon-22786
10/14/2022, 11:14 PMwitty-crayon-22786
10/14/2022, 11:16 PM./cargo run -p fs_util -- --remote-instance-name="" --server-address=<http://127.0.0.1:50051> directory materialize $digest_fingerprint $digest_len $(pwd)/dest
witty-crayon-22786
10/14/2022, 11:34 PM--verbose
multiple times to make the server noisier. will get a change out for that.witty-crayon-22786
10/14/2022, 11:41 PMwitty-crayon-22786
10/15/2022, 12:02 AMhost-tools
runner that it is using is not the buildbox-runner-hosttools
runner, which is an annoying bit of naming. the up shot is that it is easy to update to add additional debug output. the downside is that it may not be behaving exactly the same as the full buildbox-runner-hosttools
runner.
will investigate further on Monday.