[INFO] cloning repository https://github.com/aimanfitri0000-byte/simple-gateway [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aimanfitri0000-byte/simple-gateway" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faimanfitri0000-byte%2Fsimple-gateway", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faimanfitri0000-byte%2Fsimple-gateway'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ce8ab144101f9934483b3fb1a034ec8063eeb388 [INFO] testing aimanfitri0000-byte/simple-gateway against 1.97.0-beta.6 for beta-1.98-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faimanfitri0000-byte%2Fsimple-gateway" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 73% (1153/1560) Updating files: 74% (1155/1560) Updating files: 75% (1170/1560) Updating files: 76% (1186/1560) Updating files: 77% (1202/1560) Updating files: 78% (1217/1560) Updating files: 79% (1233/1560) Updating files: 80% (1248/1560) Updating files: 80% (1256/1560) Updating files: 81% (1264/1560) Updating files: 82% (1280/1560) Updating files: 83% (1295/1560) Updating files: 84% (1311/1560) Updating files: 84% (1324/1560) Updating files: 85% (1326/1560) Updating files: 86% (1342/1560) Updating files: 87% (1358/1560) Updating files: 88% (1373/1560) Updating files: 88% (1386/1560) Updating files: 89% (1389/1560) Updating files: 90% (1404/1560) Updating files: 91% (1420/1560) Updating files: 92% (1436/1560) Updating files: 93% (1451/1560) Updating files: 94% (1467/1560) Updating files: 95% (1482/1560) Updating files: 96% (1498/1560) Updating files: 97% (1514/1560) Updating files: 98% (1529/1560) Updating files: 99% (1545/1560) Updating files: 100% (1560/1560) Updating files: 100% (1560/1560), done. [INFO] started tweaking git repo https://github.com/aimanfitri0000-byte/simple-gateway [INFO] finished tweaking git repo https://github.com/aimanfitri0000-byte/simple-gateway [INFO] tweaked toml for git repo https://github.com/aimanfitri0000-byte/simple-gateway written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/aimanfitri0000-byte/simple-gateway on toolchain 1.97.0-beta.6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/aimanfitri0000-byte/simple-gateway 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.97.0-beta.6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio-macros v2.6.1 [INFO] [stderr] Downloaded no-std-compat v0.4.1 [INFO] [stderr] Downloaded simple_asn1 v0.6.4 [INFO] [stderr] Downloaded cached_proc_macro_types v0.1.1 [INFO] [stderr] Downloaded bcrypt v0.15.1 [INFO] [stderr] Downloaded cached_proc_macro v0.18.1 [INFO] [stderr] Downloaded darling_macro v0.14.4 [INFO] [stderr] Downloaded darling v0.14.4 [INFO] [stderr] Downloaded blowfish v0.9.1 [INFO] [stderr] Downloaded cached v0.46.1 [INFO] [stderr] Downloaded darling_core v0.14.4 [INFO] [stderr] Downloaded governor v0.6.3 [INFO] [stderr] Downloaded tokio v1.50.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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] 2e0d064ba193f714e5625486553b9e6f36d9e5e55aea0a615c4011b9fdc49ffd [INFO] running `Command { std: "docker" "start" "2e0d064ba193f714e5625486553b9e6f36d9e5e55aea0a615c4011b9fdc49ffd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2e0d064ba193f714e5625486553b9e6f36d9e5e55aea0a615c4011b9fdc49ffd", 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" "2e0d064ba193f714e5625486553b9e6f36d9e5e55aea0a615c4011b9fdc49ffd" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2e0d064ba193f714e5625486553b9e6f36d9e5e55aea0a615c4011b9fdc49ffd", 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" "2e0d064ba193f714e5625486553b9e6f36d9e5e55aea0a615c4011b9fdc49ffd" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.184 [INFO] [stderr] Compiling itoa v1.0.18 [INFO] [stderr] Compiling once_cell v1.21.4 [INFO] [stderr] Compiling bytes v1.11.1 [INFO] [stderr] Compiling futures-core v0.3.32 [INFO] [stderr] Compiling futures-sink v0.3.32 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling find-msvc-tools v0.1.9 [INFO] [stderr] Compiling slab v0.4.12 [INFO] [stderr] Compiling futures-task v0.3.32 [INFO] [stderr] Compiling futures-io v0.3.32 [INFO] [stderr] Compiling zerocopy v0.8.48 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling futures-channel v0.3.32 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling cc v1.2.58 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling num-conv v0.2.1 [INFO] [stderr] Compiling bitflags v2.11.0 [INFO] [stderr] Compiling time-macros v0.2.27 [INFO] [stderr] Compiling protobuf v2.28.0 [INFO] [stderr] Compiling http v1.4.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling portable-atomic v1.13.1 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling regex-syntax v0.8.10 [INFO] [stderr] Compiling raw-cpuid v11.6.0 [INFO] [stderr] Compiling prometheus v0.13.4 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling mio v1.2.0 [INFO] [stderr] Compiling socket2 v0.6.3 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling time v0.3.47 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling pem v3.0.6 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling blowfish v0.9.1 [INFO] [stderr] Compiling spinning_top v0.3.0 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling nu-ansi-term v0.50.3 [INFO] [stderr] Compiling no-std-compat v0.4.1 [INFO] [stderr] Compiling iana-time-zone v0.1.65 [INFO] [stderr] Compiling nonzero_ext v0.3.0 [INFO] [stderr] Compiling ipnet v2.12.0 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling cached_proc_macro_types v0.1.1 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling bcrypt v0.15.1 [INFO] [stderr] Compiling chrono v0.4.44 [INFO] [stderr] Compiling quanta v0.12.6 [INFO] [stderr] Compiling serde_path_to_error v0.1.20 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling darling_core v0.14.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling tokio-macros v2.6.1 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling tokio v1.50.0 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling darling_macro v0.14.4 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling simple_asn1 v0.6.4 [INFO] [stderr] Compiling darling v0.14.4 [INFO] [stderr] Compiling cached_proc_macro v0.18.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling tracing-subscriber v0.3.23 [INFO] [stderr] Compiling cached v0.46.1 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling futures-executor v0.3.32 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling futures v0.3.32 [INFO] [stderr] Compiling governor v0.6.3 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling hyper v1.9.0 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling hyper-util v0.1.20 [INFO] [stderr] Compiling axum v0.7.9 [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 simple-gateway v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | use chrono::{Utc, Duration}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LoadBalancingStrategy` [INFO] [stdout] --> src/main.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | use service_registry::{LoadBalancingStrategy, REGISTRY}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `url`, `healthy`, and `connections` are never read [INFO] [stdout] --> src/service_registry.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ServiceInstance { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 10 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 11 | pub url: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | pub healthy: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | pub connections: usize, // untuk Least Connections (optional) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServiceInstance` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LoadBalancingStrategy` is never used [INFO] [stdout] --> src/service_registry.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum LoadBalancingStrategy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `select_instance` and `mark_unhealthy` are never used [INFO] [stdout] --> src/service_registry.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl ServiceRegistry { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn select_instance( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn mark_unhealthy(&mut self, service_name: &str, instance_id: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 58s [INFO] running `Command { std: "docker" "inspect" "2e0d064ba193f714e5625486553b9e6f36d9e5e55aea0a615c4011b9fdc49ffd", 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" "2e0d064ba193f714e5625486553b9e6f36d9e5e55aea0a615c4011b9fdc49ffd" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling simple-gateway v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | use chrono::{Utc, Duration}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LoadBalancingStrategy` [INFO] [stdout] --> src/main.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | use service_registry::{LoadBalancingStrategy, REGISTRY}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `url`, `healthy`, and `connections` are never read [INFO] [stdout] --> src/service_registry.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ServiceInstance { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 10 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 11 | pub url: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | pub healthy: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | pub connections: usize, // untuk Least Connections (optional) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServiceInstance` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LoadBalancingStrategy` is never used [INFO] [stdout] --> src/service_registry.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum LoadBalancingStrategy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `select_instance`, and `mark_unhealthy` are never used [INFO] [stdout] --> src/service_registry.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl ServiceRegistry { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 28 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn select_instance( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn mark_unhealthy(&mut self, service_name: &str, instance_id: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.23s [INFO] running `Command { std: "docker" "inspect" "2e0d064ba193f714e5625486553b9e6f36d9e5e55aea0a615c4011b9fdc49ffd", 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" "2e0d064ba193f714e5625486553b9e6f36d9e5e55aea0a615c4011b9fdc49ffd" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Duration` [INFO] [stderr] --> src/main.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | use chrono::{Utc, Duration}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `LoadBalancingStrategy` [INFO] [stderr] --> src/main.rs:25:24 [INFO] [stderr] | [INFO] [stderr] 25 | use service_registry::{LoadBalancingStrategy, REGISTRY}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `id`, `url`, `healthy`, and `connections` are never read [INFO] [stderr] --> src/service_registry.rs:10:9 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct ServiceInstance { [INFO] [stderr] | --------------- fields in this struct [INFO] [stderr] 10 | pub id: String, [INFO] [stderr] | ^^ [INFO] [stderr] 11 | pub url: String, [INFO] [stderr] | ^^^ [INFO] [stderr] 12 | pub healthy: bool, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 13 | pub connections: usize, // untuk Least Connections (optional) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ServiceInstance` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: enum `LoadBalancingStrategy` is never used [INFO] [stderr] --> src/service_registry.rs:16:10 [INFO] [stderr] | [INFO] [stderr] 16 | pub enum LoadBalancingStrategy { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `select_instance`, and `mark_unhealthy` are never used [INFO] [stderr] --> src/service_registry.rs:28:12 [INFO] [stderr] | [INFO] [stderr] 27 | impl ServiceRegistry { [INFO] [stderr] | -------------------- associated items in this implementation [INFO] [stderr] 28 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 42 | pub fn select_instance( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 78 | pub fn mark_unhealthy(&mut self, service_name: &str, instance_id: &str) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `simple-gateway` (bin "simple-gateway" test) generated 5 warnings (run `cargo fix --bin "simple-gateway" -p simple-gateway --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.30s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/simple_gateway-b36373e61fb85d81) [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test auth::tests::test_generate_token ... ok [INFO] [stdout] test auth::tests::test_verify_invalid_token ... ok [INFO] [stdout] test auth::tests::test_verify_valid_token ... ok [INFO] [stdout] test rate_limiter::tests::test_rate_limiter_allows_requests_within_limit ... ok [INFO] [stdout] test rate_limiter::tests::test_rate_limiter_blocks_after_limit ... ok [INFO] [stdout] test rate_limiter::tests::test_rate_limiter_different_ips_separate ... ok [INFO] [stdout] test auth::tests::test_authenticate_nonexistent_user ... ok [INFO] [stdout] test auth::tests::test_authenticate_valid ... ok [INFO] [stdout] test auth::tests::test_authenticate_invalid_password ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.94s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "2e0d064ba193f714e5625486553b9e6f36d9e5e55aea0a615c4011b9fdc49ffd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e0d064ba193f714e5625486553b9e6f36d9e5e55aea0a615c4011b9fdc49ffd", kill_on_drop: false }` [INFO] [stdout] 2e0d064ba193f714e5625486553b9e6f36d9e5e55aea0a615c4011b9fdc49ffd