[INFO] cloning repository https://github.com/taw27/codecrafters-git-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/taw27/codecrafters-git-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftaw27%2Fcodecrafters-git-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftaw27%2Fcodecrafters-git-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 70a1e25390b0b99c339f25ec6916baabcdee15b6 [INFO] testing taw27/codecrafters-git-rust against try#a7ce54db9b096bd1098d07c645b489195a667c9f for pr-137940-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftaw27%2Fcodecrafters-git-rust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/taw27/codecrafters-git-rust on toolchain a7ce54db9b096bd1098d07c645b489195a667c9f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/taw27/codecrafters-git-rust [INFO] finished tweaking git repo https://github.com/taw27/codecrafters-git-rust [INFO] tweaked toml for git repo https://github.com/taw27/codecrafters-git-rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/taw27/codecrafters-git-rust 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" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5324ff10ee77ab53431323f9aa34497a25e3c75aadc9720a98d2d4110cbda191 [INFO] running `Command { std: "docker" "start" "-a" "5324ff10ee77ab53431323f9aa34497a25e3c75aadc9720a98d2d4110cbda191", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5324ff10ee77ab53431323f9aa34497a25e3c75aadc9720a98d2d4110cbda191", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5324ff10ee77ab53431323f9aa34497a25e3c75aadc9720a98d2d4110cbda191", kill_on_drop: false }` [INFO] [stdout] 5324ff10ee77ab53431323f9aa34497a25e3c75aadc9720a98d2d4110cbda191 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5c7a9309df693cb486503ca62a7eeb890426d66f0c62d958cc81448767dce7bb [INFO] running `Command { std: "docker" "start" "-a" "5c7a9309df693cb486503ca62a7eeb890426d66f0c62d958cc81448767dce7bb", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling once_cell v1.13.0 [INFO] [stderr] Compiling parking_lot_core v0.9.6 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling bytes v1.3.0 [INFO] [stderr] Compiling itoa v1.0.3 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling tracing-core v0.1.29 [INFO] [stderr] Compiling openssl v0.10.41 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling tokio v1.24.1 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling io-lifetimes v1.0.3 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling tracing v0.1.36 [INFO] [stderr] Compiling serde v1.0.142 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling rustix v0.36.6 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling openssl-sys v0.9.75 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling linux-raw-sys v0.1.4 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling serde_json v1.0.83 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling ryu v1.0.11 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling anyhow v1.0.59 [INFO] [stderr] Compiling os_str_bytes v6.4.1 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling miniz_oxide v0.5.3 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling clap_lex v0.3.0 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling ipnet v2.5.0 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling fastrand v1.8.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling unicode-normalization v0.1.21 [INFO] [stderr] Compiling block-buffer v0.10.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling flate2 v1.0.24 [INFO] [stderr] Compiling sha1 v0.10.5 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling is-terminal v0.4.2 [INFO] [stderr] Compiling tokio-macros v1.8.2 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling thiserror-impl v1.0.32 [INFO] [stderr] Compiling clap_derive v4.0.21 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling thiserror v1.0.32 [INFO] [stderr] Compiling clap v4.0.32 [INFO] [stderr] Compiling tokio-util v0.7.4 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.15 [INFO] [stderr] Compiling hyper v0.14.23 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.13 [INFO] [stderr] Compiling git-starter-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `size` is never read [INFO] [stdout] --> src/models/git_object.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct GitObject { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 6 | pub size: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 38.98s [INFO] running `Command { std: "docker" "inspect" "5c7a9309df693cb486503ca62a7eeb890426d66f0c62d958cc81448767dce7bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c7a9309df693cb486503ca62a7eeb890426d66f0c62d958cc81448767dce7bb", kill_on_drop: false }` [INFO] [stdout] 5c7a9309df693cb486503ca62a7eeb890426d66f0c62d958cc81448767dce7bb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4901f33802c8178c6517823a976927f7bc39d73eb73b12982f1ce0992177e654 [INFO] running `Command { std: "docker" "start" "-a" "4901f33802c8178c6517823a976927f7bc39d73eb73b12982f1ce0992177e654", kill_on_drop: false }` [INFO] [stderr] Compiling git-starter-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.13s [INFO] running `Command { std: "docker" "inspect" "4901f33802c8178c6517823a976927f7bc39d73eb73b12982f1ce0992177e654", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4901f33802c8178c6517823a976927f7bc39d73eb73b12982f1ce0992177e654", kill_on_drop: false }` [INFO] [stdout] 4901f33802c8178c6517823a976927f7bc39d73eb73b12982f1ce0992177e654 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 31271f3257faebce3678265bab7f1f972ebf42cccc85718d2d495f89558aa988 [INFO] running `Command { std: "docker" "start" "-a" "31271f3257faebce3678265bab7f1f972ebf42cccc85718d2d495f89558aa988", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/git_starter_rust-345a2767852a32d8) [INFO] [stdout] [INFO] [stdout] running 26 tests [INFO] [stdout] test git_commands::cat_file::tests::cat_file_fails_with_invalid_file_path ... ok [INFO] [stdout] test git_commands::cat_file::tests::cat_file_fails_with_invalid_sha ... ok [INFO] [stdout] test git_commands::utils::tests::compress_and_write_file_returns_error_for_invalid_path ... ok [INFO] [stdout] test git_commands::utils::tests::compress_and_write_file_creates_file_with_correct_content ... ok [INFO] [stdout] test git_commands::utils::tests::compress_and_write_file_overwrites_existing_file_content ... ok [INFO] [stdout] test git_commands::utils::tests::get_sha_returns_correct_sha_for_str_input ... ok [INFO] [stdout] test git_commands::cat_file::tests::cat_file_fails_with_invalid_flag ... ok [INFO] [stdout] test git_commands::cat_file::tests::cat_file_prints_content ... ok [INFO] [stdout] test git_commands::utils::tests::get_object_path_returns_correct_path_for_valid_sha ... ok [INFO] [stdout] test git_commands::utils::tests::get_sha_returns_correct_sha_for_vector_input ... ok [INFO] [stdout] test git_commands::utils::tests::get_object_path_returns_error_for_invalid_sha ... ok [INFO] [stdout] test models::git_object::tests::from_object_file_buffer_parses_valid_blob_object ... ok [INFO] [stdout] test models::git_object::tests::from_object_file_string_returns_error_for_invalid_object_file_string ... ok [INFO] [stdout] test models::tree::tests::get_content_returns_correct_format_for_multiple_entries ... ok [INFO] [stdout] test git_commands::utils::tests::read_and_decompress_file_returns_error_for_corrupted_file ... ok [INFO] [stdout] test models::tree::tests::get_content_returns_correct_format_for_single_entry ... ok [INFO] [stdout] test models::tree::tests::get_content_returns_correct_format_for_symbolic_link_entry ... ok [INFO] [stdout] test git_commands::utils::tests::read_and_decompress_file_returns_correct_content_for_valid_path ... ok [INFO] [stdout] test models::tree::tests::tree_object_new_with_invalid_mode ... ok [INFO] [stdout] test models::tree::tests::get_content_returns_correct_format_for_directory_entry ... ok [INFO] [stdout] test models::tree::tests::tree_object_new_with_valid_content ... ok [INFO] [stdout] test git_commands::utils::tests::read_and_decompress_file_returns_error_for_invalid_path ... ok [INFO] [stdout] test models::git_object::tests::from_object_file_string_returns_error_for_object_file_string_with_invalid_size ... ok [INFO] [stdout] test models::tree::tests::tree_object_new_with_invalid_sha ... ok [INFO] [stdout] test models::tree::tests::tree_object_new_with_multiple_entries ... ok [INFO] [stdout] test models::tree::tests::tree_object_new_with_invalid_name ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 26 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "31271f3257faebce3678265bab7f1f972ebf42cccc85718d2d495f89558aa988", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31271f3257faebce3678265bab7f1f972ebf42cccc85718d2d495f89558aa988", kill_on_drop: false }` [INFO] [stdout] 31271f3257faebce3678265bab7f1f972ebf42cccc85718d2d495f89558aa988