[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.98.0-beta.8+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-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/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-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/MrJohz/precommit on toolchain 1.98.0-beta.8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.98.0-beta.8" "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.98.0-beta.8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lexopt v0.3.0 [INFO] [stderr] Downloaded cc v1.1.28 [INFO] [stderr] Downloaded bstr v1.10.0 [INFO] [stderr] Downloaded libssh2-sys v0.3.0 [INFO] [stderr] Downloaded libz-sys v1.1.20 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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] 338e01436ab42d316bb4390dc611e7ee5e747a5da294e75a07ff5d6964a39045 [INFO] running `Command { std: "docker" "start" "338e01436ab42d316bb4390dc611e7ee5e747a5da294e75a07ff5d6964a39045", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "338e01436ab42d316bb4390dc611e7ee5e747a5da294e75a07ff5d6964a39045", 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" "338e01436ab42d316bb4390dc611e7ee5e747a5da294e75a07ff5d6964a39045" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "338e01436ab42d316bb4390dc611e7ee5e747a5da294e75a07ff5d6964a39045", 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" "338e01436ab42d316bb4390dc611e7ee5e747a5da294e75a07ff5d6964a39045" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.8" "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 futures-io v0.3.31 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling rustix v0.38.37 [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 tinyvec_macros v0.1.1 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling futures-lite v2.3.0 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling piper v0.2.4 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling lexopt v0.3.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling event-listener-strategy v0.5.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling cc v1.1.28 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Compiling async-executor v1.13.1 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling async-fs v2.1.2 [INFO] [stderr] Compiling bstr v1.10.0 [INFO] [stderr] Compiling idna v0.5.0 [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 url v2.5.2 [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 futures-executor v0.3.31 [INFO] [stderr] Compiling smol v2.0.2 [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 55.51s [INFO] running `Command { std: "docker" "inspect" "338e01436ab42d316bb4390dc611e7ee5e747a5da294e75a07ff5d6964a39045", 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" "338e01436ab42d316bb4390dc611e7ee5e747a5da294e75a07ff5d6964a39045" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.8" "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 17.25s [INFO] running `Command { std: "docker" "inspect" "338e01436ab42d316bb4390dc611e7ee5e747a5da294e75a07ff5d6964a39045", 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" "338e01436ab42d316bb4390dc611e7ee5e747a5da294e75a07ff5d6964a39045" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.8" "test" "--frozen" "--release", kill_on_drop: false }` [INFO] [stderr] Finished `release` profile [optimized] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/release/deps/precommit-7af46752cf4e22a5) [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 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] [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.07s [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_file_contents_to_file_stdin ... ok [INFO] [stdout] test check_passes_contents_of_file_as_seen_in_index ... 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.02s [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 if_multiple_commands_fail_all_the_command_outputs_are_shown ... ok [INFO] [stdout] test the_command_name_replacement_string_can_be_changed_using_a_flag ... ok [INFO] [stdout] test check_runs_check_command_in_working_directory_of_git_folder ... 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_files_fail_all_the_command_outputs_are_shown ... ok [INFO] [stdout] test check_runs_check_command_for_each_file_to_be_added ... ok [INFO] [stdout] test check_status_is_fed_the_file_in_the_index ... ok [INFO] [stdout] test passes_the_correct_file_name_to_the_command_being_run ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] Running tests/list.rs (/opt/rustwide/target/release/deps/list-609c3974403833ee) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test listing_contents_of_a_non_git_project_produces_an_error ... ok [INFO] [stdout] test listing_contents_of_an_empty_project_produces_no_output ... ok [INFO] [stdout] test listing_contents_of_a_project_with_no_commits_and_unstaged_files_produces_no_output ... ok [INFO] [stdout] test listing_contents_of_a_project_with_no_commits_and_staged_files_lists_only_staged_files ... ok [INFO] [stdout] test files_added_after_a_commit_are_listed ... ok [INFO] [stdout] test lists_all_files_even_from_files_in_deep_folders ... ok [INFO] [stdout] test files_added_before_a_commit_are_not_listed ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] Doc-tests precommit [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] running `Command { std: "docker" "inspect" "338e01436ab42d316bb4390dc611e7ee5e747a5da294e75a07ff5d6964a39045", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "338e01436ab42d316bb4390dc611e7ee5e747a5da294e75a07ff5d6964a39045", kill_on_drop: false }` [INFO] [stdout] 338e01436ab42d316bb4390dc611e7ee5e747a5da294e75a07ff5d6964a39045