[INFO] fetching crate lambda_helpers_metrics 0.1.0-alpha.2... [INFO] testing lambda_helpers_metrics-0.1.0-alpha.2 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] extracting crate lambda_helpers_metrics 0.1.0-alpha.2 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate lambda_helpers_metrics 0.1.0-alpha.2 [INFO] finished tweaking crates.io crate lambda_helpers_metrics 0.1.0-alpha.2 [INFO] tweaked toml for crates.io crate lambda_helpers_metrics 0.1.0-alpha.2 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate lambda_helpers_metrics 0.1.0-alpha.2 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 38 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a7dc8e90b5fd48b57672f8cd8b38f9d66a7747bdb7b1f6239bee2e32288c40e7 [INFO] running `Command { std: "docker" "start" "-a" "a7dc8e90b5fd48b57672f8cd8b38f9d66a7747bdb7b1f6239bee2e32288c40e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a7dc8e90b5fd48b57672f8cd8b38f9d66a7747bdb7b1f6239bee2e32288c40e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7dc8e90b5fd48b57672f8cd8b38f9d66a7747bdb7b1f6239bee2e32288c40e7", kill_on_drop: false }` [INFO] [stdout] a7dc8e90b5fd48b57672f8cd8b38f9d66a7747bdb7b1f6239bee2e32288c40e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] def9bbafd7f84090f191b0df1a315b1c7668f0bc340949de1470f86a05fda90d [INFO] running `Command { std: "docker" "start" "-a" "def9bbafd7f84090f191b0df1a315b1c7668f0bc340949de1470f86a05fda90d", kill_on_drop: false }` [INFO] [stderr] Compiling chrono v0.4.44 [INFO] [stderr] Compiling lambda_helpers_metrics v0.1.0-alpha.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.17s [INFO] running `Command { std: "docker" "inspect" "def9bbafd7f84090f191b0df1a315b1c7668f0bc340949de1470f86a05fda90d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "def9bbafd7f84090f191b0df1a315b1c7668f0bc340949de1470f86a05fda90d", kill_on_drop: false }` [INFO] [stdout] def9bbafd7f84090f191b0df1a315b1c7668f0bc340949de1470f86a05fda90d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0c428f54af5882389dc277d8d5de8c170e20e12753140a20cfb6615a95ccc59f [INFO] running `Command { std: "docker" "start" "-a" "0c428f54af5882389dc277d8d5de8c170e20e12753140a20cfb6615a95ccc59f", kill_on_drop: false }` [INFO] [stderr] Compiling lambda_helpers_metrics v0.1.0-alpha.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.45s [INFO] running `Command { std: "docker" "inspect" "0c428f54af5882389dc277d8d5de8c170e20e12753140a20cfb6615a95ccc59f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c428f54af5882389dc277d8d5de8c170e20e12753140a20cfb6615a95ccc59f", kill_on_drop: false }` [INFO] [stdout] 0c428f54af5882389dc277d8d5de8c170e20e12753140a20cfb6615a95ccc59f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3873c836f3cf02081056a8b7cbe599e24b6e658220fc9be74d8e351631f0a25b [INFO] running `Command { std: "docker" "start" "-a" "3873c836f3cf02081056a8b7cbe599e24b6e658220fc9be74d8e351631f0a25b", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/lambda_helpers_metrics-e2e6b6be470da561) [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test tests::should_fail_if_over_30_dimensions ... ok [INFO] [stdout] test tests::should_handle_duplicated_metric ... ok [INFO] [stdout] test tests::should_create_metrics ... ok [INFO] [stdout] test tests::should_not_fail_over_100_metrics ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Doc-tests lambda_helpers_metrics [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - (line 32) ... FAILED [INFO] [stdout] test src/lib.rs - (line 5) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 32) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `Metrics` in this scope [INFO] [stdout] --> src/lib.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | let mut metrics = Metrics::new("custom_lambdas", "service", "dummy_service"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Metrics` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 32 + use lambda_helpers_metrics::Metrics; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MetricUnit` in this scope [INFO] [stdout] --> src/lib.rs:38:37 [INFO] [stdout] | [INFO] [stdout] 38 | metrics.add_metric("test_count", MetricUnit::Count, 10.4); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `MetricUnit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 32 + use lambda_helpers_metrics::MetricUnit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MetricUnit` in this scope [INFO] [stdout] --> src/lib.rs:40:39 [INFO] [stdout] | [INFO] [stdout] 40 | metrics.add_metric("test_seconds", MetricUnit::Seconds, 15.0); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `MetricUnit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 32 + use lambda_helpers_metrics::MetricUnit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 5) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `LambdaEvent` in this scope [INFO] [stdout] --> src/lib.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | async fn function_handler(event: LambdaEvent) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Request` in this scope [INFO] [stdout] --> src/lib.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | async fn function_handler(event: LambdaEvent) -> Result { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use std::error::Request; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Response` in this scope [INFO] [stdout] --> src/lib.rs:6:66 [INFO] [stdout] | [INFO] [stdout] 6 | async fn function_handler(event: LambdaEvent) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 6 | async fn function_handler(event: LambdaEvent) -> Result { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Error` in this scope [INFO] [stdout] --> src/lib.rs:6:76 [INFO] [stdout] | [INFO] [stdout] 6 | async fn function_handler(event: LambdaEvent) -> Result { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use std::io::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use core::error::Error; [INFO] [stdout] | [INFO] [stdout] = and 5 other candidates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Metrics` in this scope [INFO] [stdout] --> src/lib.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | let mut metrics = Metrics::new("custom_lambdas", "service", "dummy_service"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Metrics` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use lambda_helpers_metrics::Metrics; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MetricUnit` in this scope [INFO] [stdout] --> src/lib.rs:13:37 [INFO] [stdout] | [INFO] [stdout] 13 | metrics.add_metric("test_count", MetricUnit::Count, 10.4); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `MetricUnit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 5 + use lambda_helpers_metrics::MetricUnit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MetricUnit` in this scope [INFO] [stdout] --> src/lib.rs:15:39 [INFO] [stdout] | [INFO] [stdout] 15 | metrics.add_metric("test_seconds", MetricUnit::Seconds, 15.0); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `MetricUnit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 5 + use lambda_helpers_metrics::MetricUnit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MetricUnit` in this scope [INFO] [stdout] --> src/lib.rs:17:37 [INFO] [stdout] | [INFO] [stdout] 17 | metrics.add_metric("test_count", MetricUnit::Count, 10.6); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `MetricUnit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 5 + use lambda_helpers_metrics::MetricUnit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Response` in this scope [INFO] [stdout] --> src/lib.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | let resp = Response { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 32) [INFO] [stdout] src/lib.rs - (line 5) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "3873c836f3cf02081056a8b7cbe599e24b6e658220fc9be74d8e351631f0a25b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3873c836f3cf02081056a8b7cbe599e24b6e658220fc9be74d8e351631f0a25b", kill_on_drop: false }` [INFO] [stdout] 3873c836f3cf02081056a8b7cbe599e24b6e658220fc9be74d8e351631f0a25b