[INFO] cloning repository https://github.com/ic-news/ic-news-square [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ic-news/ic-news-square" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fic-news%2Fic-news-square", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fic-news%2Fic-news-square'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5ae74561f936a51593f6313f9e8c0233feedc11e [INFO] checking ic-news/ic-news-square/5ae74561f936a51593f6313f9e8c0233feedc11e against master#55e86c996809902e8bbad512cfb4d2c18be446d9 for pr-153027 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fic-news%2Fic-news-square" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ic-news/ic-news-square [INFO] finished tweaking git repo https://github.com/ic-news/ic-news-square [INFO] tweaked toml for git repo https://github.com/ic-news/ic-news-square written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ic-news/ic-news-square on toolchain 55e86c996809902e8bbad512cfb4d2c18be446d9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+55e86c996809902e8bbad512cfb4d2c18be446d9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ic-news/ic-news-square 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" "+55e86c996809902e8bbad512cfb4d2c18be446d9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ic-representation-independent-hash v3.0.3 [INFO] [stderr] Downloaded stacker v0.1.20 [INFO] [stderr] Downloaded cc v1.2.19 [INFO] [stderr] Downloaded ic-cdk v0.16.0 [INFO] [stderr] Downloaded ic-http-certification v3.0.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+55e86c996809902e8bbad512cfb4d2c18be446d9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ded2aa5c4029da8423b54139f1ecd5e3575dee2af73f63a5265912cfee2afa66 [INFO] running `Command { std: "docker" "start" "-a" "ded2aa5c4029da8423b54139f1ecd5e3575dee2af73f63a5265912cfee2afa66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ded2aa5c4029da8423b54139f1ecd5e3575dee2af73f63a5265912cfee2afa66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ded2aa5c4029da8423b54139f1ecd5e3575dee2af73f63a5265912cfee2afa66", kill_on_drop: false }` [INFO] [stdout] ded2aa5c4029da8423b54139f1ecd5e3575dee2af73f63a5265912cfee2afa66 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+55e86c996809902e8bbad512cfb4d2c18be446d9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 912a44e8545de993d08b0263b5ae2c245e521a2957981db298709f6bdf47a9f6 [INFO] running `Command { std: "docker" "start" "-a" "912a44e8545de993d08b0263b5ae2c245e521a2957981db298709f6bdf47a9f6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling cc v1.2.19 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking leb128 v0.2.5 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Checking ic0 v0.23.0 [INFO] [stderr] Checking half v1.8.3 [INFO] [stderr] Checking pretty v0.12.4 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking ic-representation-independent-hash v3.0.3 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling psm v0.1.25 [INFO] [stderr] Compiling stacker v0.1.20 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling candid_derive v0.6.6 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Compiling serde_bytes v0.11.17 [INFO] [stderr] Compiling ic_principal v0.1.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling serde_tokenstream v0.2.2 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking ic-certification v3.0.3 [INFO] [stderr] Checking candid v0.10.13 [INFO] [stderr] Checking ic-http-certification v3.0.3 [INFO] [stderr] Compiling ic-cdk-macros v0.16.0 [INFO] [stderr] Compiling ic-cdk-macros v0.17.1 [INFO] [stderr] Checking ic-cdk v0.16.0 [INFO] [stderr] Checking ic-cdk v0.17.1 [INFO] [stderr] Checking ic-cdk-timers v0.10.0 [INFO] [stderr] Checking ic_news_square v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: cannot find module or crate `ic_news_square` in this scope [INFO] [stdout] --> tests/error_test.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ic_news_square::utils::error_handler::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `ic_news_square` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ic_news_square`, use `cargo add ic_news_square` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `ic_news_square` in this scope [INFO] [stdout] --> tests/error_test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ic_news_square::models::error::{SquareError, SquareResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `ic_news_square` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ic_news_square`, use `cargo add ic_news_square` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `ic_news_square` in this scope [INFO] [stdout] --> tests/error_test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ic_news_square::utils::error_monitor; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `ic_news_square` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ic_news_square`, use `cargo add ic_news_square` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `ic_news_square::models::error::SquareError`, `ic_news_square::models::error::SquareResult`, `ic_news_square::utils::error_monitor` [INFO] [stdout] --> tests/error_test.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use ic_news_square::models::error::{SquareError, SquareResult}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 2 | use ic_news_square::utils::error_handler::*; [INFO] [stdout] 3 | use ic_news_square::utils::error_monitor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `not_found_error` in this scope [INFO] [stdout] --> tests/error_test.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | let not_found = not_found_error("User", "user123", MODULE, FUNCTION); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `already_exists_error` in this scope [INFO] [stdout] --> tests/error_test.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | let already_exists = already_exists_error("Post", "post456", MODULE, FUNCTION); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `unauthorized_error` in this scope [INFO] [stdout] --> tests/error_test.rs:23:24 [INFO] [stdout] | [INFO] [stdout] 23 | let unauthorized = unauthorized_error("Missing permissions", MODULE, FUNCTION); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `validation_error` in this scope [INFO] [stdout] --> tests/error_test.rs:27:22 [INFO] [stdout] | [INFO] [stdout] 27 | let validation = validation_error("Title cannot be empty", MODULE, FUNCTION); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `content_too_long_error` in this scope [INFO] [stdout] --> tests/error_test.rs:31:28 [INFO] [stdout] | [INFO] [stdout] 31 | let content_too_long = content_too_long_error("Comment", 500, 750, MODULE, FUNCTION); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `invalid_operation_error` in this scope [INFO] [stdout] --> tests/error_test.rs:35:29 [INFO] [stdout] | [INFO] [stdout] 35 | let invalid_operation = invalid_operation_error( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `system_error` in this scope [INFO] [stdout] --> tests/error_test.rs:44:18 [INFO] [stdout] | [INFO] [stdout] 44 | let system = system_error("Database connection failed", MODULE, FUNCTION); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `data_inconsistency_error` in this scope [INFO] [stdout] --> tests/error_test.rs:48:30 [INFO] [stdout] | [INFO] [stdout] 48 | let data_inconsistency = data_inconsistency_error( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `resource_unavailable_error` in this scope [INFO] [stdout] --> tests/error_test.rs:58:32 [INFO] [stdout] | [INFO] [stdout] 58 | let resource_unavailable = resource_unavailable_error( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `rate_limit_error` in this scope [INFO] [stdout] --> tests/error_test.rs:67:22 [INFO] [stdout] | [INFO] [stdout] 67 | let rate_limit = rate_limit_error( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dependency_error` in this scope [INFO] [stdout] --> tests/error_test.rs:76:22 [INFO] [stdout] | [INFO] [stdout] 76 | let dependency = dependency_error( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `permission_denied_error` in this scope [INFO] [stdout] --> tests/error_test.rs:85:29 [INFO] [stdout] | [INFO] [stdout] 85 | let permission_denied = permission_denied_error( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `service_unavailable_error` in this scope [INFO] [stdout] --> tests/error_test.rs:94:31 [INFO] [stdout] | [INFO] [stdout] 94 | let service_unavailable = service_unavailable_error( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `quota_exceeded_error` in this scope [INFO] [stdout] --> tests/error_test.rs:103:26 [INFO] [stdout] | [INFO] [stdout] 103 | let quota_exceeded = quota_exceeded_error( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `resource_unavailable_error` in this scope [INFO] [stdout] --> tests/error_test.rs:123:26 [INFO] [stdout] | [INFO] [stdout] 123 | let resource_error = resource_unavailable_error( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `rate_limit_error` in this scope [INFO] [stdout] --> tests/error_test.rs:133:22 [INFO] [stdout] | [INFO] [stdout] 133 | let rate_error = rate_limit_error( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `service_unavailable_error` in this scope [INFO] [stdout] --> tests/error_test.rs:143:25 [INFO] [stdout] | [INFO] [stdout] 143 | let service_error = service_unavailable_error( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `not_found_error` in this scope [INFO] [stdout] --> tests/error_test.rs:154:21 [INFO] [stdout] | [INFO] [stdout] 154 | let not_found = not_found_error("User", "user123", MODULE, FUNCTION); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `data_inconsistency_error` in this scope [INFO] [stdout] --> tests/error_test.rs:171:17 [INFO] [stdout] | [INFO] [stdout] 171 | let error = data_inconsistency_error( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `validation_error` in this scope [INFO] [stdout] --> tests/error_test.rs:209:17 [INFO] [stdout] | [INFO] [stdout] 209 | let error = validation_error("Test monitoring error", MODULE, FUNCTION); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ic_news_square` (test "error_test") due to 24 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "912a44e8545de993d08b0263b5ae2c245e521a2957981db298709f6bdf47a9f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "912a44e8545de993d08b0263b5ae2c245e521a2957981db298709f6bdf47a9f6", kill_on_drop: false }` [INFO] [stdout] 912a44e8545de993d08b0263b5ae2c245e521a2957981db298709f6bdf47a9f6