[INFO] fetching crate openai-mock 0.1.0... [INFO] testing openai-mock-0.1.0 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate openai-mock 0.1.0 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate openai-mock 0.1.0 [INFO] finished tweaking crates.io crate openai-mock 0.1.0 [INFO] tweaked toml for crates.io crate openai-mock 0.1.0 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate openai-mock 0.1.0 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 269 packages to latest compatible versions [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] [stderr] Adding tiktoken-rs v0.6.0 (available: v0.7.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded async-convert v1.0.0 [INFO] [stderr] Downloaded eventsource-stream v0.2.3 [INFO] [stderr] Downloaded mintex v0.1.4 [INFO] [stderr] Downloaded reqwest-eventsource v0.4.0 [INFO] [stderr] Downloaded async-openai v0.14.3 [INFO] [stderr] Downloaded dhat v0.3.3 [INFO] [stderr] Downloaded thousands v0.2.0 [INFO] [stderr] Downloaded fancy-regex v0.13.0 [INFO] [stderr] Downloaded tiktoken-rs v0.6.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cd94302941e5af2d70b7622daf4f4e0eaf0fa9b6fdb4818ab9d1e73d19f116bb [INFO] running `Command { std: "docker" "start" "-a" "cd94302941e5af2d70b7622daf4f4e0eaf0fa9b6fdb4818ab9d1e73d19f116bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd94302941e5af2d70b7622daf4f4e0eaf0fa9b6fdb4818ab9d1e73d19f116bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd94302941e5af2d70b7622daf4f4e0eaf0fa9b6fdb4818ab9d1e73d19f116bb", kill_on_drop: false }` [INFO] [stdout] cd94302941e5af2d70b7622daf4f4e0eaf0fa9b6fdb4818ab9d1e73d19f116bb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ed735fb5a7e660e840ac3743a250989f698f3e27e97cc3fe0b65cb65fabf083c [INFO] running `Command { std: "docker" "start" "-a" "ed735fb5a7e660e840ac3743a250989f698f3e27e97cc3fe0b65cb65fabf083c", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling darling_core v0.14.4 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling object v0.37.3 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling cc v1.2.39 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling darling_macro v0.14.4 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling darling v0.14.4 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling derive_builder_core v0.12.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling rustls-native-certs v0.6.3 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling regex-lite v0.1.7 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling gimli v0.32.3 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling deranged v0.5.4 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling addr2line v0.25.1 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling actix-rt v2.11.0 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling eventsource-stream v0.2.3 [INFO] [stderr] Compiling bytestring v1.5.0 [INFO] [stderr] Compiling derive_builder_macro v0.12.0 [INFO] [stderr] Compiling regex v1.11.3 [INFO] [stderr] Compiling brotli-decompressor v5.0.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling rustc-demangle v0.1.26 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling brotli v8.0.2 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling backoff v0.4.0 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling derive_builder v0.12.0 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling async-convert v1.0.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling mintex v0.1.4 [INFO] [stderr] Compiling thousands v0.2.0 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling fancy-regex v0.13.0 [INFO] [stderr] Compiling actix-server v2.6.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling backtrace v0.3.76 [INFO] [stderr] Compiling bstr v1.12.0 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling actix-http v3.11.1 [INFO] [stderr] Compiling dhat v0.3.3 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling actix-web v4.11.0 [INFO] [stderr] Compiling reqwest-eventsource v0.4.0 [INFO] [stderr] Compiling async-openai v0.14.3 [INFO] [stderr] Compiling tiktoken-rs v0.6.0 [INFO] [stderr] Compiling openai-mock v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 02s [INFO] running `Command { std: "docker" "inspect" "ed735fb5a7e660e840ac3743a250989f698f3e27e97cc3fe0b65cb65fabf083c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed735fb5a7e660e840ac3743a250989f698f3e27e97cc3fe0b65cb65fabf083c", kill_on_drop: false }` [INFO] [stdout] ed735fb5a7e660e840ac3743a250989f698f3e27e97cc3fe0b65cb65fabf083c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 69320fbfd08c75952a581d88d03da37ff9dcc76c21d8eaa9afb57fb00eaf3d38 [INFO] running `Command { std: "docker" "start" "-a" "69320fbfd08c75952a581d88d03da37ff9dcc76c21d8eaa9afb57fb00eaf3d38", kill_on_drop: false }` [INFO] [stderr] Compiling openai-mock v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.30s [INFO] running `Command { std: "docker" "inspect" "69320fbfd08c75952a581d88d03da37ff9dcc76c21d8eaa9afb57fb00eaf3d38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69320fbfd08c75952a581d88d03da37ff9dcc76c21d8eaa9afb57fb00eaf3d38", kill_on_drop: false }` [INFO] [stdout] 69320fbfd08c75952a581d88d03da37ff9dcc76c21d8eaa9afb57fb00eaf3d38 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a5e968d1d3139b81996c74b3f47b2caef9d850fc5d4d5cc556f96643becc638f [INFO] running `Command { std: "docker" "start" "-a" "a5e968d1d3139b81996c74b3f47b2caef9d850fc5d4d5cc556f96643becc638f", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.32s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/openai_mock-3b1d4abfecf9eec6) [INFO] [stdout] running 12 tests [INFO] [stdout] test validators::optional_fields::tests::test_validate_frequency_penalty ... ok [INFO] [stdout] test validators::optional_fields::tests::test_validate_presence_penalty ... ok [INFO] [stdout] test validators::optional_fields::tests::test_validate_best_of ... ok [INFO] [stdout] test validators::optional_fields::tests::test_validate_temperature ... ok [INFO] [stdout] test validators::optional_fields::tests::test_validate_top_p ... ok [INFO] [stdout] test validators::optional_fields::tests::test_validate_n ... ok [INFO] [stdout] test validators::req_required_fields::tests::test_validate_empty_model ... ok [INFO] [stdout] test validators::optional_fields::tests::test_validate_max_tokens ... ok [INFO] [stdout] test validators::optional_fields::tests::test_validate_stop ... ok [INFO] [stdout] test validators::req_required_fields::tests::test_validate_valid_request ... ok [INFO] [stdout] test validators::optional_fields::tests::test_validate_logprobs ... ok [INFO] [stdout] test tests::tests::test_completions_handler ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.82s [INFO] [stdout] [INFO] [stderr] Doc-tests openai_mock [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] test src/models/completion.rs - models::completion::CompletionRequest::default (line 120) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/models/completion.rs - models::completion::CompletionRequest::default (line 120) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CompletionRequest` [INFO] [stdout] --> src/models/completion.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 3 | let default_request = CompletionRequest::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `CompletionRequest` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use openai_mock::models::CompletionRequest; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/models/completion.rs - models::completion::CompletionRequest::default (line 120) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.22s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a5e968d1d3139b81996c74b3f47b2caef9d850fc5d4d5cc556f96643becc638f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5e968d1d3139b81996c74b3f47b2caef9d850fc5d4d5cc556f96643becc638f", kill_on_drop: false }` [INFO] [stdout] a5e968d1d3139b81996c74b3f47b2caef9d850fc5d4d5cc556f96643becc638f