[INFO] cloning repository https://github.com/MrJohz/precommit [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MrJohz/precommit" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrJohz%2Fprecommit", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrJohz%2Fprecommit'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0d22363197b366f9a8d2b372d8317f3749b763da [INFO] testing MrJohz/precommit against 1.99.0-beta.1+cargoflags=--release for beta-release-1.99-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrJohz%2Fprecommit" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/MrJohz/precommit [INFO] finished tweaking git repo https://github.com/MrJohz/precommit [INFO] tweaked toml for git repo https://github.com/MrJohz/precommit written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/MrJohz/precommit on toolchain 1.99.0-beta.1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/MrJohz/precommit already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] testing MrJohz/precommit against 1.99.0-beta.1+cargoflags=--release for beta-release-1.99-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrJohz%2Fprecommit" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/MrJohz/precommit [INFO] finished tweaking git repo https://github.com/MrJohz/precommit [INFO] tweaked toml for git repo https://github.com/MrJohz/precommit written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/MrJohz/precommit on toolchain 1.99.0-beta.1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/MrJohz/precommit already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 86237fd21cb3ff845658822d45292b425d3f6f7e180d08074a4020d4ff77e8d1 [INFO] running `Command { std: "docker" "start" "86237fd21cb3ff845658822d45292b425d3f6f7e180d08074a4020d4ff77e8d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "86237fd21cb3ff845658822d45292b425d3f6f7e180d08074a4020d4ff77e8d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "86237fd21cb3ff845658822d45292b425d3f6f7e180d08074a4020d4ff77e8d1" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "86237fd21cb3ff845658822d45292b425d3f6f7e180d08074a4020d4ff77e8d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "86237fd21cb3ff845658822d45292b425d3f6f7e180d08074a4020d4ff77e8d1" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling async-task v4.7.1 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling futures-lite v2.3.0 [INFO] [stderr] Compiling piper v0.2.4 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling lexopt v0.3.0 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling event-listener-strategy v0.5.2 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling cc v1.1.28 [INFO] [stderr] Compiling async-executor v1.13.1 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling bstr v1.10.0 [INFO] [stderr] Compiling async-fs v2.1.2 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling libz-sys v1.1.20 [INFO] [stderr] Compiling libssh2-sys v0.3.0 [INFO] [stderr] Compiling libgit2-sys v0.17.0+1.8.1 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling polling v3.7.3 [INFO] [stderr] Compiling async-io v2.3.4 [INFO] [stderr] Compiling async-signal v0.2.10 [INFO] [stderr] Compiling async-net v2.0.0 [INFO] [stderr] Compiling async-process v2.3.0 [INFO] [stderr] Compiling smol v2.0.2 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling git2 v0.19.0 [INFO] [stderr] Compiling precommit v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `release` profile [optimized] target(s) in 1m 32s [INFO] running `Command { std: "docker" "inspect" "86237fd21cb3ff845658822d45292b425d3f6f7e180d08074a4020d4ff77e8d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "86237fd21cb3ff845658822d45292b425d3f6f7e180d08074a4020d4ff77e8d1" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling polling v3.7.3 [INFO] [stderr] Compiling tempfile v3.13.0 [INFO] [stderr] Compiling async-io v2.3.4 [INFO] [stderr] Compiling async-signal v0.2.10 [INFO] [stderr] Compiling async-net v2.0.0 [INFO] [stderr] Compiling async-process v2.3.0 [INFO] [stderr] Compiling smol v2.0.2 [INFO] [stderr] Compiling precommit v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `release` profile [optimized] target(s) in 43.12s [INFO] running `Command { std: "docker" "inspect" "86237fd21cb3ff845658822d45292b425d3f6f7e180d08074a4020d4ff77e8d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "86237fd21cb3ff845658822d45292b425d3f6f7e180d08074a4020d4ff77e8d1" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "test" "--frozen" "--release", kill_on_drop: false }` [INFO] [stderr] Finished `release` profile [optimized] target(s) in 0.13s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/release/deps/precommit-7af46752cf4e22a5) [INFO] [stderr] Running unittests src/bin/precommit.rs (/opt/rustwide/target/release/deps/precommit-19e54de496d7a8b7) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/check_diffs.rs (/opt/rustwide/target/release/deps/check_diffs-25574a231045009e) [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test diff_commands_fail_if_the_command_returns_nonzero ... ok [INFO] [stdout] test check_diffs_errors_if_diff_is_not_identical ... ok [INFO] [stdout] test diff_commands_can_emit_to_stderr_without_failing ... ok [INFO] [stdout] test check_diffs_command_output_against_existing_contents ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.12s [INFO] [stdout] [INFO] [stderr] Running tests/check_git_integration.rs (/opt/rustwide/target/release/deps/check_git_integration-0c82b799cee1a4a6) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test check_passes_contents_of_file_as_seen_in_index ... ok [INFO] [stdout] test check_passes_file_contents_to_file_stdin ... ok [INFO] [stdout] test check_ignores_files_that_are_not_in_index ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.16s [INFO] [stdout] [INFO] [stderr] Running tests/check_statuses.rs (/opt/rustwide/target/release/deps/check_statuses-d098ad561348a4a3) [INFO] [stdout] [INFO] [stdout] running 11 tests [INFO] [stdout] test check_raises_an_error_if_no_repository_exists ... ok [INFO] [stdout] test check_does_nothing_if_no_files_are_to_be_added ... ok [INFO] [stdout] test check_runs_check_command_for_each_file_to_be_added ... ok [INFO] [stdout] test check_runs_check_command_in_working_directory_of_git_folder ... ok [INFO] [stdout] .- STATUS: 1 [INFO] [stdout] |- STDOUT ------ [INFO] [stdout] | (no output) [INFO] [stdout] |- STDERR ------ [INFO] [stdout] | check(s) failed for path "test1" [INFO] [stdout] |  > writing to/from a child process failed (Broken pipe (os error 32)) [INFO] [stdout] | [INFO] [stdout] | check(s) failed for path "test2" [INFO] [stdout] |  > command failed `>&2 echo 'error in file test2'; false` (exit status: 1) [INFO] [stdout] | error in file test2 [INFO] [stdout] | [INFO] [stdout] | One or more checks failed [INFO] [stdout] '--------------- [INFO] [stdout] test check_status_is_fed_the_file_in_the_index ... ok [INFO] [stdout] test if_multiple_files_fail_all_the_command_outputs_are_shown ... FAILED [INFO] [stdout] test the_command_name_replacement_string_can_be_changed_using_a_flag ... ok [INFO] [stdout] test finds_correct_git_folder_when_run_in_subfolder_of_working_directory ... ok [INFO] [stdout] test if_the_command_fails_the_command_output_is_shown_and_the_command_fails ... ok [INFO] [stdout] test if_multiple_commands_fail_all_the_command_outputs_are_shown ... ok [INFO] [stdout] test passes_the_correct_file_name_to_the_command_being_run ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--test check_statuses` [INFO] [stdout] ---- if_multiple_files_fail_all_the_command_outputs_are_shown stdout ---- [INFO] [stdout] [src/check.rs:120:22] output.map_err(CheckError::PipeIoError)? = Output { [INFO] [stdout] status: ExitStatus( [INFO] [stdout] unix_wait_status( [INFO] [stdout] 256, [INFO] [stdout] ), [INFO] [stdout] ), [INFO] [stdout] stdout: "", [INFO] [stdout] stderr: "error in file test1\n", [INFO] [stdout] } [INFO] [stdout] [src/check.rs:120:22] output.map_err(CheckError::PipeIoError)? = Output { [INFO] [stdout] status: ExitStatus( [INFO] [stdout] unix_wait_status( [INFO] [stdout] 256, [INFO] [stdout] ), [INFO] [stdout] ), [INFO] [stdout] stdout: "", [INFO] [stdout] stderr: "error in file test2\n", [INFO] [stdout] } [INFO] [stdout] [INFO] [stdout] thread 'if_multiple_files_fail_all_the_command_outputs_are_shown' (2099) panicked at tests/common/mod.rs:93:9: [INFO] [stdout] assertion failed (stderr did not contain "error in file test1") [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5942b0c40835 - <::print::DisplayBacktrace as core[7c831bd917ebf35f]::fmt::Display>::fmt [INFO] [stdout] 1: 0x5942b0c1e62a - core[7c831bd917ebf35f]::fmt::write [INFO] [stdout] 2: 0x5942b0c3fecb - as core[7c831bd917ebf35f]::io::write::Write>::write_fmt [INFO] [stdout] 3: 0x5942b0c3f9af - std[104cf6e2632825ea]::panicking::default_hook::{closure#0} [INFO] [stdout] 4: 0x5942b0c3f5da - std[104cf6e2632825ea]::panicking::default_hook [INFO] [stdout] 5: 0x5942b0c3f112 - std[104cf6e2632825ea]::panicking::panic_with_hook [INFO] [stdout] 6: 0x5942b0c66071 - std[104cf6e2632825ea]::panicking::panic_handler::{closure#0} [INFO] [stdout] 7: 0x5942b0c66029 - std[104cf6e2632825ea]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] 8: 0x5942b0c6653c - __rustc[b0d56fa5b193ad05]::rust_begin_unwind [INFO] [stdout] 9: 0x5942b0c1e4bb - core[7c831bd917ebf35f]::panicking::panic_fmt [INFO] [stdout] 10: 0x5942b0bec6f5 - ::stderr_contains::<&str> [INFO] [stdout] 11: 0x5942b0c01c58 - >::call_once [INFO] [stdout] 12: 0x5942b0c8324b - test[73009c9f9aebf890]::__rust_begin_short_backtrace::, fn() -> core[7c831bd917ebf35f]::result::Result<(), alloc[2fdc3f7464fcf288]::string::String>> [INFO] [stdout] 13: 0x5942b0c7eecc - test[73009c9f9aebf890]::run_test::{closure#0} [INFO] [stdout] 14: 0x5942b0c7e5fc - std[104cf6e2632825ea]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] 15: 0x5942b0c98fec - ::{closure#1} as core[7c831bd917ebf35f]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] 16: 0x5942b0c67bc2 - ::new::thread_start [INFO] [stdout] 17: 0x7600bbaec07a - [INFO] [stdout] 18: 0x7600bbb7f534 - clone [INFO] [stdout] 19: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] if_multiple_files_fail_all_the_command_outputs_are_shown [INFO] [stdout] [INFO] [stdout] test result: FAILED. 10 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "86237fd21cb3ff845658822d45292b425d3f6f7e180d08074a4020d4ff77e8d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86237fd21cb3ff845658822d45292b425d3f6f7e180d08074a4020d4ff77e8d1", kill_on_drop: false }` [INFO] [stdout] 86237fd21cb3ff845658822d45292b425d3f6f7e180d08074a4020d4ff77e8d1