[INFO] fetching crate openai-func-embeddings 0.4.0... [INFO] testing openai-func-embeddings-0.4.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate openai-func-embeddings 0.4.0 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate openai-func-embeddings 0.4.0 [INFO] finished tweaking crates.io crate openai-func-embeddings 0.4.0 [INFO] tweaked toml for crates.io crate openai-func-embeddings 0.4.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate openai-func-embeddings 0.4.0 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "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" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 199 packages to latest compatible versions [INFO] [stderr] Adding async-openai v0.19.1 (available: v0.29.2) [INFO] [stderr] Adding rkyv v0.7.45 (available: v0.8.11) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b7a454114bf9c2313ca8c18365f28a9adffa5f52e62e7d18a1f4b213d42fcdb4 [INFO] running `Command { std: "docker" "start" "-a" "b7a454114bf9c2313ca8c18365f28a9adffa5f52e62e7d18a1f4b213d42fcdb4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b7a454114bf9c2313ca8c18365f28a9adffa5f52e62e7d18a1f4b213d42fcdb4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7a454114bf9c2313ca8c18365f28a9adffa5f52e62e7d18a1f4b213d42fcdb4", kill_on_drop: false }` [INFO] [stdout] b7a454114bf9c2313ca8c18365f28a9adffa5f52e62e7d18a1f4b213d42fcdb4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ebb791f79d180e82687c0f6a1ed7c16ae0b4f037c8a75624a35b9d9c80d9cbe5 [INFO] running `Command { std: "docker" "start" "-a" "ebb791f79d180e82687c0f6a1ed7c16ae0b4f037c8a75624a35b9d9c80d9cbe5", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling bytecheck v0.6.12 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rustls-native-certs v0.6.3 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling simdutf8 v0.1.5 [INFO] [stderr] Compiling rend v0.4.2 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling eventsource-stream v0.2.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling rkyv v0.7.45 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling secrecy v0.8.0 [INFO] [stderr] Compiling seahash v4.1.0 [INFO] [stderr] Compiling async-convert v1.0.0 [INFO] [stderr] Compiling darling_core v0.14.4 [INFO] [stderr] Compiling ptr_meta_derive v0.1.4 [INFO] [stderr] Compiling bytecheck_derive v0.6.12 [INFO] [stderr] Compiling rkyv_derive v0.7.45 [INFO] [stderr] Compiling ptr_meta v0.1.4 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling darling_macro v0.14.4 [INFO] [stderr] Compiling backoff v0.4.0 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling darling v0.14.4 [INFO] [stderr] Compiling derive_builder_core v0.12.0 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling derive_builder_macro v0.12.0 [INFO] [stderr] Compiling derive_builder v0.12.0 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling reqwest-eventsource v0.4.0 [INFO] [stderr] Compiling async-openai v0.19.1 [INFO] [stderr] Compiling openai-func-embeddings v0.4.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 11s [INFO] running `Command { std: "docker" "inspect" "ebb791f79d180e82687c0f6a1ed7c16ae0b4f037c8a75624a35b9d9c80d9cbe5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ebb791f79d180e82687c0f6a1ed7c16ae0b4f037c8a75624a35b9d9c80d9cbe5", kill_on_drop: false }` [INFO] [stdout] ebb791f79d180e82687c0f6a1ed7c16ae0b4f037c8a75624a35b9d9c80d9cbe5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 21eb01446d680685c6ae5bef1c0ce88d9cbc4696d794ac5749141ed7b87e5c09 [INFO] running `Command { std: "docker" "start" "-a" "21eb01446d680685c6ae5bef1c0ce88d9cbc4696d794ac5749141ed7b87e5c09", kill_on_drop: false }` [INFO] [stderr] Compiling openai-func-embeddings v0.4.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.21s [INFO] running `Command { std: "docker" "inspect" "21eb01446d680685c6ae5bef1c0ce88d9cbc4696d794ac5749141ed7b87e5c09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21eb01446d680685c6ae5bef1c0ce88d9cbc4696d794ac5749141ed7b87e5c09", kill_on_drop: false }` [INFO] [stdout] 21eb01446d680685c6ae5bef1c0ce88d9cbc4696d794ac5749141ed7b87e5c09 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 25c1d27d8451387d81dabbeeee0e4266dd243419b7dedfc481dfb8b781480dcb [INFO] running `Command { std: "docker" "start" "-a" "25c1d27d8451387d81dabbeeee0e4266dd243419b7dedfc481dfb8b781480dcb", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/openai_func_embeddings-10c140fc38be9382) [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] [stderr] Doc-tests openai_func_embeddings [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - get_ranked_function_names (line 128) ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] test src/lib.rs - single_embedding (line 38) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - get_ranked_function_names (line 128) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/lib.rs:131:22 [INFO] [stdout] | [INFO] [stdout] 5 | let embed_path = Path::new("function_embeddings.bin"); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_ranked_function_names` in this scope [INFO] [stdout] --> src/lib.rs:132:33 [INFO] [stdout] | [INFO] [stdout] 6 | let ranked_function_names = get_ranked_function_names(prompt_embedding, embed_path).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use openai_func_embeddings::get_ranked_function_names; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - single_embedding (line 38) stdout ---- [INFO] [stdout] error: The default runtime flavor is `multi_thread`, but the `rt-multi-thread` feature is disabled. [INFO] [stdout] --> src/lib.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 5 | #[tokio::main] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `tokio::main` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `your_module` [INFO] [stdout] --> src/lib.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 3 | use your_module::{single_embedding, FuncEnumsError, Client, CreateEmbeddingRequestArgs}; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `your_module` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_module`, use `cargo add your_module` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - get_ranked_function_names (line 128) [INFO] [stdout] src/lib.rs - single_embedding (line 38) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.17s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "25c1d27d8451387d81dabbeeee0e4266dd243419b7dedfc481dfb8b781480dcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25c1d27d8451387d81dabbeeee0e4266dd243419b7dedfc481dfb8b781480dcb", kill_on_drop: false }` [INFO] [stdout] 25c1d27d8451387d81dabbeeee0e4266dd243419b7dedfc481dfb8b781480dcb