2 Errors in tests that lead to error in providing artifact and one warning during compilation
I'm trying to compile it through AUR archinux rust-parallel. The failing part is during the tests which is the outcome of the 2 following lines
export RUSTUP_TOOLCHAIN=stable cargo test --frozen --all-features
But, here are the errors during check:
running 27 tests test fails_j0 ... ok test fails_invalid_regex ... ok test fails_t0 ... ok test runs_echo_commands_dry_run ... ok test runs_echo_stdin ... ok test runs_echo_commands_from_args ... ok test runs_echo_commands_from_args_j1 ... ok test runs_auto_regex_from_command_line_args_j1 ... ok test runs_file ... ok test runs_echo_stdin_j1 ... ok test runs_file_j1 ... ok test runs_no_run_if_empty_echo_j1 ... ok test runs_regex_command_with_dollar_signs ... ok test runs_regex_from_command_line_args_nomatch_1 ... ok test runs_regex_from_command_line_args_j1 ... ok test runs_regex_from_input_file_badline_j1 ... ok test runs_regex_from_input_file_j1 ... ok test runs_regex_from_input_file_produce_json_named_groups_j1 ... ok test runs_regex_from_input_file_produce_json_numbered_groups_j1 ... ok test runs_shell_function_from_args_j1 ... ok test runs_shell_function_from_stdin_j1 ... ok test runs_shell_function_from_file_j1 ... ok test runs_shell_function_from_stdin_no_run_if_empty_j1 ... ok test runs_successfully ... ok test test_exit_status_on_failing_commands_exit_on_error ... FAILED test test_exit_status_on_failing_commands ... FAILED test timeout_sleep_commands_from_args ... ok (...) failures: test_exit_status_on_failing_commands test_exit_status_on_failing_commands_exit_on_error
test result: FAILED. 25 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.09s
error: test failed, to rerun pass `--test integration_tests
Here is the warning (not a big deal, just to mention):
Compiling rust-parallel v1.18.1 (/home/nasadmin/.cache/paru/clone/rust-parallel/src/rust-parallel-1.18.1) warning: field
style_nameis never read --> src/progress/style.rs:27:9 | 26 | pub struct ProgressStyleInfo { | ----------------- field in this struct 27 | pub style_name: &'static str, | ^^^^^^^^^^ | = note:#[warn(dead_code)](part of#[warn(unused)]) on by default
warning:
rust-parallel(bin "rust-parallel") generated 1 warning Finishedtestprofile [unoptimized + debuginfo] target(s) in 1m 24s Running unittests src/main.rs (target/debug/deps/rust_parallel-fa630e8879db48bd)
However, there was no update since last year, do you plan to provide new ones?
Kind regards.
I try to recompile it adding export LANG=C on my terminal because I wanted to display errors in english and now it works.... How can we improve this process ? BTW, my remark regarding the version is still accurate I think.
Hi @dulfox -
I just released version 1.19.0 today
For the warning now the variable now starts with _ character to avoid warning: https://github.com/aaronriekenberg/rust-parallel/blob/main/src/progress/style.rs#L23
For the compile error, what is your LANG setting? I have never tried on non-english terminal.
Thanks!