[INFO] fetching crate miracle-api 0.6.0... [INFO] testing miracle-api-0.6.0 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate miracle-api 0.6.0 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate miracle-api 0.6.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate miracle-api 0.6.0 [INFO] tweaked toml for crates.io crate miracle-api 0.6.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate miracle-api 0.6.0 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate miracle-api 0.6.0 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" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 459aad4fdccbbe597e044545fbd0965318229ab618aff958413a524aa00c882a [INFO] running `Command { std: "docker" "start" "-a" "459aad4fdccbbe597e044545fbd0965318229ab618aff958413a524aa00c882a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "459aad4fdccbbe597e044545fbd0965318229ab618aff958413a524aa00c882a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "459aad4fdccbbe597e044545fbd0965318229ab618aff958413a524aa00c882a", kill_on_drop: false }` [INFO] [stdout] 459aad4fdccbbe597e044545fbd0965318229ab618aff958413a524aa00c882a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a98d9fa56f5143d343f8258d3b3c200989e76d6ef78763df1d127058e41eb3ca [INFO] running `Command { std: "docker" "start" "-a" "a98d9fa56f5143d343f8258d3b3c200989e76d6ef78763df1d127058e41eb3ca", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.97 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling winnow v0.7.12 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling five8_core v0.1.2 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling borsh v1.5.7 [INFO] [stderr] Compiling solana-sanitize v2.2.1 [INFO] [stderr] Compiling solana-atomic-u64 v2.2.1 [INFO] [stderr] Compiling solana-decode-error v2.3.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling solana-msg v2.2.1 [INFO] [stderr] Compiling thiserror v2.0.14 [INFO] [stderr] Compiling five8 v0.2.1 [INFO] [stderr] Compiling five8_const v0.1.4 [INFO] [stderr] Compiling solana-program-memory v2.3.1 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling bs58 v0.5.1 [INFO] [stderr] Compiling uriparse v0.6.4 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling derivation-path v0.2.0 [INFO] [stderr] Compiling solana-signature v2.3.0 [INFO] [stderr] Compiling solana-program-option v2.2.1 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling feature-probe v0.1.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling hashbrown v0.13.2 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling cc v1.2.32 [INFO] [stderr] Compiling constant_time_eq v0.3.1 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling libsecp256k1-core v0.2.2 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling bv v0.11.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling solana-native-token v2.3.0 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling solana-security-txt v1.1.1 [INFO] [stderr] Compiling az v1.2.1 [INFO] [stderr] Compiling syn v2.0.105 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling fixed v1.28.0 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling keccak-const v0.2.0 [INFO] [stderr] Compiling sha2-const-stable v0.1.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling const-crypto v0.3.0 [INFO] [stderr] Compiling solana-big-mod-exp v2.2.1 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling solana-derivation-path v2.2.1 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling solana-seed-derivable v2.2.1 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling solana-seed-phrase v2.2.1 [INFO] [stderr] Compiling libsecp256k1 v0.6.0 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.10.4 [INFO] [stderr] Compiling borsh-derive-internal v0.10.4 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling borsh-derive v0.10.4 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling borsh v0.10.4 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling bytemuck_derive v1.10.1 [INFO] [stderr] Compiling borsh-derive v1.5.7 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling thiserror-impl v2.0.14 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling solana-sdk-macro v2.2.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling num_enum_derive v0.7.4 [INFO] [stderr] Compiling spl-program-error-derive v0.4.1 [INFO] [stderr] Compiling spl-program-error-derive v0.5.0 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling merlin v3.0.0 [INFO] [stderr] Compiling aes-gcm-siv v0.11.1 [INFO] [stderr] Compiling bytemuck v1.23.2 [INFO] [stderr] Compiling num_enum v0.7.4 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling spl-discriminator-syn v0.2.1 [INFO] [stderr] Compiling spl-discriminator-derive v0.2.0 [INFO] [stderr] Compiling solana-borsh v2.2.1 [INFO] [stderr] Compiling solana-hash v2.3.0 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling solana-fee-calculator v2.2.1 [INFO] [stderr] Compiling solana-short-vec v2.2.1 [INFO] [stderr] Compiling serde_bytes v0.11.17 [INFO] [stderr] Compiling solana-serde-varint v2.2.2 [INFO] [stderr] Compiling solana-sha256-hasher v2.3.0 [INFO] [stderr] Compiling solana-keccak-hasher v2.2.1 [INFO] [stderr] Compiling solana-blake3-hasher v2.2.1 [INFO] [stderr] Compiling solana-pubkey v2.4.0 [INFO] [stderr] Compiling solana-curve25519 v2.3.7 [INFO] [stderr] Compiling solana-instruction v2.3.0 [INFO] [stderr] Compiling solana-sdk-ids v2.2.1 [INFO] [stderr] Compiling solana-nonce v2.2.1 [INFO] [stderr] Compiling solana-sysvar-id v2.2.1 [INFO] [stderr] Compiling solana-program-error v2.2.2 [INFO] [stderr] Compiling solana-transaction-error v2.2.1 [INFO] [stderr] Compiling solana-system-interface v1.0.0 [INFO] [stderr] Compiling solana-serialize-utils v2.2.1 [INFO] [stderr] Compiling solana-bincode v2.2.1 [INFO] [stderr] Compiling solana-stable-layout v2.2.1 [INFO] [stderr] Compiling solana-loader-v2-interface v2.2.1 [INFO] [stderr] Compiling spl-associated-token-account-client v2.0.0 [INFO] [stderr] Compiling solana-clock v2.2.2 [INFO] [stderr] Compiling solana-rent v2.2.1 [INFO] [stderr] Compiling solana-slot-hashes v2.2.1 [INFO] [stderr] Compiling solana-last-restart-slot v2.2.1 [INFO] [stderr] Compiling solana-account-info v2.3.0 [INFO] [stderr] Compiling solana-epoch-rewards v2.2.1 [INFO] [stderr] Compiling solana-signer v2.2.1 [INFO] [stderr] Compiling solana-slot-history v2.2.1 [INFO] [stderr] Compiling solana-epoch-schedule v2.2.1 [INFO] [stderr] Compiling spl-discriminator v0.4.1 [INFO] [stderr] Compiling solana-cpi v2.2.1 [INFO] [stderr] Compiling solana-program-entrypoint v2.3.0 [INFO] [stderr] Compiling solana-instructions-sysvar v2.2.2 [INFO] [stderr] Compiling solana-program-pack v2.2.1 [INFO] [stderr] Compiling solana-address-lookup-table-interface v2.2.2 [INFO] [stderr] Compiling solana-account v2.2.1 [INFO] [stderr] Compiling spl-program-error v0.7.0 [INFO] [stderr] Compiling spl-memo v6.0.0 [INFO] [stderr] Compiling solana-zk-sdk v2.3.7 [INFO] [stderr] Compiling solana-stake-interface v1.2.1 [INFO] [stderr] Compiling solana-message v2.4.0 [INFO] [stderr] Compiling solana-loader-v3-interface v5.0.0 [INFO] [stderr] Compiling solana-feature-gate-interface v2.2.2 [INFO] [stderr] Compiling solana-loader-v4-interface v2.2.1 [INFO] [stderr] Compiling solana-vote-interface v2.2.6 [INFO] [stderr] Compiling solana-example-mocks v2.2.1 [INFO] [stderr] Compiling solana-sysvar v2.3.0 [INFO] [stderr] Compiling spl-token v8.0.0 [INFO] [stderr] Compiling solana-secp256k1-recover v2.2.1 [INFO] [stderr] Compiling solana-program v2.3.0 [INFO] [stderr] Compiling spl-program-error v0.6.0 [INFO] [stderr] Compiling spl-token v7.0.0 [INFO] [stderr] Compiling spl-token v4.0.2 [INFO] [stderr] Compiling mpl-token-metadata v5.1.0 [INFO] [stderr] Compiling spl-pod v0.5.1 [INFO] [stderr] Compiling spl-token-confidential-transfer-ciphertext-arithmetic v0.2.1 [INFO] [stderr] Compiling spl-token-confidential-transfer-proof-generation v0.2.0 [INFO] [stderr] Compiling spl-token-confidential-transfer-proof-generation v0.3.0 [INFO] [stderr] Compiling spl-token-confidential-transfer-ciphertext-arithmetic v0.3.1 [INFO] [stderr] Compiling spl-token-confidential-transfer-proof-generation v0.4.1 [INFO] [stderr] Compiling spl-type-length-value v0.7.0 [INFO] [stderr] Compiling spl-type-length-value v0.8.0 [INFO] [stderr] Compiling spl-token-confidential-transfer-proof-extraction v0.2.1 [INFO] [stderr] Compiling spl-token-group-interface v0.5.0 [INFO] [stderr] Compiling spl-token-confidential-transfer-proof-extraction v0.3.0 [INFO] [stderr] Compiling spl-token-group-interface v0.6.0 [INFO] [stderr] Compiling spl-elgamal-registry v0.1.1 [INFO] [stderr] Compiling spl-tlv-account-resolution v0.9.0 [INFO] [stderr] Compiling spl-token-metadata-interface v0.6.0 [INFO] [stderr] Compiling spl-elgamal-registry v0.2.0 [INFO] [stderr] Compiling spl-tlv-account-resolution v0.10.0 [INFO] [stderr] Compiling spl-token-metadata-interface v0.7.0 [INFO] [stderr] Compiling spl-transfer-hook-interface v0.10.0 [INFO] [stderr] Compiling spl-transfer-hook-interface v0.9.0 [INFO] [stderr] Compiling spl-token-2022 v8.0.1 [INFO] [stderr] Compiling spl-token-2022 v6.0.0 [INFO] [stderr] Compiling spl-token-2022 v7.0.0 [INFO] [stderr] Compiling spl-associated-token-account v7.0.0 [INFO] [stderr] Compiling spl-associated-token-account v6.0.0 [INFO] [stderr] Compiling steel v4.0.2 [INFO] [stderr] Compiling miracle-api v0.6.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 07s [INFO] running `Command { std: "docker" "inspect" "a98d9fa56f5143d343f8258d3b3c200989e76d6ef78763df1d127058e41eb3ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a98d9fa56f5143d343f8258d3b3c200989e76d6ef78763df1d127058e41eb3ca", kill_on_drop: false }` [INFO] [stdout] a98d9fa56f5143d343f8258d3b3c200989e76d6ef78763df1d127058e41eb3ca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 22b100ee22644d4431c37a54048b180dc5129801280a625040b993471bfb172d [INFO] running `Command { std: "docker" "start" "-a" "22b100ee22644d4431c37a54048b180dc5129801280a625040b993471bfb172d", kill_on_drop: false }` [INFO] [stderr] Compiling miracle-api v0.6.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.71s [INFO] running `Command { std: "docker" "inspect" "22b100ee22644d4431c37a54048b180dc5129801280a625040b993471bfb172d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22b100ee22644d4431c37a54048b180dc5129801280a625040b993471bfb172d", kill_on_drop: false }` [INFO] [stdout] 22b100ee22644d4431c37a54048b180dc5129801280a625040b993471bfb172d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b03ef853224346c75f3bde806da16c5a9d495c6aab679337817636dde70525f8 [INFO] running `Command { std: "docker" "start" "-a" "b03ef853224346c75f3bde806da16c5a9d495c6aab679337817636dde70525f8", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/miracle_api-8a1c954e017bdeba) [INFO] [stdout] [INFO] [stdout] running 25 tests [INFO] [stdout] test date_epoch_tests::test_date_range_to_epochs ... ok [INFO] [stdout] test date_epoch_tests::test_epoch_to_timestamp ... ok [INFO] [stdout] test test_id ... ok [INFO] [stdout] test date_epoch_tests::test_timestamp_to_epoch ... ok [INFO] [stdout] test date_epoch_tests::test_round_trip_conversion ... ok [INFO] [stdout] test tests::test_activity_based_rewards ... ok [INFO] [stdout] test tests::test_boundary_conditions ... ok [INFO] [stdout] test tests::test_community_metrics_event_size ... ok [INFO] [stdout] test tests::test_community_metrics_size ... ok [INFO] [stdout] test tests::test_community_score_with_weights ... ok [INFO] [stdout] test tests::test_customer_merchant_split ... ok [INFO] [stdout] test tests::test_daily_rewards ... ok [INFO] [stdout] test tests::test_daily_rewards_with_time_decay ... ok [INFO] [stdout] test tests::test_geometric_vs_arithmetic_mean_behavior ... ok [INFO] [stdout] test tests::test_id ... ok [INFO] [stdout] test tests::test_smooth_community_decay ... ok [INFO] [stdout] test tests::test_smooth_decay_formula_verification ... ok [INFO] [stdout] test tests::test_time_decay ... ok [INFO] [stdout] test tests::test_validate_community_metrics_invalid_activity_count ... ok [INFO] [stdout] test tests::test_validate_community_metrics_invalid_retention_rate ... ok [INFO] [stdout] test tests::test_validate_community_metrics_invalid_reward_split ... ok [INFO] [stdout] test tests::test_validate_community_metrics_invalid_weights ... ok [INFO] [stdout] test tests::test_validate_community_metrics_success ... ok [INFO] [stdout] test tests::test_weight_combinations ... ok [INFO] [stdout] test tests::test_weighted_geometric_mean ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 25 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests miracle_api [INFO] [stdout] [INFO] [stdout] running 42 tests [INFO] [stdout] test src/instruction.rs - instruction::UpdateTargets (line 290) ... ok [INFO] [stdout] test src/dmt/social_claim_data.rs - dmt::social_claim_data::SocialClaimData (line 12) ... ok [INFO] [stdout] test src/instruction.rs - instruction::Claim (line 93) ... ok [INFO] [stdout] test src/instruction.rs - instruction::BatchClaim (line 185) ... ok [INFO] [stdout] test src/sdk.rs - sdk::MerkleTree::new (line 1417) ... ok [INFO] [stdout] test src/sdk.rs - sdk::calculate_customer_reward_transparent_with_cap (line 727) ... ok [INFO] [stdout] test src/sdk.rs - sdk::MerkleTree::generate_proof (line 1507) ... ok [INFO] [stdout] test src/sdk.rs - sdk::batch_claim_date_range (line 995) ... ok [INFO] [stdout] test src/sdk.rs - sdk::calculate_merchant_reward_transparent_with_cap (line 840) ... ok [INFO] [stdout] test src/dmt/daily_participant_data.rs - dmt::daily_participant_data::DailyParticipantData (line 32) ... ok [INFO] [stdout] test src/sdk.rs - sdk::MerkleProof::verify (line 1728) ... ok [INFO] [stdout] test src/sdk.rs - sdk::create_seal_merkle_tree_from_roots (line 2835) ... ok [INFO] [stdout] test src/sdk.rs - sdk::calculate_customer_reward_transparent (line 668) ... ok [INFO] [stdout] test src/sdk.rs - sdk::MerkleTree::find_and_generate_proof (line 1611) ... ok [INFO] [stdout] test src/sdk.rs - sdk::update_metrics (line 528) - compile ... ok [INFO] [stdout] test src/sdk.rs - sdk::find_participant_index (line 1888) ... ok [INFO] [stdout] test src/sdk.rs - sdk::update_oracle (line 448) - compile ... ok [INFO] [stdout] test src/sdk.rs - sdk::generate_seal_proof (line 2860) ... ok [INFO] [stdout] test src/sdk.rs - sdk::generate_proof_for_wallet (line 2167) ... ok [INFO] [stdout] test src/sdk.rs - sdk::timestamp_to_epoch (line 893) ... ok [INFO] [stdout] test src/utils.rs - utils (line 20) ... FAILED [INFO] [stdout] test src/utils.rs - utils (line 52) ... FAILED [INFO] [stdout] test src/sdk.rs - sdk::find_participant_index (line 1937) ... ok [INFO] [stdout] test src/utils.rs - utils::claim::epoch_claim_data_from_hex (line 214) ... FAILED [INFO] [stdout] test src/sdk.rs - sdk::update_targets (line 1328) ... ok [INFO] [stdout] test src/utils.rs - utils::hex::hex_string_to_bytes (line 83) ... FAILED [INFO] [stdout] test src/sdk.rs - sdk::wallet_to_participant_id (line 1980) ... ok [INFO] [stdout] test src/utils.rs - utils::hex::hex_string_to_hash_bytes (line 161) ... FAILED [INFO] [stdout] test src/sdk.rs - sdk::verify_merkle_proof (line 1853) ... ok [INFO] [stdout] test src/utils.rs - utils::hex::hex_string_to_u64_bytes (line 141) ... FAILED [INFO] [stdout] test src/sdk.rs - sdk::verify_dual_merkle_claim (line 2282) ... ok [INFO] [stdout] test src/utils.rs - utils::hex::bytes_to_hex_string (line 181) ... ok [INFO] [stdout] test src/sdk.rs - sdk::create_merkle_tree (line 1821) ... ok [INFO] [stdout] test src/sdk.rs - sdk::find_participant_by_wallet (line 2025) ... ok [INFO] [stdout] test src/sdk.rs - sdk::date_range_to_epochs (line 953) ... ok [INFO] [stdout] test src/utils.rs - utils::claim::epoch_claim_data_from_u64 (line 258) ... ok [INFO] [stdout] test src/sdk.rs - sdk::epoch_to_timestamp (line 930) ... ok [INFO] [stdout] test src/sdk.rs - sdk::create_participant_from_wallet (line 2100) ... ok [INFO] [stdout] test src/sdk.rs - sdk::create_social_claim_data (line 142) ... ok [INFO] [stdout] test src/sdk.rs - sdk::calculate_merchant_reward_transparent (line 781) ... ok [INFO] [stdout] test src/sdk.rs - sdk::SealProof::new_for_verification (line 2399) ... ok [INFO] [stdout] test src/sdk.rs - sdk::create_seal_merkle_tree (line 2805) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/utils.rs - utils (line 20) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/utils.rs:25:72 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_utils_rs_20_0() { [INFO] [stdout] | ------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let bytes: [u8; 8] = hex::hex_string_to_u64_bytes("0x1234567890abcdef")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_utils_rs_20_0() -> Result<(), Box> { [INFO] [stdout] 5 | use miracle_api::utils::{hex, claim}; [INFO] [stdout] ... [INFO] [stdout] 19| let epoch_data = claim::epoch_claim_data_from_u64(1234567890, 9876543210, 100, 200); [INFO] [stdout] 20+ Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/utils.rs:33:2 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_utils_rs_20_0() { [INFO] [stdout] | ------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 16 | )?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_utils_rs_20_0() -> Result<(), Box> { [INFO] [stdout] 5 | use miracle_api::utils::{hex, claim}; [INFO] [stdout] ... [INFO] [stdout] 19 | let epoch_data = claim::epoch_claim_data_from_u64(1234567890, 9876543210, 100, 200); [INFO] [stdout] 20 + Ok(()) [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 E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/utils.rs - utils (line 52) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/utils.rs:57:72 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_utils_rs_52_0() { [INFO] [stdout] | ------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let bytes: [u8; 8] = hex::hex_string_to_u64_bytes("0x1234567890abcdef")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_utils_rs_52_0() -> Result<(), Box> { [INFO] [stdout] 5 | use miracle_api::utils::{hex, claim}; [INFO] [stdout] ... [INFO] [stdout] 19| let epoch_data = claim::epoch_claim_data_from_u64(1234567890, 9876543210, 100, 200); [INFO] [stdout] 20+ Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/utils.rs:65:2 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_utils_rs_52_0() { [INFO] [stdout] | ------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 16 | )?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_utils_rs_52_0() -> Result<(), Box> { [INFO] [stdout] 5 | use miracle_api::utils::{hex, claim}; [INFO] [stdout] ... [INFO] [stdout] 19 | let epoch_data = claim::epoch_claim_data_from_u64(1234567890, 9876543210, 100, 200); [INFO] [stdout] 20 + Ok(()) [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 E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/utils.rs - utils::claim::epoch_claim_data_from_hex (line 214) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/utils.rs:223:2 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_utils_rs_214_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 12 | )?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_utils_rs_214_0() -> Result<(), Box> { [INFO] [stdout] 5 | use miracle_api::utils::claim::epoch_claim_data_from_hex; [INFO] [stdout] ... [INFO] [stdout] 12 | )?; [INFO] [stdout] 13 + Ok(()) [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 E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/utils.rs - utils::hex::hex_string_to_bytes (line 83) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/utils.rs:88:66 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_utils_rs_83_0() { [INFO] [stdout] | ------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let bytes: [u8; 8] = hex_string_to_bytes("0x1234567890abcdef", 8)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_utils_rs_83_0() -> Result<(), Box> { [INFO] [stdout] 5 | use miracle_api::utils::hex::hex_string_to_bytes; [INFO] [stdout] ... [INFO] [stdout] 12| let bytes: [u8; 32] = hex_string_to_bytes("1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", 32)?; [INFO] [stdout] 13+ Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/utils.rs:92:114 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_utils_rs_83_0() { [INFO] [stdout] | ------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 12 | let bytes: [u8; 32] = hex_string_to_bytes("1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", 32)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_utils_rs_83_0() -> Result<(), Box> { [INFO] [stdout] 5 | use miracle_api::utils::hex::hex_string_to_bytes; [INFO] [stdout] ... [INFO] [stdout] 12 | let bytes: [u8; 32] = hex_string_to_bytes("1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", 32)?; [INFO] [stdout] 13 + Ok(()) [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 E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/utils.rs - utils::hex::hex_string_to_hash_bytes (line 161) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/utils.rs:166:43 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_utils_rs_161_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let bytes = hex_string_to_hash_bytes(hash)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_utils_rs_161_0() -> Result<(), Box> { [INFO] [stdout] 5 | use miracle_api::utils::hex::hex_string_to_hash_bytes; [INFO] [stdout] ... [INFO] [stdout] 9 | assert_eq!(bytes.len(), 32); [INFO] [stdout] 10+ Ok(()) [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 E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/utils.rs - utils::hex::hex_string_to_u64_bytes (line 141) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/utils.rs:145:58 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_utils_rs_141_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let bytes = hex_string_to_u64_bytes("0x1234567890abcdef")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_utils_rs_141_0() -> Result<(), Box> { [INFO] [stdout] 5 | use miracle_api::utils::hex::hex_string_to_u64_bytes; [INFO] [stdout] ... [INFO] [stdout] 8 | assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78, 0x90, 0xab, 0xcd, 0xef]); [INFO] [stdout] 9 + Ok(()) [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 E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/utils.rs - utils (line 20) [INFO] [stdout] src/utils.rs - utils (line 52) [INFO] [stdout] src/utils.rs - utils::claim::epoch_claim_data_from_hex (line 214) [INFO] [stdout] src/utils.rs - utils::hex::hex_string_to_bytes (line 83) [INFO] [stdout] src/utils.rs - utils::hex::hex_string_to_hash_bytes (line 161) [INFO] [stdout] src/utils.rs - utils::hex::hex_string_to_u64_bytes (line 141) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 36 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 13.84s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "b03ef853224346c75f3bde806da16c5a9d495c6aab679337817636dde70525f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b03ef853224346c75f3bde806da16c5a9d495c6aab679337817636dde70525f8", kill_on_drop: false }` [INFO] [stdout] b03ef853224346c75f3bde806da16c5a9d495c6aab679337817636dde70525f8