[INFO] cloning repository https://github.com/JhonaCodes/rate-limiter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JhonaCodes/rate-limiter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJhonaCodes%2Frate-limiter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJhonaCodes%2Frate-limiter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 92112c87d09ada03e0e900f389fab909e1d0b458 [INFO] testing JhonaCodes/rate-limiter against master#ec6f9a5b4413f74386267ef8efc93712c2ce6db6 for pr-155739 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJhonaCodes%2Frate-limiter" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/JhonaCodes/rate-limiter [INFO] finished tweaking git repo https://github.com/JhonaCodes/rate-limiter [INFO] tweaked toml for git repo https://github.com/JhonaCodes/rate-limiter written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/JhonaCodes/rate-limiter on toolchain ec6f9a5b4413f74386267ef8efc93712c2ce6db6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/JhonaCodes/rate-limiter 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" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded spinning_top v0.3.0 [INFO] [stderr] Downloaded quanta v0.12.6 [INFO] [stderr] Downloaded nonzero_ext v0.3.0 [INFO] [stderr] Downloaded no-std-compat v0.4.1 [INFO] [stderr] Downloaded dashmap v6.1.0 [INFO] [stderr] Downloaded actix-governor v0.6.0 [INFO] [stderr] Downloaded raw-cpuid v11.6.0 [INFO] [stderr] Downloaded governor v0.8.1 [INFO] [stderr] Downloaded regex-lite v0.1.9 [INFO] [stderr] Downloaded governor v0.6.3 [INFO] [stderr] Downloaded syn v2.0.116 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 32dc42a2a98a7d587f0184a88a232df6854fbf09324fb30ce60084b02e8f8354 [INFO] running `Command { std: "docker" "start" "-a" "32dc42a2a98a7d587f0184a88a232df6854fbf09324fb30ce60084b02e8f8354", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "32dc42a2a98a7d587f0184a88a232df6854fbf09324fb30ce60084b02e8f8354", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32dc42a2a98a7d587f0184a88a232df6854fbf09324fb30ce60084b02e8f8354", kill_on_drop: false }` [INFO] [stdout] 32dc42a2a98a7d587f0184a88a232df6854fbf09324fb30ce60084b02e8f8354 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d746a7cf6f2a7abe2c6e1bf5ec871df1d5f7de7cb51271d1644d2c94fa6f9211 [INFO] running `Command { std: "docker" "start" "-a" "d746a7cf6f2a7abe2c6e1bf5ec871df1d5f7de7cb51271d1644d2c94fa6f9211", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling unicode-ident v1.0.23 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Compiling libc v0.2.182 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling futures-core v0.3.32 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling futures-sink v0.3.32 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling bytes v1.11.1 [INFO] [stderr] Compiling zerocopy v0.8.39 [INFO] [stderr] Compiling find-msvc-tools v0.1.9 [INFO] [stderr] Compiling futures-task v0.3.32 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Compiling futures-channel v0.3.32 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling slab v0.4.12 [INFO] [stderr] Compiling futures-io v0.3.32 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling bitflags v2.11.0 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling simd-adler32 v0.3.8 [INFO] [stderr] Compiling regex-lite v0.1.9 [INFO] [stderr] Compiling regex-syntax v0.8.9 [INFO] [stderr] Compiling num-conv v0.2.0 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling syn v2.0.116 [INFO] [stderr] Compiling convert_case v0.10.0 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Compiling portable-atomic v1.13.1 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling time-core v0.1.8 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling deranged v0.5.6 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling time-macros v0.2.27 [INFO] [stderr] Compiling bytestring v1.5.0 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling brotli-decompressor v5.0.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling cc v1.2.56 [INFO] [stderr] Compiling socket2 v0.6.2 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling rand_core v0.9.5 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling raw-cpuid v11.6.0 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling actix-service v2.0.3 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling time v0.3.47 [INFO] [stderr] Compiling flate2 v1.1.9 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling brotli v8.0.2 [INFO] [stderr] Compiling spinning_top v0.3.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling nonzero_ext v0.3.0 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling ryu v1.0.23 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling no-std-compat v0.4.1 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling impl-more v0.1.9 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling web-time v1.1.0 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling quanta v0.12.6 [INFO] [stderr] Compiling regex v1.12.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling actix-rt v2.11.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling derive_more-impl v2.1.1 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling derive_more v2.1.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling futures-executor v0.3.32 [INFO] [stderr] Compiling actix-server v2.6.0 [INFO] [stderr] Compiling governor v0.8.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling futures v0.3.32 [INFO] [stderr] Compiling governor v0.6.3 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling actix-http v3.11.2 [INFO] [stderr] Compiling actix-web v4.12.1 [INFO] [stderr] Compiling actix-governor v0.6.0 [INFO] [stderr] Compiling rate_limiter v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 46.55s [INFO] running `Command { std: "docker" "inspect" "d746a7cf6f2a7abe2c6e1bf5ec871df1d5f7de7cb51271d1644d2c94fa6f9211", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d746a7cf6f2a7abe2c6e1bf5ec871df1d5f7de7cb51271d1644d2c94fa6f9211", kill_on_drop: false }` [INFO] [stdout] d746a7cf6f2a7abe2c6e1bf5ec871df1d5f7de7cb51271d1644d2c94fa6f9211 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7e5a4916782e8e97f56921e7846c6d3b7640cf5678a62c62c36597a939e7cb65 [INFO] running `Command { std: "docker" "start" "-a" "7e5a4916782e8e97f56921e7846c6d3b7640cf5678a62c62c36597a939e7cb65", kill_on_drop: false }` [INFO] [stderr] Compiling rate_limiter v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.91s [INFO] running `Command { std: "docker" "inspect" "7e5a4916782e8e97f56921e7846c6d3b7640cf5678a62c62c36597a939e7cb65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e5a4916782e8e97f56921e7846c6d3b7640cf5678a62c62c36597a939e7cb65", kill_on_drop: false }` [INFO] [stdout] 7e5a4916782e8e97f56921e7846c6d3b7640cf5678a62c62c36597a939e7cb65 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f4982ee74ba44db1bfe63413d2825f6fd711159e1f03a1d8cde1cdd268e15657 [INFO] running `Command { std: "docker" "start" "-a" "f4982ee74ba44db1bfe63413d2825f6fd711159e1f03a1d8cde1cdd268e15657", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rate_limiter-8c4653d8ac334731) [INFO] [stdout] [INFO] [stdout] running 12 tests [INFO] [stdout] test engine::tests::lockout_is_capped ... ok [INFO] [stdout] test engine::tests::method_scope_mutating_only ... ok [INFO] [stdout] test identity::tests::api_key_has_priority_over_bearer_token ... ok [INFO] [stdout] test identity::tests::bearer_token_identity_suffix_is_user_fingerprint ... ok [INFO] [stdout] test global::tests::real_ip_strategy_reads_x_forwarded_for_first_ip ... ok [INFO] [stdout] test global::tests::peer_ip_strategy_uses_peer_addr_only ... ok [INFO] [stdout] test global::tests::real_ip_strategy_falls_back_to_peer_addr ... ok [INFO] [stdout] test identity::tests::device_id_creates_distinct_bucket_for_anonymous_requests ... ok [INFO] [stdout] test identity::tests::identity_uses_peer_ip_as_fallback ... ok [INFO] [stdout] test identity::tests::device_id_is_ignored_when_bearer_token_present ... ok [INFO] [stdout] test identity::tests::identity_uses_real_ip_and_anon_suffix ... ok [INFO] [stdout] test global::tests::global_limiter_blocks_across_different_endpoints_for_same_identity ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.10s [INFO] [stdout] [INFO] [stderr] Doc-tests rate_limiter [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/middleware.rs - middleware::RateLimiter::middleware (line 65) ... ignored [INFO] [stdout] test src/middleware.rs - middleware::RateLimiter::new (line 33) ... ignored [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.15s; merged doctests compilation took 0.15s [INFO] running `Command { std: "docker" "inspect" "f4982ee74ba44db1bfe63413d2825f6fd711159e1f03a1d8cde1cdd268e15657", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4982ee74ba44db1bfe63413d2825f6fd711159e1f03a1d8cde1cdd268e15657", kill_on_drop: false }` [INFO] [stdout] f4982ee74ba44db1bfe63413d2825f6fd711159e1f03a1d8cde1cdd268e15657