[INFO] fetching crate junobuild-shared 0.7.1... [INFO] testing junobuild-shared-0.7.1 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] extracting crate junobuild-shared 0.7.1 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate junobuild-shared 0.7.1 [INFO] finished tweaking crates.io crate junobuild-shared 0.7.1 [INFO] tweaked toml for crates.io crate junobuild-shared 0.7.1 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate junobuild-shared 0.7.1 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] crate crates.io crate junobuild-shared 0.7.1 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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 4a976c7b9b15766d002ed52daaf6c04efcff7096be56f743d4406178740c5bdf [INFO] running `Command { std: "docker" "start" "-a" "4a976c7b9b15766d002ed52daaf6c04efcff7096be56f743d4406178740c5bdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4a976c7b9b15766d002ed52daaf6c04efcff7096be56f743d4406178740c5bdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a976c7b9b15766d002ed52daaf6c04efcff7096be56f743d4406178740c5bdf", kill_on_drop: false }` [INFO] [stdout] 4a976c7b9b15766d002ed52daaf6c04efcff7096be56f743d4406178740c5bdf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 9f49578d12143f2d28a3a228c5d725cb0bf489dd1bc04f6233a2562a09e7196d [INFO] running `Command { std: "docker" "start" "-a" "9f49578d12143f2d28a3a228c5d725cb0bf489dd1bc04f6233a2562a09e7196d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling serde_core v1.0.225 [INFO] [stderr] Compiling serde v1.0.225 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling thiserror v1.0.56 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling data-encoding v2.5.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling unicode-width v0.1.11 [INFO] [stderr] Compiling pretty v0.12.3 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling zerocopy v0.8.17 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling minicbor v0.19.1 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling ic-cdk-executor v2.0.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling ic0 v1.0.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling half v2.3.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling base32 v0.4.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling serde_bytes v0.11.19 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Compiling rand_core v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling serde_derive v1.0.225 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Compiling candid_derive v0.10.20 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling minicbor-derive v0.13.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling ic_principal v0.1.1 [INFO] [stderr] Compiling ic-error-types v0.2.0 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling ic-stable-structures v0.6.9 [INFO] [stderr] Compiling ic-stable-structures v0.7.2 [INFO] [stderr] Compiling candid v0.10.20 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling ic-cdk-macros v0.19.0 [INFO] [stderr] Compiling ic-management-canister-types v0.5.0 [INFO] [stderr] Compiling icrc-cbor v0.1.0 [INFO] [stderr] Compiling icrc-ledger-types v0.1.12 [INFO] [stderr] Compiling ic-cdk v0.19.0 [INFO] [stderr] Compiling ic-ledger-types v0.16.0 [INFO] [stderr] Compiling junobuild-shared v0.7.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `WASM_PAGE_SIZE_IN_BYTES` and `stable_size` [INFO] [stdout] --> src/segments/utils.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use ic_cdk::stable::{stable_size, WASM_PAGE_SIZE_IN_BYTES}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `mgmt::types::cmc::CreateCanister::subnet_type`: use subnet_selection instead [INFO] [stdout] --> src/mgmt/cmc.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | subnet_type: None, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 11s [INFO] running `Command { std: "docker" "inspect" "9f49578d12143f2d28a3a228c5d725cb0bf489dd1bc04f6233a2562a09e7196d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f49578d12143f2d28a3a228c5d725cb0bf489dd1bc04f6233a2562a09e7196d", kill_on_drop: false }` [INFO] [stdout] 9f49578d12143f2d28a3a228c5d725cb0bf489dd1bc04f6233a2562a09e7196d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] f9001c6edafd7a72d6ef1ec0596169736e06a0f03c0468d2df3e8e5fa0a01144 [INFO] running `Command { std: "docker" "start" "-a" "f9001c6edafd7a72d6ef1ec0596169736e06a0f03c0468d2df3e8e5fa0a01144", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `WASM_PAGE_SIZE_IN_BYTES` and `stable_size` [INFO] [stdout] --> src/segments/utils.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use ic_cdk::stable::{stable_size, WASM_PAGE_SIZE_IN_BYTES}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `mgmt::types::cmc::CreateCanister::subnet_type`: use subnet_selection instead [INFO] [stdout] --> src/mgmt/cmc.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | subnet_type: None, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling junobuild-shared v0.7.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `WASM_PAGE_SIZE_IN_BYTES` and `stable_size` [INFO] [stdout] --> src/segments/utils.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use ic_cdk::stable::{stable_size, WASM_PAGE_SIZE_IN_BYTES}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `mgmt::types::cmc::CreateCanister::subnet_type`: use subnet_selection instead [INFO] [stdout] --> src/mgmt/cmc.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | subnet_type: None, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.48s [INFO] running `Command { std: "docker" "inspect" "f9001c6edafd7a72d6ef1ec0596169736e06a0f03c0468d2df3e8e5fa0a01144", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9001c6edafd7a72d6ef1ec0596169736e06a0f03c0468d2df3e8e5fa0a01144", kill_on_drop: false }` [INFO] [stdout] f9001c6edafd7a72d6ef1ec0596169736e06a0f03c0468d2df3e8e5fa0a01144 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] e64de3450697dfea7abe61b6d1726592704eb1a30c775e58612363cfdb888f8e [INFO] running `Command { std: "docker" "start" "-a" "e64de3450697dfea7abe61b6d1726592704eb1a30c775e58612363cfdb888f8e", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `WASM_PAGE_SIZE_IN_BYTES` and `stable_size` [INFO] [stderr] --> src/segments/utils.rs:4:22 [INFO] [stderr] | [INFO] [stderr] 4 | use ic_cdk::stable::{stable_size, WASM_PAGE_SIZE_IN_BYTES}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated field `mgmt::types::cmc::CreateCanister::subnet_type`: use subnet_selection instead [INFO] [stderr] --> src/mgmt/cmc.rs:131:9 [INFO] [stderr] | [INFO] [stderr] 131 | subnet_type: None, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `junobuild-shared` (lib) generated 2 warnings (run `cargo fix --lib -p junobuild-shared` to apply 1 suggestion) [INFO] [stderr] warning: `junobuild-shared` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/junobuild_shared-928fbea59a43cac7) [INFO] [stdout] [INFO] [stdout] running 43 tests [INFO] [stdout] test date::tests::calendar_date_is_same_within_day ... ok [INFO] [stdout] test rate::utils::tests::consumes_one_token_when_available_without_refill ... ok [INFO] [stdout] test rate::utils::tests::huge_elapsed_time_saturates_at_max_tokens_and_consumes_one ... ok [INFO] [stdout] test rate::utils::tests::max_tokens_zero_never_allows_call ... ok [INFO] [stdout] test rate::utils::tests::returns_error_when_no_tokens_available ... ok [INFO] [stdout] test segments::controllers::tests::test_assert_max_number_of_controllers_admin_default ... ok [INFO] [stdout] test segments::controllers::tests::test_assert_max_number_of_controllers_filters_by_scope ... ok [INFO] [stdout] test rate::utils::tests::no_refill_when_not_enough_time_passed ... ok [INFO] [stdout] test segments::controllers::tests::test_controller_can_write_self_allowed ... ok [INFO] [stdout] test rate::utils::tests::refills_tokens_up_to_max_and_consumes_one ... ok [INFO] [stdout] test segments::controllers::tests::test_assert_expiration_controller_admin_with_expiry_rejected ... ok [INFO] [stdout] test segments::controllers::tests::test_assert_max_number_of_controllers_write_default ... ok [INFO] [stdout] test segments::controllers::tests::test_assert_expiration_controller_admin_without_expiry_allowed ... ok [INFO] [stdout] test segments::controllers::tests::test_controller_can_write_expired_rejected ... ok [INFO] [stdout] test segments::controllers::tests::test_assert_expiration_controller_future_expiry_allowed ... ok [INFO] [stdout] test segments::controllers::tests::test_assert_expiration_controller_no_expiry_allowed ... ok [INFO] [stdout] test segments::controllers::tests::test_controller_can_write_admin_allowed ... ok [INFO] [stdout] test segments::controllers::tests::test_controller_can_write_submit_rejected ... ok [INFO] [stdout] test segments::controllers::tests::test_controller_can_write_write_scope_allowed ... ok [INFO] [stdout] test segments::controllers::tests::test_filter_admin_controllers ... ok [INFO] [stdout] test segments::controllers::tests::test_delete_controllers ... ok [INFO] [stdout] test segments::controllers::tests::test_is_controller_expired_admin_never_expires ... ok [INFO] [stdout] test segments::controllers::tests::test_filter_controllers_write ... ok [INFO] [stdout] test segments::controllers::tests::test_init_admin_controllers ... ok [INFO] [stdout] test segments::controllers::tests::test_is_controller_expired_past_expiration ... ok [INFO] [stdout] test segments::controllers::tests::test_is_admin_controller_not_canister_controller ... ok [INFO] [stdout] test segments::controllers::tests::test_is_controller_not_expired ... ok [INFO] [stdout] test segments::controllers::tests::test_is_controller_expired_future_expiration ... ok [INFO] [stdout] test segments::controllers::tests::test_is_controller_expired_no_expiration ... ok [INFO] [stdout] test segments::controllers::tests::test_filter_controllers_submit ... ok [INFO] [stdout] test segments::controllers::tests::test_is_valid_controller_anonymous_rejected ... ok [INFO] [stdout] test segments::controllers::tests::test_is_valid_controller_all_scopes_allowed ... ok [INFO] [stdout] test segments::controllers::tests::test_is_valid_controller_expired_rejected ... ok [INFO] [stdout] test segments::controllers::tests::test_set_controllers_new ... ok [INFO] [stdout] test segments::controllers::tests::test_controller_can_write_anonymous_rejected ... ok [INFO] [stdout] test segments::controllers::tests::test_assert_max_number_of_controllers_custom_limit ... ok [INFO] [stdout] test segments::controllers::tests::test_set_controllers_update_preserves_created_at ... ok [INFO] [stdout] test segments::controllers::tests::test_is_valid_controller_admin_expired_still_valid ... ok [INFO] [stdout] test rate::utils::tests::returns_error_when_time_per_token_is_zero ... ok [INFO] [stdout] test segments::controllers::tests::test_is_admin_controller ... ok [INFO] [stdout] test segments::controllers::tests::test_assert_expiration_controller_past_expiry_rejected ... ok [INFO] [stdout] test segments::controllers::tests::test_assert_expiration_controller_submit_scope_with_future_expiry ... ok [INFO] [stdout] test segments::controllers::tests::test_is_valid_controller_self_allowed ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 43 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s [INFO] [stdout] [INFO] [stderr] Doc-tests junobuild_shared [INFO] [stdout] [INFO] [stdout] running 16 tests [INFO] [stdout] test src/data/collect.rs - data::collect::collect_stable_map_from (line 109) ... ignored [INFO] [stdout] test src/data/collect.rs - data::collect::collect_stable_vec_from (line 87) ... ignored [INFO] [stdout] test src/random.rs - random::get_random_seed (line 23) ... ignored [INFO] [stdout] test src/random.rs - random::raw_rand (line 56) ... ignored [INFO] [stdout] test src/assert.rs - assert::assert_version (line 88) ... FAILED [INFO] [stdout] test src/data/collect.rs - data::collect::collect_stable_vec (line 27) ... FAILED [INFO] [stdout] test src/assert.rs - assert::assert_description_length (line 142) ... FAILED [INFO] [stdout] test src/ic/response.rs - ic::response::ManualReply (line 23) ... FAILED [INFO] [stdout] test src/assert.rs - assert::assert_timestamp (line 36) ... FAILED [INFO] [stdout] test src/data/collect.rs - data::collect::collect_stable_map (line 63) ... FAILED [INFO] [stdout] test src/ic/response.rs - ic::response::ManualReply::one (line 46) ... FAILED [INFO] [stdout] test src/data/collect.rs - data::collect::collect_stable_map (line 58) ... FAILED [INFO] [stdout] test src/data/collect.rs - data::collect::collect_stable_vec (line 22) ... FAILED [INFO] [stdout] test src/ic/response.rs - ic::response::ManualReply::reject (line 62) ... FAILED [INFO] [stdout] test src/ic/call.rs - ic::call::DecodeCandid::decode_candid (line 23) - compile ... FAILED [INFO] [stdout] test src/types.rs - types::core::DomainName (line 264) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/assert.rs - assert::assert_version (line 88) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `assert_version` in this scope [INFO] [stdout] --> src/assert.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | assert_eq!(assert_version(user_version, current_version), Ok(())); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 91 - assert_eq!(assert_version(user_version, current_version), Ok(())); [INFO] [stdout] 91 + assert_eq!(user_version(user_version, current_version), Ok(())); [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 88 + use junobuild_shared::assert::assert_version; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `assert_version` in this scope [INFO] [stdout] --> src/assert.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | assert!(assert_version(wrong_version, current_version).is_err()); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 94 - assert!(assert_version(wrong_version, current_version).is_err()); [INFO] [stdout] 94 + assert!(user_version(wrong_version, current_version).is_err()); [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 88 + use junobuild_shared::assert::assert_version; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `assert_version` in this scope [INFO] [stdout] --> src/assert.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | assert!(assert_version(no_version, no_current_version).is_ok()); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 98 - assert!(assert_version(no_version, no_current_version).is_ok()); [INFO] [stdout] 98 + assert!(user_version(no_version, no_current_version).is_ok()); [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 88 + use junobuild_shared::assert::assert_version; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/data/collect.rs - data::collect::collect_stable_vec (line 27) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `my_stable_map` in this scope [INFO] [stdout] --> src/data/collect.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let range = my_stable_map.range(2..3); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `collect_stable_vec` in this scope [INFO] [stdout] --> src/data/collect.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | let entries = collect_stable_vec(range); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 27 + use junobuild_shared::data::collect::collect_stable_vec; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/assert.rs - assert::assert_description_length (line 142) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `assert_description_length` in this scope [INFO] [stdout] --> src/assert.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 144 | assert_eq!(assert_description_length(&valid_description), Ok(())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 142 + use junobuild_shared::assert::assert_description_length; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `assert_description_length` in this scope [INFO] [stdout] --> src/assert.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | assert_description_length(&invalid_description), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 142 + use junobuild_shared::assert::assert_description_length; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `assert_description_length` in this scope [INFO] [stdout] --> src/assert.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | assert_eq!(assert_description_length(&none_description), Ok(())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 142 + use junobuild_shared::assert::assert_description_length; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/ic/response.rs - ic::response::ManualReply (line 23) stdout ---- [INFO] [stdout] error: cannot find attribute `update` in this scope [INFO] [stdout] --> src/ic/response.rs:24:3 [INFO] [stdout] | [INFO] [stdout] 24 | #[update(manual_reply = true)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 23 + use ic_cdk::update; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `ManualReply` in this scope [INFO] [stdout] --> src/ic/response.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | fn my_method() -> ManualReply<()> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 23 + use junobuild_shared::ic::response::ManualReply; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ManualReply` in this scope [INFO] [stdout] --> src/ic/response.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | return ManualReply::reject("bad input"); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ManualReply` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 23 + use junobuild_shared::ic::response::ManualReply; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ManualReply` in this scope [INFO] [stdout] --> src/ic/response.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | ManualReply::one(()) [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ManualReply` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 23 + use junobuild_shared::ic::response::ManualReply; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `something_went_wrong` in this scope [INFO] [stdout] --> src/ic/response.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | if something_went_wrong() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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/assert.rs - assert::assert_timestamp (line 36) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `assert_timestamp` in this scope [INFO] [stdout] --> src/assert.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | assert_eq!(assert_timestamp(user_timestamp, current_timestamp), Ok(())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 39 - assert_eq!(assert_timestamp(user_timestamp, current_timestamp), Ok(())); [INFO] [stdout] 39 + assert_eq!(user_timestamp(user_timestamp, current_timestamp), Ok(())); [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 36 + use junobuild_shared::assert::assert_timestamp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `assert_timestamp` in this scope [INFO] [stdout] --> src/assert.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | assert!(assert_timestamp(wrong_timestamp, current_timestamp).is_err()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 42 - assert!(assert_timestamp(wrong_timestamp, current_timestamp).is_err()); [INFO] [stdout] 42 + assert!(user_timestamp(wrong_timestamp, current_timestamp).is_err()); [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 36 + use junobuild_shared::assert::assert_timestamp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `assert_timestamp` in this scope [INFO] [stdout] --> src/assert.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | assert!(assert_timestamp(no_timestamp, current_timestamp).is_err()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 45 - assert!(assert_timestamp(no_timestamp, current_timestamp).is_err()); [INFO] [stdout] 45 + assert!(user_timestamp(no_timestamp, current_timestamp).is_err()); [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 36 + use junobuild_shared::assert::assert_timestamp; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/data/collect.rs - data::collect::collect_stable_map (line 63) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `my_stable_map` in this scope [INFO] [stdout] --> src/data/collect.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let range = my_stable_map.range(2..3); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `collect_stable_map` in this scope [INFO] [stdout] --> src/data/collect.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 65 | let entries = collect_stable_map(range); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 63 + use junobuild_shared::data::collect::collect_stable_map; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/ic/response.rs - ic::response::ManualReply::one (line 46) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `ManualReply` in this scope [INFO] [stdout] --> src/ic/response.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | ManualReply::one(42u64); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ManualReply` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 46 + use junobuild_shared::ic::response::ManualReply; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/data/collect.rs - data::collect::collect_stable_map (line 58) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `collect_stable_map` in this scope [INFO] [stdout] --> src/data/collect.rs:59:11 [INFO] [stdout] | [INFO] [stdout] 59 | let map = collect_stable_map(my_stable_map.iter()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 58 + use junobuild_shared::data::collect::collect_stable_map; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `my_stable_map` in this scope [INFO] [stdout] --> src/data/collect.rs:59:30 [INFO] [stdout] | [INFO] [stdout] 59 | let map = collect_stable_map(my_stable_map.iter()); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/data/collect.rs - data::collect::collect_stable_vec (line 22) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `collect_stable_vec` in this scope [INFO] [stdout] --> src/data/collect.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | let vec = collect_stable_vec(my_stable_map.iter()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 22 + use junobuild_shared::data::collect::collect_stable_vec; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `my_stable_map` in this scope [INFO] [stdout] --> src/data/collect.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | let vec = collect_stable_vec(my_stable_map.iter()); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/ic/response.rs - ic::response::ManualReply::reject (line 62) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `ManualReply` in this scope [INFO] [stdout] --> src/ic/response.rs:63:1 [INFO] [stdout] | [INFO] [stdout] 63 | ManualReply::reject("Not allowed"); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ManualReply` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 62 + use junobuild_shared::ic::response::ManualReply; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/ic/call.rs - ic::call::DecodeCandid::decode_candid (line 23) stdout ---- [INFO] [stdout] error[E0599]: no method named `decode_candid` found for enum `Result` in the current scope [INFO] [stdout] --> src/ic/call.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 28 | let result: u32 = Call::bounded_wait(canister_id, "get_value") [INFO] [stdout] | ___________________- [INFO] [stdout] 29 | | .await [INFO] [stdout] 30 | | .decode_candid()?; [INFO] [stdout] | | -^^^^^^^^^^^^^ method not found in `Result` [INFO] [stdout] | |_____| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/assert.rs - assert::assert_description_length (line 142) [INFO] [stdout] src/assert.rs - assert::assert_timestamp (line 36) [INFO] [stdout] src/assert.rs - assert::assert_version (line 88) [INFO] [stdout] src/data/collect.rs - data::collect::collect_stable_map (line 58) [INFO] [stdout] src/data/collect.rs - data::collect::collect_stable_map (line 63) [INFO] [stdout] src/data/collect.rs - data::collect::collect_stable_vec (line 22) [INFO] [stdout] src/data/collect.rs - data::collect::collect_stable_vec (line 27) [INFO] [stdout] src/ic/call.rs - ic::call::DecodeCandid::decode_candid (line 23) [INFO] [stdout] src/ic/response.rs - ic::response::ManualReply (line 23) [INFO] [stdout] src/ic/response.rs - ic::response::ManualReply::one (line 46) [INFO] [stdout] src/ic/response.rs - ic::response::ManualReply::reject (line 62) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 11 failed; 4 ignored; 0 measured; 0 filtered out; finished in 0.81s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "e64de3450697dfea7abe61b6d1726592704eb1a30c775e58612363cfdb888f8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e64de3450697dfea7abe61b6d1726592704eb1a30c775e58612363cfdb888f8e", kill_on_drop: false }` [INFO] [stdout] e64de3450697dfea7abe61b6d1726592704eb1a30c775e58612363cfdb888f8e