[INFO] cloning repository https://github.com/AlexShem/codecrafters-shell-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AlexShem/codecrafters-shell-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexShem%2Fcodecrafters-shell-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexShem%2Fcodecrafters-shell-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2d7811a3aafb672407bbdaa6e53b182da140a2c3 [INFO] testing AlexShem/codecrafters-shell-rust 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%2FAlexShem%2Fcodecrafters-shell-rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/AlexShem/codecrafters-shell-rust [INFO] finished tweaking git repo https://github.com/AlexShem/codecrafters-shell-rust [INFO] tweaked toml for git repo https://github.com/AlexShem/codecrafters-shell-rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/AlexShem/codecrafters-shell-rust 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/AlexShem/codecrafters-shell-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" "+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-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] ed9082522fad7e1fd116d52c97420c9ce1d9eb6102c8197f0d6c05d5165d6536 [INFO] running `Command { std: "docker" "start" "ed9082522fad7e1fd116d52c97420c9ce1d9eb6102c8197f0d6c05d5165d6536", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ed9082522fad7e1fd116d52c97420c9ce1d9eb6102c8197f0d6c05d5165d6536", 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" "ed9082522fad7e1fd116d52c97420c9ce1d9eb6102c8197f0d6c05d5165d6536" "/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" "ed9082522fad7e1fd116d52c97420c9ce1d9eb6102c8197f0d6c05d5165d6536", 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" "ed9082522fad7e1fd116d52c97420c9ce1d9eb6102c8197f0d6c05d5165d6536" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling find-msvc-tools v0.1.5 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling fallible-iterator v0.3.0 [INFO] [stderr] Compiling nix v0.30.1 [INFO] [stderr] Compiling endian-type v0.1.2 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling cc v1.2.49 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling unicode-width v0.2.2 [INFO] [stderr] Compiling nibble_vec v0.1.0 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Compiling radix_trie v0.2.1 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.75 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling libsqlite3-sys v0.35.0 [INFO] [stderr] Compiling fd-lock v4.0.4 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling rusqlite v0.37.0 [INFO] [stderr] Compiling rustyline v17.0.2 [INFO] [stderr] Compiling codecrafters-shell v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `release` profile [optimized] target(s) in 1m 40s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nix v0.30.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "ed9082522fad7e1fd116d52c97420c9ce1d9eb6102c8197f0d6c05d5165d6536", 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" "ed9082522fad7e1fd116d52c97420c9ce1d9eb6102c8197f0d6c05d5165d6536" "/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 getrandom v0.3.4 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling codecrafters-shell v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `release` profile [optimized] target(s) in 3.12s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nix v0.30.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "ed9082522fad7e1fd116d52c97420c9ce1d9eb6102c8197f0d6c05d5165d6536", 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" "ed9082522fad7e1fd116d52c97420c9ce1d9eb6102c8197f0d6c05d5165d6536" "/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.06s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nix v0.30.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/release/deps/codecrafters_shell-0b08100004f9d416) [INFO] [stdout] [INFO] [stdout] running 43 tests [INFO] [stdout] test commands::builtins::history::tests::test_history_with_limit ... ok [INFO] [stdout] test commands::builtins::history::tests::test_history_without_limit ... ok [INFO] [stdout] test commands::builtins::history::tests::test_history_with_repeated_commands ... ok [INFO] [stdout] test commands::builtins::history::tests::test_parse_args_invalid ... ok [INFO] [stdout] test commands::builtins::history::tests::test_parse_args_no_args ... ok [INFO] [stdout] test commands::builtins::history::tests::test_parse_args_limit ... ok [INFO] [stdout] test commands::builtins::history::tests::test_parse_args_read_missing_path ... ok [INFO] [stdout] test commands::builtins::history::tests::test_parse_args_write ... ok [INFO] [stdout] test commands::builtins::history::tests::test_parse_args_write_missing_path ... ok [INFO] [stdout] test commands::builtins::history::tests::test_append_history_file ... ok [INFO] [stdout] test commands::builtins::history::tests::test_read_history_file ... ok [INFO] [stdout] test parser::tests::test_adjacent_quotes_are_concatenated ... ok [INFO] [stdout] test parser::tests::test_backslash_escapes_itself_in_double_quotes ... ok [INFO] [stdout] test parser::tests::test_backslash_literal_before_non_special_char_in_double_quotes ... ok [INFO] [stdout] test parser::tests::test_concatenation_mixed_quotes ... ok [INFO] [stdout] test file_utils::tests::test_find_matching_files_excludes_hidden ... ok [INFO] [stdout] test parser::tests::test_consecutive_spaces ... ok [INFO] [stdout] test file_utils::tests::test_find_matching_files_single_match ... ok [INFO] [stdout] test parser::tests::test_empty_quotes_ignored ... ok [INFO] [stdout] test file_utils::tests::test_find_matching_files_no_match ... ok [INFO] [stdout] test parser::tests::test_escaped_backslash ... ok [INFO] [stdout] test parser::tests::test_escaped_spaces ... ok [INFO] [stdout] test commands::builtins::history::tests::test_parse_args_read ... ok [INFO] [stdout] test commands::builtins::history::tests::test_write_history_file ... ok [INFO] [stdout] test parser::tests::test_escaped_letter ... ok [INFO] [stdout] test parser::tests::test_mixed_quoted_and_unquoted ... ok [INFO] [stdout] test parser::tests::test_empty_double_quotes_ignored ... ok [INFO] [stdout] test parser::tests::test_parse_empty ... ok [INFO] [stdout] test parser::tests::test_mixed_escaped_backslash_and_quotes_in_double_quotes ... ok [INFO] [stdout] test parser::tests::test_separate_double_quoted_arguments ... ok [INFO] [stdout] test parser::tests::test_single_quotes_inside_double_quotes ... ok [INFO] [stdout] test parser::tests::test_escaped_space_before_unescaped_spaces ... ok [INFO] [stdout] test parser::tests::test_single_quote_preserves_spaces ... ok [INFO] [stdout] test parser::tests::test_backslash_escapes_double_quote ... ok [INFO] [stdout] test file_utils::tests::test_find_matching_files_multiple_matches ... FAILED [INFO] [stdout] test parser::tests::test_escaped_single_quotes ... ok [INFO] [stdout] test commands::builtins::history::tests::test_read_history_file_not_found ... ok [INFO] [stdout] test parser::tests::test_special_chars_in_quotes ... ok [INFO] [stdout] test parser::tests::test_mixed_single_and_double_quotes ... ok [INFO] [stdout] test parser::tests::test_special_chars_in_double_quotes ... ok [INFO] [stdout] test parser::tests::test_multiple_escaped_quotes_in_double_quotes ... ok [INFO] [stdout] test parser::tests::test_spaces_preserved_within_quotes ... ok [INFO] [stdout] test parser::tests::test_parse_simple_command ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- file_utils::tests::test_find_matching_files_multiple_matches stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'file_utils::tests::test_find_matching_files_multiple_matches' (1001) panicked at src/file_utils.rs:106:47: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" } [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x64821e660f91 - <::print::DisplayBacktrace as core[7c831bd917ebf35f]::fmt::Display>::fmt [INFO] [stdout] 1: 0x64821e67563a - core[7c831bd917ebf35f]::fmt::write [INFO] [stdout] 2: 0x64821e66571c - as core[7c831bd917ebf35f]::io::write::Write>::write_fmt [INFO] [stdout] 3: 0x64821e63b956 - std[104cf6e2632825ea]::panicking::default_hook::{closure#0} [INFO] [stdout] 4: 0x64821e658849 - std[104cf6e2632825ea]::panicking::default_hook [INFO] [stdout] 5: 0x64821e5f1570 - test[73009c9f9aebf890]::test_main_inner::::{closure#0} [INFO] [stdout] 6: 0x64821e658a02 - std[104cf6e2632825ea]::panicking::panic_with_hook [INFO] [stdout] 7: 0x64821e63ba02 - std[104cf6e2632825ea]::panicking::panic_handler::{closure#0} [INFO] [stdout] 8: 0x64821e633c09 - std[104cf6e2632825ea]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] 9: 0x64821e63c5fd - __rustc[b0d56fa5b193ad05]::rust_begin_unwind [INFO] [stdout] 10: 0x64821e675d6c - core[7c831bd917ebf35f]::panicking::panic_fmt [INFO] [stdout] 11: 0x64821e675b42 - core[7c831bd917ebf35f]::result::unwrap_failed [INFO] [stdout] 12: 0x64821e5de2a4 - >::call_once [INFO] [stdout] 13: 0x64821e5e485b - test[73009c9f9aebf890]::__rust_begin_short_backtrace::, fn() -> core[7c831bd917ebf35f]::result::Result<(), alloc[2fdc3f7464fcf288]::string::String>> [INFO] [stdout] 14: 0x64821e5f1ec5 - test[73009c9f9aebf890]::run_test::{closure#0} [INFO] [stdout] 15: 0x64821e5eb284 - std[104cf6e2632825ea]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] 16: 0x64821e5f5022 - ::{closure#1} as core[7c831bd917ebf35f]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] 17: 0x64821e6604f9 - ::new::thread_start [INFO] [stdout] 18: 0x7637263f307a - [INFO] [stdout] 19: 0x763726486534 - clone [INFO] [stdout] 20: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] file_utils::tests::test_find_matching_files_multiple_matches [INFO] [stdout] [INFO] [stdout] test result: FAILED. 42 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin codecrafters-shell` [INFO] running `Command { std: "docker" "inspect" "ed9082522fad7e1fd116d52c97420c9ce1d9eb6102c8197f0d6c05d5165d6536", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed9082522fad7e1fd116d52c97420c9ce1d9eb6102c8197f0d6c05d5165d6536", kill_on_drop: false }` [INFO] [stdout] ed9082522fad7e1fd116d52c97420c9ce1d9eb6102c8197f0d6c05d5165d6536