[INFO] cloning repository https://github.com/margbug01/amp-proxy-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/margbug01/amp-proxy-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmargbug01%2Famp-proxy-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmargbug01%2Famp-proxy-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c5741d78b02c07cd1aeb8c82d97dd1e86c2cc5e9
[INFO] testing margbug01/amp-proxy-rs against 1.98.0-beta.1 for beta-1.98-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmargbug01%2Famp-proxy-rs" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/margbug01/amp-proxy-rs
[INFO] finished tweaking git repo https://github.com/margbug01/amp-proxy-rs
[INFO] tweaked toml for git repo https://github.com/margbug01/amp-proxy-rs written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/margbug01/amp-proxy-rs on toolchain 1.98.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/margbug01/amp-proxy-rs 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.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] a8f66b7a49d81eb7a9f2c547138a4cf256f2ae98858ab11c0e7cad9f6791c5df
[INFO] running `Command { std: "docker" "start" "a8f66b7a49d81eb7a9f2c547138a4cf256f2ae98858ab11c0e7cad9f6791c5df", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a8f66b7a49d81eb7a9f2c547138a4cf256f2ae98858ab11c0e7cad9f6791c5df", 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" "a8f66b7a49d81eb7a9f2c547138a4cf256f2ae98858ab11c0e7cad9f6791c5df" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a8f66b7a49d81eb7a9f2c547138a4cf256f2ae98858ab11c0e7cad9f6791c5df", 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" "a8f66b7a49d81eb7a9f2c547138a4cf256f2ae98858ab11c0e7cad9f6791c5df" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.186
[INFO] [stderr]    Compiling futures-core v0.3.32
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling zerofrom v0.1.7
[INFO] [stderr]    Compiling futures-task v0.3.32
[INFO] [stderr]    Compiling futures-io v0.3.32
[INFO] [stderr]    Compiling slab v0.4.12
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]    Compiling cc v1.2.61
[INFO] [stderr]    Compiling futures-channel v0.3.32
[INFO] [stderr]    Compiling http v1.4.0
[INFO] [stderr]    Compiling yoke v0.8.2
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling tracing v0.1.44
[INFO] [stderr]    Compiling zerovec v0.11.6
[INFO] [stderr]    Compiling futures-util v0.3.32
[INFO] [stderr]    Compiling zeroize v1.8.2
[INFO] [stderr]    Compiling zerotrie v0.2.4
[INFO] [stderr]    Compiling rustls-pki-types v1.14.1
[INFO] [stderr]    Compiling sync_wrapper v1.0.2
[INFO] [stderr]    Compiling atomic-waker v1.1.2
[INFO] [stderr]    Compiling rustversion v1.0.22
[INFO] [stderr]    Compiling http-body v1.0.1
[INFO] [stderr]    Compiling tinystr v0.8.3
[INFO] [stderr]    Compiling potential_utf v0.1.5
[INFO] [stderr]    Compiling icu_collections v2.2.0
[INFO] [stderr]    Compiling rustls v0.23.39
[INFO] [stderr]    Compiling icu_locale_core v2.2.0
[INFO] [stderr]    Compiling tower-layer v0.3.3
[INFO] [stderr]    Compiling errno v0.3.14
[INFO] [stderr]    Compiling mio v1.2.0
[INFO] [stderr]    Compiling signal-hook-registry v1.4.8
[INFO] [stderr]    Compiling socket2 v0.6.3
[INFO] [stderr]    Compiling getrandom v0.2.17
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling form_urlencoded v1.2.2
[INFO] [stderr]    Compiling subtle v2.6.1
[INFO] [stderr]    Compiling regex-syntax v0.8.10
[INFO] [stderr]    Compiling ryu v1.0.23
[INFO] [stderr]    Compiling tokio v1.52.1
[INFO] [stderr]    Compiling utf8parse v0.2.2
[INFO] [stderr]    Compiling anstyle-parse v1.0.0
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling http-body-util v0.1.3
[INFO] [stderr]    Compiling icu_provider v2.2.0
[INFO] [stderr]    Compiling getrandom v0.4.2
[INFO] [stderr]    Compiling anstyle-query v1.1.5
[INFO] [stderr]    Compiling icu_properties v2.2.0
[INFO] [stderr]    Compiling icu_normalizer v2.2.0
[INFO] [stderr]    Compiling anstyle v1.0.14
[INFO] [stderr]    Compiling colorchoice v1.0.5
[INFO] [stderr]    Compiling is_terminal_polyfill v1.70.2
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling serde_json v1.0.149
[INFO] [stderr]    Compiling anstream v1.0.0
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling webpki-roots v1.0.7
[INFO] [stderr]    Compiling iri-string v0.7.12
[INFO] [stderr]    Compiling clap_lex v1.1.0
[INFO] [stderr]    Compiling strsim v0.11.1
[INFO] [stderr]    Compiling anyhow v1.0.102
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling hashbrown v0.17.0
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling regex-automata v0.4.14
[INFO] [stderr]    Compiling clap_derive v4.6.1
[INFO] [stderr]    Compiling indexmap v2.14.0
[INFO] [stderr]    Compiling url v2.5.8
[INFO] [stderr]    Compiling clap_builder v4.6.0
[INFO] [stderr]    Compiling axum-core v0.4.5
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rustls-webpki v0.103.13
[INFO] [stderr]    Compiling hyper v1.9.0
[INFO] [stderr]    Compiling tower v0.5.3
[INFO] [stderr]    Compiling tokio-util v0.7.18
[INFO] [stderr]    Compiling tower-http v0.6.8
[INFO] [stderr]    Compiling matchers v0.2.0
[INFO] [stderr]    Compiling hyper-util v0.1.20
[INFO] [stderr]    Compiling futures-executor v0.3.32
[INFO] [stderr]    Compiling serde_path_to_error v0.1.20
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]    Compiling iana-time-zone v0.1.65
[INFO] [stderr]    Compiling unsafe-libyaml v0.2.11
[INFO] [stderr]    Compiling matchit v0.7.3
[INFO] [stderr]    Compiling async-stream v0.3.6
[INFO] [stderr]    Compiling tracing-subscriber v0.3.23
[INFO] [stderr]    Compiling chrono v0.4.44
[INFO] [stderr]    Compiling axum v0.7.9
[INFO] [stderr]    Compiling serde_yaml v0.9.34+deprecated
[INFO] [stderr]    Compiling futures v0.3.32
[INFO] [stderr]    Compiling uuid v1.23.1
[INFO] [stderr]    Compiling clap v4.6.1
[INFO] [stderr]    Compiling regex v1.12.3
[INFO] [stderr]    Compiling rand v0.8.6
[INFO] [stderr]    Compiling arc-swap v1.9.1
[INFO] [stderr]    Compiling tokio-rustls v0.26.4
[INFO] [stderr]    Compiling hyper-rustls v0.27.9
[INFO] [stderr]    Compiling reqwest v0.12.28
[INFO] [stderr]    Compiling amp-proxy v0.3.1 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 00s
[INFO] running `Command { std: "docker" "inspect" "a8f66b7a49d81eb7a9f2c547138a4cf256f2ae98858ab11c0e7cad9f6791c5df", 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" "a8f66b7a49d81eb7a9f2c547138a4cf256f2ae98858ab11c0e7cad9f6791c5df" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling zerocopy v0.8.48
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling zerocopy-derive v0.8.48
[INFO] [stderr]    Compiling tokio v1.52.1
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]    Compiling lexical-util v1.0.7
[INFO] [stderr]    Compiling rayon-core v1.13.0
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]    Compiling ciborium-io v0.2.2
[INFO] [stderr]    Compiling plotters-backend v0.3.7
[INFO] [stderr]    Compiling ref-cast v1.0.25
[INFO] [stderr]    Compiling itertools v0.10.5
[INFO] [stderr]    Compiling plotters-svg v0.3.7
[INFO] [stderr]    Compiling ref-cast-impl v1.0.25
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.18
[INFO] [stderr]    Compiling lexical-write-integer v1.0.6
[INFO] [stderr]    Compiling lexical-parse-integer v1.0.6
[INFO] [stderr]    Compiling crossbeam-deque v0.8.6
[INFO] [stderr]    Compiling float-cmp v0.9.0
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling same-file v1.0.6
[INFO] [stderr]    Compiling lexical-parse-float v1.0.6
[INFO] [stderr]    Compiling lexical-write-float v1.0.6
[INFO] [stderr]    Compiling cast v0.3.0
[INFO] [stderr]    Compiling chrono v0.4.44
[INFO] [stderr]    Compiling serde_yaml v0.9.34+deprecated
[INFO] [stderr]    Compiling walkdir v2.5.0
[INFO] [stderr]    Compiling lexical-core v1.0.6
[INFO] [stderr]    Compiling tinytemplate v1.2.1
[INFO] [stderr]    Compiling criterion-plot v0.5.0
[INFO] [stderr]    Compiling rayon v1.12.0
[INFO] [stderr]    Compiling plotters v0.3.7
[INFO] [stderr]    Compiling is-terminal v0.4.17
[INFO] [stderr]    Compiling anes v0.1.6
[INFO] [stderr]    Compiling simdutf8 v0.1.5
[INFO] [stderr]    Compiling oorandom v11.1.5
[INFO] [stderr]    Compiling hyper v1.9.0
[INFO] [stderr]    Compiling tower v0.5.3
[INFO] [stderr]    Compiling tokio-rustls v0.26.4
[INFO] [stderr]    Compiling tokio-util v0.7.18
[INFO] [stderr]    Compiling tower-http v0.6.8
[INFO] [stderr]    Compiling ahash v0.8.12
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling half v2.7.1
[INFO] [stderr]    Compiling hashbrown v0.14.5
[INFO] [stderr]    Compiling ciborium-ll v0.2.2
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling ciborium v0.2.2
[INFO] [stderr]    Compiling hyper-util v0.1.20
[INFO] [stderr]    Compiling rand v0.8.6
[INFO] [stderr]    Compiling halfbrown v0.2.5
[INFO] [stderr]    Compiling criterion v0.5.1
[INFO] [stderr]    Compiling value-trait v0.8.1
[INFO] [stderr]    Compiling simd-json v0.13.11
[INFO] [stderr]    Compiling hyper-rustls v0.27.9
[INFO] [stderr]    Compiling axum v0.7.9
[INFO] [stderr]    Compiling reqwest v0.12.28
[INFO] [stderr]    Compiling amp-proxy v0.3.1 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1m 16s
[INFO] running `Command { std: "docker" "inspect" "a8f66b7a49d81eb7a9f2c547138a4cf256f2ae98858ab11c0e7cad9f6791c5df", 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" "a8f66b7a49d81eb7a9f2c547138a4cf256f2ae98858ab11c0e7cad9f6791c5df" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.44s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/amp_proxy-221bfab518431525)
[INFO] [stdout] 
[INFO] [stdout] running 182 tests
[INFO] [stdout] test access_log::tests::json_content_type_detection ... ok
[INFO] [stdout] test access_log::tests::peek_handles_empty_body_without_panic ... ok
[INFO] [stdout] test amp::fallback_handlers::tests::duplicate_model_fails_over_to_second_provider ... ok
[INFO] [stdout] test access_log::tests::peek_extracts_model_and_stream_fields ... ok
[INFO] [stdout] test amp::fallback_handlers::tests::gemini_default_mode_falls_through_to_ampcode ... ok
[INFO] [stdout] test amp::fallback_handlers::tests::extracts_model_from_gemini_path ... ok
[INFO] [stdout] test amp::fallback_handlers::tests::gemini_translate_mode_routes_to_custom ... ok
[INFO] [stdout] test amp::fallback_handlers::tests::is_google_native_path_basics ... ok
[INFO] [stdout] test amp::fallback_handlers::tests::mapping_kicks_in_when_force_disabled ... ok
[INFO] [stdout] test amp::fallback_handlers::tests::gemini_translate_now_handles_streamgenerate ... ok
[INFO] [stdout] test amp::fallback_handlers::tests::extract_model_prefers_body_over_path ... ok
[INFO] [stdout] test amp::fallback_handlers::tests::known_model_routes_to_custom_provider ... ok
[INFO] [stdout] test amp::fallback_handlers::tests::force_mapping_routes_via_mapping_even_if_orig_exists ... ok
[INFO] [stdout] test amp::fallback_handlers::tests::no_model_falls_back_to_ampcode ... ok
[INFO] [stdout] test amp::fallback_handlers::tests::unknown_model_falls_back_to_ampcode ... ok
[INFO] [stdout] test amp::gemini_bridge::tests::status_demotes_informational ... ok
[INFO] [stdout] test amp::fallback_handlers::tests::thinking_suffix_preserved_on_mapping ... ok
[INFO] [stdout] test amp::gemini_bridge::tests::ensure_stream_field_overwrites_existing ... ok
[INFO] [stdout] test amp::gemini_bridge::tests::strip_reasoning_removes_fields ... ok
[INFO] [stdout] test amp::gemini_bridge::tests::ensure_stream_field_sets_true ... ok
[INFO] [stdout] test amp::model_mapping::tests::empty_rules_are_skipped ... ok
[INFO] [stdout] test amp::gemini_bridge::tests::translate_request_calls_real_translator ... ok
[INFO] [stdout] test amp::model_mapping::tests::exact_match_case_insensitive ... ok
[INFO] [stdout] test amp::model_mapping::tests::invalid_regex_returns_err ... ok
[INFO] [stdout] test amp::fallback_handlers::tests::model_mapping_can_target_provider_alias ... ok
[INFO] [stdout] test amp::prefixed_body::tests::empty_prefix_passes_through_tail_only ... ok
[INFO] [stdout] test amp::model_mapping::tests::no_match_returns_none ... ok
[INFO] [stdout] test amp::model_mapping::tests::regex_match ... ok
[INFO] [stdout] test amp::model_mapping::tests::exact_priority_over_regex ... ok
[INFO] [stdout] test amp::model_mapping::tests::regex_rules_evaluated_in_order ... ok
[INFO] [stdout] test amp::model_mapping::tests::regex_case_insensitive ... ok
[INFO] [stdout] test amp::proxy::tests::provider_alias_rewrites_model ... ok
[INFO] [stdout] test amp::prefixed_body::tests::prefixed_body_yields_prefix_then_tail ... ok
[INFO] [stdout] test amp::proxy::tests::streaming_variant_caps_body_size ... ok
[INFO] [stdout] test amp::proxy::tests::sanitize_headers_strips_auth_and_betas ... ok
[INFO] [stdout] test amp::prefixed_body::tests::empty_tail_yields_only_prefix ... ok
[INFO] [stdout] test amp::proxy::tests::no_upgrade_when_already_streaming ... ok
[INFO] [stdout] test amp::proxy::tests::applies_overrides_and_upgrades_stream ... ok
[INFO] [stdout] test amp::proxy::tests::streaming_variant_pipes_body ... ok
[INFO] [stdout] test amp::response_rewriter::tests::filter_beta_features_removes_target ... ok
[INFO] [stdout] test amp::response_rewriter::tests::rewrites_model_field ... ok
[INFO] [stdout] test amp::response_rewriter::tests::sanitize_drops_unsigned_thinking ... ok
[INFO] [stdout] test amp::response_rewriter::tests::sanitize_strips_signature_from_tool_use ... ok
[INFO] [stdout] test amp::response_rewriter::tests::sse_chunk_rewrites_data_lines ... ok
[INFO] [stdout] test amp::response_rewriter::tests::injects_empty_signature ... ok
[INFO] [stdout] test amp::routes::tests::can_stream_blocks_messages_post ... ok
[INFO] [stdout] test amp::routes::tests::can_stream_blocks_responses_translate ... ok
[INFO] [stdout] test amp::routes::tests::can_stream_blocks_model_mapping ... ok
[INFO] [stdout] test amp::routes::tests::provider_alias_routes_as_alias_but_rewrites_to_upstream_model ... ok
[INFO] [stdout] test amp::routes::tests::rewrite_model_passes_through_invalid_json ... ok
[INFO] [stdout] test amp::routes::tests::rewrite_model_in_body_replaces_field ... ok
[INFO] [stdout] test amp::routes::tests::split_prefix_caps_at_limit_and_preserves_tail ... ok
[INFO] [stdout] test amp::routes::tests::peek_prefix_finds_model_in_first_chunk ... ok
[INFO] [stdout] test amp::routes::tests::peek_prefix_falls_back_to_full_buffer_when_model_at_end ... ok
[INFO] [stdout] test amp::routes::tests::split_prefix_returns_full_body_when_under_limit ... ok
[INFO] [stdout] test amp::secret::tests::encode_known_vector ... ok
[INFO] [stdout] test amp::secret::tests::generated_keys_are_url_safe ... ok
[INFO] [stdout] test amp::secret::tests::generated_key_is_non_empty_and_correct_length ... ok
[INFO] [stdout] test amp::secret::tests::generated_keys_are_unique ... ok
[INFO] [stdout] test auth::tests::contains_round_trip ... ok
[INFO] [stdout] test auth::tests::set_keys_replaces ... ok
[INFO] [stdout] test body_capture::tests::append_headers_redacts_sensitive_values ... ok
[INFO] [stdout] test body_capture::tests::sanitize_replaces_path_separators_and_reserved ... ok
[INFO] [stdout] test body_capture::tests::should_skip_by_content_length_only_when_explicitly_over_limit ... ok
[INFO] [stdout] test body_capture::tests::skips_when_path_substring_does_not_match ... ok
[INFO] [stdout] test body_capture::tests::request_content_length_over_limit_skips_capture_and_preserves_body ... ok
[INFO] [stdout] test bodylimit::tests::read_all_exact_limit ... ok
[INFO] [stdout] test bodylimit::tests::read_all_bytes_under_limit ... ok
[INFO] [stdout] test bodylimit::tests::read_prefix_reports_fits ... ok
[INFO] [stdout] test bodylimit::tests::read_all_under_limit ... ok
[INFO] [stdout] test capture_pretty::tests::parses_json_body_as_json ... ok
[INFO] [stdout] test body_capture::tests::writes_a_file_when_path_matches ... ok
[INFO] [stdout] test auth::tests::concurrent_reads_and_swaps_dont_block ... ok
[INFO] [stdout] test bodylimit::tests::read_all_over_limit ... ok
[INFO] [stdout] test capture_pretty::tests::parses_non_json_body_as_string ... ok
[INFO] [stdout] test config::tests::accepts_provider_with_only_model_aliases ... ok
[INFO] [stdout] test capture_pretty::tests::writes_output_file ... ok
[INFO] [stdout] test config::tests::allows_duplicate_provider_models ... ok
[INFO] [stdout] test bodylimit::tests::read_all_bytes_over_limit ... ok
[INFO] [stdout] test config::tests::rejects_empty_api_keys ... ok
[INFO] [stdout] test access_log::tests::peek_skips_oversized_body_but_rebuilds_it_intact ... ok
[INFO] [stdout] test config::tests::parses_minimal_config ... ok
[INFO] [stdout] test config::tests::rejects_bad_gemini_route_mode ... ok
[INFO] [stdout] test config::tests::rejects_empty_model_alias ... ok
[INFO] [stdout] test bodylimit::tests::read_prefix_reports_overflow ... ok
[INFO] [stdout] test customproxy::extract_leaf::tests::already_leaf ... ok
[INFO] [stdout] test customproxy::extract_leaf::tests::anthropic_messages ... ok
[INFO] [stdout] test customproxy::extract_leaf::tests::bare_v1_prefix ... ok
[INFO] [stdout] test customproxy::extract_leaf::tests::bare_v1beta_prefix ... ok
[INFO] [stdout] test customproxy::extract_leaf::tests::empty_input ... ok
[INFO] [stdout] test config::tests::restrict_management_defaults_true ... ok
[INFO] [stdout] test config::tests::rejects_duplicate_provider_names ... ok
[INFO] [stdout] test customproxy::extract_leaf::tests::provider_prefix_and_v1 ... ok
[INFO] [stdout] test customproxy::extract_leaf::tests::google_v1beta1 ... ok
[INFO] [stdout] test customproxy::extract_leaf::tests::google_v1beta_with_action_suffix ... ok
[INFO] [stdout] test customproxy::extract_leaf::tests::provider_prefix_no_trailing_segment ... ok
[INFO] [stdout] test customproxy::gemini_translator::tests::normalize_schema_preserves_enum_case ... ok
[INFO] [stdout] test customproxy::gemini_translator::tests::bare_text_request_translates ... ok
[INFO] [stdout] test customproxy::gemini_translator::tests::request_with_function_call_pairs_call_ids ... ok
[INFO] [stdout] test customproxy::gemini_translator::tests::request_with_tools_and_thinking_suffix ... ok
[INFO] [stdout] test customproxy::gemini_stream_translator::tests::text_delta_translates_to_gemini_chunk ... ok
[INFO] [stdout] test customproxy::gemini_stream_translator::tests::unknown_event_does_not_break_stream ... ok
[INFO] [stdout] test customproxy::gemini_stream_translator::tests::function_call_translates_to_function_call_part ... ok
[INFO] [stdout] test customproxy::gemini_translator::tests::response_with_function_call_translates_back ... ok
[INFO] [stdout] test customproxy::messages_translator::tests::streaming_text_delta_produces_gemini_chunk ... ok
[INFO] [stdout] test customproxy::messages_translator::tests::translate_request_adds_missing_tool_result_immediately_after_tool_use ... ok
[INFO] [stdout] test customproxy::messages_translator::tests::translate_request_basic_with_system ... ok
[INFO] [stdout] test customproxy::messages_translator::tests::translate_request_empty_input_adds_default_user_message ... ok
[INFO] [stdout] test customproxy::messages_translator::tests::translate_request_converts_orphan_tool_result_to_text ... ok
[INFO] [stdout] test customproxy::messages_translator::tests::translate_request_converts_unmatched_tool_result_after_tool_use_to_text ... ok
[INFO] [stdout] test customproxy::messages_translator::tests::translate_request_keeps_tool_results_immediately_after_tool_use ... ok
[INFO] [stdout] test customproxy::messages_translator::tests::translate_response_with_tool_use ... ok
[INFO] [stdout] test customproxy::messages_translator::tests::translate_request_with_tool_calls ... ok
[INFO] [stdout] test customproxy::messages_translator::tests::translate_response_rejects_non_message ... ok
[INFO] [stdout] test customproxy::messages_translator::tests::translate_response_basic_text ... ok
[INFO] [stdout] test customproxy::responses_stream_translator::tests::maps_usage_from_final_chunk ... ok
[INFO] [stdout] test customproxy::responses_translator::tests::chat_completion_passes_through_error_shape ... ok
[INFO] [stdout] test customproxy::responses_stream_translator::tests::function_call_chunks_translate ... ok
[INFO] [stdout] test customproxy::messages_translator::tests::translate_request_preserves_user_message_input_text ... ok
[INFO] [stdout] test customproxy::responses_translator::tests::basic_field_mapping_max_output_tokens_to_max_tokens ... ok
[INFO] [stdout] test customproxy::messages_translator::tests::translate_request_system_only_adds_fallback_user_message ... ok
[INFO] [stdout] test customproxy::responses_translator::tests::chat_completion_translates_back_to_responses ... ok
[INFO] [stdout] test customproxy::responses_translator::tests::function_call_output_becomes_role_tool_message ... ok
[INFO] [stdout] test customproxy::responses_translator::tests::responses_only_fields_dropped_and_ctx_carries_prompt_cache_key ... ok
[INFO] [stdout] test customproxy::responses_translator::tests::function_calls_without_prior_assistant_text_emit_null_content ... ok
[INFO] [stdout] test customproxy::responses_stream_translator::tests::single_text_chunk_emits_correct_event_order ... ok
[INFO] [stdout] test customproxy::sse_messages_collapser::tests::empty_content ... ok
[INFO] [stdout] test customproxy::responses_translator::tests::tool_translation_unwraps_to_chat_shape ... ok
[INFO] [stdout] test customproxy::sse_messages_collapser::tests::multiple_text_deltas_concatenate ... ok
[INFO] [stdout] test customproxy::sse_messages_collapser::tests::no_message_start_rejected ... ok
[INFO] [stdout] test customproxy::sse_messages_collapser::tests::simple_text ... ok
[INFO] [stdout] test customproxy::sse_messages_collapser::tests::tool_use ... ok
[INFO] [stdout] test customproxy::sse_rewriter::tests::idempotent_on_non_empty_output ... ok
[INFO] [stdout] test customproxy::sse_rewriter::tests::multiple_items_in_order ... ok
[INFO] [stdout] test customproxy::retry_transport::tests::retry_once_then_success ... ok
[INFO] [stdout] test customproxy::retry_transport::tests::max_retries_fail ... ok
[INFO] [stdout] test customproxy::sse_rewriter::tests::patches_empty_output_array ... ok
[INFO] [stdout] test customproxy::tests::alias_lookup_preserves_thinking_suffix_when_upstream_is_unsuffixed ... ok
[INFO] [stdout] test customproxy::tests::aliases_register_for_lookup_and_rewrite_to_upstream ... ok
[INFO] [stdout] test customproxy::tests::configure_and_lookup_case_insensitive ... ok
[INFO] [stdout] test customproxy::tests::duplicate_model_can_fail_over_to_second_after_first_unhealthy ... ok
[INFO] [stdout] test customproxy::tests::global_returns_same_instance ... ok
[INFO] [stdout] test customproxy::tests::model_lookup_key_normalizes ... ok
[INFO] [stdout] test customproxy::tests::model_ids_sorted ... ok
[INFO] [stdout] test customproxy::tests::rejects_duplicate_provider_name ... ok
[INFO] [stdout] test customproxy::tests::record_success_recovers_primary ... ok
[INFO] [stdout] test customproxy::retry_transport::tests::non_transient_does_not_retry ... ok
[INFO] [stdout] test customproxy::tests::thinking_suffix_fallback ... ok
[INFO] [stdout] test customproxy::retry_transport::tests::success_first_try ... ok
[INFO] [stdout] test customproxy::tests::strip_thinking_suffix_basic ... ok
[INFO] [stdout] test customproxy::sse_messages_collapser::tests::error_event_aborts ... ok
[INFO] [stdout] test customproxy::tests::rejects_invalid_provider ... ok
[INFO] [stdout] test init::tests::render_then_parse_round_trips ... ok
[INFO] [stdout] test init::tests::render_then_validate_passes ... ok
[INFO] [stdout] test init::tests::run_writes_file_and_refuses_overwrite ... ok
[INFO] [stdout] test customproxy::messages_translator::tests::translate_request_groups_assistant_text_and_parallel_tool_uses ... ok
[INFO] [stdout] test customproxy::sse_rewriter::tests::non_data_lines_pass_through ... ok
[INFO] [stdout] test init::tests::yaml_string_escapes_quotes ... ok
[INFO] [stdout] test metrics::tests::render_prometheus_exports_counters_and_histogram ... ok
[INFO] [stdout] test proxy::tests::forward_streams_request_body_in_chunks ... ok
[INFO] [stdout] test proxy::tests::forward_rejects_oversize_body ... ok
[INFO] [stdout] test proxy::tests::sanitize_request_headers_without_upstream_key_has_no_authorization ... ok
[INFO] [stdout] test proxy::tests::sanitize_request_headers_strips_local_auth_headers ... ok
[INFO] [stdout] test proxy::tests::sanitize_request_headers_strips_hop_by_hop_headers ... ok
[INFO] [stdout] test proxy::tests::sanitize_request_headers_injects_upstream_bearer ... ok
[INFO] [stdout] test thinking::tests::bare_model_no_suffix ... ok
[INFO] [stdout] test thinking::tests::low_medium_xhigh_effort ... ok
[INFO] [stdout] test thinking::tests::parens_but_not_a_suffix ... ok
[INFO] [stdout] test thinking::tests::whitespace_inside_suffix_is_trimmed ... ok
[INFO] [stdout] test util::tests::extracts_name_with_subpath ... ok
[INFO] [stdout] test util::tests::extracts_name_with_trailing_slash ... ok
[INFO] [stdout] test util::tests::extracts_name_without_subpath ... ok
[INFO] [stdout] test server::tests::metrics_endpoint_is_unauthenticated_and_skipped_by_metrics_middleware ... ok
[INFO] [stdout] test thinking::tests::unknown_string_suffix_has_suffix_but_no_effort ... ok
[INFO] [stdout] test util::tests::name_with_dashes_and_dots ... ok
[INFO] [stdout] test util::tests::returns_empty_for_non_provider_path ... ok
[INFO] [stdout] test util::tests::returns_empty_when_name_missing ... ok
[INFO] [stdout] test server::tests::admin_status_requires_auth_and_returns_json ... ok
[INFO] [stdout] test thinking::tests::budget_tokens_suffix ... ok
[INFO] [stdout] test thinking::tests::empty_suffix_has_suffix_true_no_classification ... ok
[INFO] [stdout] test thinking::tests::high_effort_suffix ... ok
[INFO] [stdout] test body_capture::tests::append_body_truncates_above_cap ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 182 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/amp_proxy-ef96e6735db0d2bf)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stderr]    Doc-tests amp_proxy
[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] running `Command { std: "docker" "inspect" "a8f66b7a49d81eb7a9f2c547138a4cf256f2ae98858ab11c0e7cad9f6791c5df", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a8f66b7a49d81eb7a9f2c547138a4cf256f2ae98858ab11c0e7cad9f6791c5df", kill_on_drop: false }`
[INFO] [stdout] a8f66b7a49d81eb7a9f2c547138a4cf256f2ae98858ab11c0e7cad9f6791c5df
