[INFO] cloning repository https://github.com/jpselva/backend-code-challenge [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jpselva/backend-code-challenge" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjpselva%2Fbackend-code-challenge", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjpselva%2Fbackend-code-challenge'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 514a23911a099f9f8c99cb7b6c3608cadfe418c0 [INFO] checking jpselva/backend-code-challenge/514a23911a099f9f8c99cb7b6c3608cadfe418c0 against master#c797096598b80ba4a40397ad7e91584fcd3df5f1 for pr-146377 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjpselva%2Fbackend-code-challenge" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jpselva/backend-code-challenge [INFO] finished tweaking git repo https://github.com/jpselva/backend-code-challenge [INFO] tweaked toml for git repo https://github.com/jpselva/backend-code-challenge written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jpselva/backend-code-challenge on toolchain c797096598b80ba4a40397ad7e91584fcd3df5f1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c797096598b80ba4a40397ad7e91584fcd3df5f1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jpselva/backend-code-challenge 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" "+c797096598b80ba4a40397ad7e91584fcd3df5f1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded windows-registry v0.5.2 [INFO] [stderr] Downloaded bigdecimal v0.4.8 [INFO] [stderr] Downloaded reqwest v0.12.19 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+c797096598b80ba4a40397ad7e91584fcd3df5f1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 929eda5f3b2e4e176da7471bae325ffdfd9c14821d3b1acaca266c67c52193bf [INFO] running `Command { std: "docker" "start" "-a" "929eda5f3b2e4e176da7471bae325ffdfd9c14821d3b1acaca266c67c52193bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "929eda5f3b2e4e176da7471bae325ffdfd9c14821d3b1acaca266c67c52193bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "929eda5f3b2e4e176da7471bae325ffdfd9c14821d3b1acaca266c67c52193bf", kill_on_drop: false }` [INFO] [stdout] 929eda5f3b2e4e176da7471bae325ffdfd9c14821d3b1acaca266c67c52193bf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+c797096598b80ba4a40397ad7e91584fcd3df5f1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 379c56fcfc700920b2b76a7a50408c0d97857a58e06600cc37496d88ba50463a [INFO] running `Command { std: "docker" "start" "-a" "379c56fcfc700920b2b76a7a50408c0d97857a58e06600cc37496d88ba50463a", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling tracing-attributes v0.1.29 [INFO] [stderr] Checking foldhash v0.1.5 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling bigdecimal v0.4.8 [INFO] [stderr] Compiling rustls v0.23.27 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling tinyvec v1.9.0 [INFO] [stderr] Compiling webpki-roots v1.0.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Checking indexmap v2.9.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling event-listener v5.4.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling whoami v1.6.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Checking unicode-bidi v0.3.18 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Checking home v0.5.11 [INFO] [stderr] Checking serde_path_to_error v0.1.17 [INFO] [stderr] Checking axum-core v0.5.2 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking rustls-webpki v0.103.3 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.4.10 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking sqlx-core v0.8.6 [INFO] [stderr] Checking sqlx-postgres v0.8.6 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking hyper-util v0.1.14 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking axum v0.8.4 [INFO] [stderr] Checking reqwest v0.12.19 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking code-challenge v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/db.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | sqlx::query!("DELETE FROM Nodes").execute(&mut *transaction).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/db.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | / sqlx::query!("INSERT INTO Nodes (public_key, alias, first_seen, capacity) VALUES ($1, $2, $3, $4)", [INFO] [stdout] 12 | | node.public_key, [INFO] [stdout] 13 | | node.alias, [INFO] [stdout] 14 | | node.first_seen, [INFO] [stdout] 15 | | node.capacity [INFO] [stdout] 16 | | ).execute(&mut *transaction).await?; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/db.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | let result = sqlx::query_as!( [INFO] [stdout] | __________________^ [INFO] [stdout] 27 | | Node, [INFO] [stdout] 28 | | "SELECT public_key, alias, first_seen, capacity FROM Nodes" [INFO] [stdout] 29 | | ).fetch_all(db_pool).await?; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/db.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | sqlx::query!("DELETE FROM Nodes").execute(&mut *transaction).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/db.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | / sqlx::query!("INSERT INTO Nodes (public_key, alias, first_seen, capacity) VALUES ($1, $2, $3, $4)", [INFO] [stdout] 12 | | node.public_key, [INFO] [stdout] 13 | | node.alias, [INFO] [stdout] 14 | | node.first_seen, [INFO] [stdout] 15 | | node.capacity [INFO] [stdout] 16 | | ).execute(&mut *transaction).await?; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/db.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | let result = sqlx::query_as!( [INFO] [stdout] | __________________^ [INFO] [stdout] 27 | | Node, [INFO] [stdout] 28 | | "SELECT public_key, alias, first_seen, capacity FROM Nodes" [INFO] [stdout] 29 | | ).fetch_all(db_pool).await?; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/db.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let result = sqlx::query_as!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | Ok(result.into_iter().map(|n| Node { [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 26 | let result: /* Type */ = sqlx::query_as!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/db.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let result = sqlx::query_as!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | Ok(result.into_iter().map(|n| Node { [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 26 | let result: /* Type */ = sqlx::query_as!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `code-challenge` (bin "code-challenge") due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `code-challenge` (bin "code-challenge" test) due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "379c56fcfc700920b2b76a7a50408c0d97857a58e06600cc37496d88ba50463a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "379c56fcfc700920b2b76a7a50408c0d97857a58e06600cc37496d88ba50463a", kill_on_drop: false }` [INFO] [stdout] 379c56fcfc700920b2b76a7a50408c0d97857a58e06600cc37496d88ba50463a