[INFO] cloning repository https://github.com/kush-jain/http-server-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kush-jain/http-server-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkush-jain%2Fhttp-server-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkush-jain%2Fhttp-server-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 08e25fe00eaf12ef2b883980cb03909196913e90
[INFO] testing kush-jain/http-server-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%2Fkush-jain%2Fhttp-server-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] started tweaking git repo https://github.com/kush-jain/http-server-rust
[INFO] finished tweaking git repo https://github.com/kush-jain/http-server-rust
[INFO] tweaked toml for git repo https://github.com/kush-jain/http-server-rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/kush-jain/http-server-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/kush-jain/http-server-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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] b9ca64e336f544fe5fe134d5f4a696ed40985df393e48dbf19cf5d3ac225c7f2
[INFO] running `Command { std: "docker" "start" "b9ca64e336f544fe5fe134d5f4a696ed40985df393e48dbf19cf5d3ac225c7f2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b9ca64e336f544fe5fe134d5f4a696ed40985df393e48dbf19cf5d3ac225c7f2", 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" "b9ca64e336f544fe5fe134d5f4a696ed40985df393e48dbf19cf5d3ac225c7f2" "/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" "b9ca64e336f544fe5fe134d5f4a696ed40985df393e48dbf19cf5d3ac225c7f2", 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" "b9ca64e336f544fe5fe134d5f4a696ed40985df393e48dbf19cf5d3ac225c7f2" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.86
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[INFO] [stderr]    Compiling utf8parse v0.2.2
[INFO] [stderr]    Compiling anstyle v1.0.10
[INFO] [stderr]    Compiling colorchoice v1.0.3
[INFO] [stderr]    Compiling anstyle-query v1.1.2
[INFO] [stderr]    Compiling is_terminal_polyfill v1.70.1
[INFO] [stderr]    Compiling thiserror v1.0.63
[INFO] [stderr]    Compiling strsim v0.11.1
[INFO] [stderr]    Compiling clap_lex v0.7.4
[INFO] [stderr]    Compiling adler2 v2.0.0
[INFO] [stderr]    Compiling heck v0.5.0
[INFO] [stderr]    Compiling anyhow v1.0.86
[INFO] [stderr]    Compiling bytes v1.7.1
[INFO] [stderr]    Compiling crc32fast v1.4.2
[INFO] [stderr]    Compiling anstyle-parse v0.2.6
[INFO] [stderr]    Compiling miniz_oxide v0.8.5
[INFO] [stderr]    Compiling anstream v0.6.18
[INFO] [stderr]    Compiling clap_builder v4.5.31
[INFO] [stderr]    Compiling quote v1.0.36
[INFO] [stderr]    Compiling syn v2.0.75
[INFO] [stderr]    Compiling flate2 v1.1.0
[INFO] [stderr]    Compiling clap_derive v4.5.28
[INFO] [stderr]    Compiling thiserror-impl v1.0.63
[INFO] [stderr]    Compiling clap v4.5.31
[INFO] [stderr]    Compiling codecrafters-http-server v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 15.58s
[INFO] running `Command { std: "docker" "inspect" "b9ca64e336f544fe5fe134d5f4a696ed40985df393e48dbf19cf5d3ac225c7f2", 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" "b9ca64e336f544fe5fe134d5f4a696ed40985df393e48dbf19cf5d3ac225c7f2" "/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 codecrafters-http-server v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 1.30s
[INFO] running `Command { std: "docker" "inspect" "b9ca64e336f544fe5fe134d5f4a696ed40985df393e48dbf19cf5d3ac225c7f2", 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" "b9ca64e336f544fe5fe134d5f4a696ed40985df393e48dbf19cf5d3ac225c7f2" "/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]      Running unittests src/main.rs (/opt/rustwide/target/release/deps/codecrafters_http_server-566c3c72a3e93494)
[INFO] [stdout] 
[INFO] [stdout] running 13 tests
[INFO] [stdout] test handler::tests::handle_http_request_get_file_route_invalid ... ok
[INFO] [stdout] test handler::tests::handle_http_request_invalid_file_path ... ok
[INFO] [stdout] test handler::tests::handle_http_request_invalid_request ... ok
[INFO] [stdout] test handler::tests::handle_http_request_invalid_route ... ok
[INFO] [stdout] test handler::tests::handle_multiple_encodings_all_invalid ... ok
[INFO] [stdout] test handler::tests::handle_http_request_echo_route ... ok
[INFO] [stdout] test handler::tests::handle_http_request_valid_route ... ok
[INFO] [stdout] test handler::tests::handle_http_request_get_file_route_valid ... ok
[INFO] [stdout] test handler::tests::handle_multiple_encodings ... ok
[INFO] [stdout] test handler::tests::handle_http_request_post_file_route ... FAILED
[INFO] [stdout] test handler::tests::handle_http_request_user_agent_route ... ok
[INFO] [stdout] test handler::tests::handle_gzip_encoding ... ok
[INFO] [stdout] test handler::tests::handle_invalid_encoding ... ok
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- handler::tests::handle_http_request_post_file_route stdout ----
[INFO] [stdout] received request: "POST /files/abc.txt HTTP/1.1", headers: ["Content-Length: 5"], request body: "abcde"
[INFO] [stdout] method: "POST", route: "/files/abc.txt"
[INFO] [stdout] file path: "/opt/rustwide/workdir/src/abc.txt"
[INFO] [stdout] Writing to file: "/opt/rustwide/workdir/src/abc.txt" contents: "abcde"
[INFO] [stdout] Error writing to file: "/opt/rustwide/workdir/src/abc.txt"
[INFO] [stdout] 
[INFO] [stdout] thread 'handler::tests::handle_http_request_post_file_route' (626) panicked at src/handler.rs:278:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "500"
[INFO] [stdout]  right: "201"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x60a984428c11 - <<std[104cf6e2632825ea]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[7c831bd917ebf35f]::fmt::Display>::fmt
[INFO] [stdout]    1:     0x60a98443e12a - core[7c831bd917ebf35f]::fmt::write
[INFO] [stdout]    2:     0x60a98442d0ac - <alloc[2fdc3f7464fcf288]::vec::Vec<u8> as core[7c831bd917ebf35f]::io::write::Write>::write_fmt
[INFO] [stdout]    3:     0x60a9844046d6 - std[104cf6e2632825ea]::panicking::default_hook::{closure#0}
[INFO] [stdout]    4:     0x60a984420b39 - std[104cf6e2632825ea]::panicking::default_hook
[INFO] [stdout]    5:     0x60a9843b5910 - test[73009c9f9aebf890]::test_main_inner::<test[73009c9f9aebf890]::test_main_static::{closure#0}>::{closure#0}
[INFO] [stdout]    6:     0x60a984420cf2 - std[104cf6e2632825ea]::panicking::panic_with_hook
[INFO] [stdout]    7:     0x60a984404782 - std[104cf6e2632825ea]::panicking::panic_handler::{closure#0}
[INFO] [stdout]    8:     0x60a9843fc999 - std[104cf6e2632825ea]::sys::backtrace::__rust_end_short_backtrace::<std[104cf6e2632825ea]::panicking::panic_handler::{closure#0}, !>
[INFO] [stdout]    9:     0x60a98440541d - __rustc[b0d56fa5b193ad05]::rust_begin_unwind
[INFO] [stdout]   10:     0x60a98443e85c - core[7c831bd917ebf35f]::panicking::panic_fmt
[INFO] [stdout]   11:     0x60a98443e773 - core[7c831bd917ebf35f]::panicking::assert_failed_inner
[INFO] [stdout]   12:     0x60a9843f04c0 - core[7c831bd917ebf35f]::panicking::assert_failed::<&str, &str>
[INFO] [stdout]   13:     0x60a9843a0c41 - codecrafters_http_server[8d571f3ea2fbdad]::handler::tests::handle_http_request_post_file_route
[INFO] [stdout]   14:     0x60a9843a4449 - <codecrafters_http_server[8d571f3ea2fbdad]::handler::tests::handle_http_request_post_file_route::{closure#0} as core[7c831bd917ebf35f]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]   15:     0x60a9843a8bfb - test[73009c9f9aebf890]::__rust_begin_short_backtrace::<core[7c831bd917ebf35f]::result::Result<(), alloc[2fdc3f7464fcf288]::string::String>, fn() -> core[7c831bd917ebf35f]::result::Result<(), alloc[2fdc3f7464fcf288]::string::String>>
[INFO] [stdout]   16:     0x60a9843b6265 - test[73009c9f9aebf890]::run_test::{closure#0}
[INFO] [stdout]   17:     0x60a9843af624 - std[104cf6e2632825ea]::sys::backtrace::__rust_begin_short_backtrace::<test[73009c9f9aebf890]::run_test::{closure#1}, ()>
[INFO] [stdout]   18:     0x60a9843b93c2 - <std[104cf6e2632825ea]::thread::lifecycle::spawn_unchecked<test[73009c9f9aebf890]::run_test::{closure#1}, ()>::{closure#1} as core[7c831bd917ebf35f]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stdout]   19:     0x60a984427f89 - <std[104cf6e2632825ea]::sys::thread::unix::Thread>::new::thread_start
[INFO] [stdout]   20:     0x76f5c18c807a - <unknown>
[INFO] [stderr] error: test failed, to rerun pass `--bin codecrafters-http-server`
[INFO] [stdout]   21:     0x76f5c195b534 - clone
[INFO] [stdout]   22:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     handler::tests::handle_http_request_post_file_route
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 12 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "b9ca64e336f544fe5fe134d5f4a696ed40985df393e48dbf19cf5d3ac225c7f2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b9ca64e336f544fe5fe134d5f4a696ed40985df393e48dbf19cf5d3ac225c7f2", kill_on_drop: false }`
[INFO] [stdout] b9ca64e336f544fe5fe134d5f4a696ed40985df393e48dbf19cf5d3ac225c7f2
