[INFO] fetching crate flagsmith 2.0.0... [INFO] testing flagsmith-2.0.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate flagsmith 2.0.0 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate flagsmith 2.0.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate flagsmith 2.0.0 [INFO] tweaked toml for crates.io crate flagsmith 2.0.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate flagsmith 2.0.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 287 packages to latest compatible versions [INFO] [stderr] Adding flume v0.10.14 (available: v0.11.1) [INFO] [stderr] Adding httpmock v0.6.8 (available: v0.7.0) [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.12.23) [INFO] [stderr] Adding rstest v0.12.0 (available: v0.26.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded flagsmith-flag-engine v0.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 36fe7b7b559aa43210a1b4d0894e049c629a8b5a36d56aebc68de6f50e79499d [INFO] running `Command { std: "docker" "start" "-a" "36fe7b7b559aa43210a1b4d0894e049c629a8b5a36d56aebc68de6f50e79499d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "36fe7b7b559aa43210a1b4d0894e049c629a8b5a36d56aebc68de6f50e79499d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36fe7b7b559aa43210a1b4d0894e049c629a8b5a36d56aebc68de6f50e79499d", kill_on_drop: false }` [INFO] [stdout] 36fe7b7b559aa43210a1b4d0894e049c629a8b5a36d56aebc68de6f50e79499d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 39d9fcde9dc1452e69644946b193c9fd3a908cece85b1152016a9faed370d001 [INFO] running `Command { std: "docker" "start" "-a" "39d9fcde9dc1452e69644946b193c9fd3a908cece85b1152016a9faed370d001", kill_on_drop: false }` [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling nanorand v0.7.0 [INFO] [stderr] Compiling flume v0.10.14 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling flagsmith-flag-engine v0.4.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling flagsmith v2.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.93s [INFO] running `Command { std: "docker" "inspect" "39d9fcde9dc1452e69644946b193c9fd3a908cece85b1152016a9faed370d001", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39d9fcde9dc1452e69644946b193c9fd3a908cece85b1152016a9faed370d001", kill_on_drop: false }` [INFO] [stdout] 39d9fcde9dc1452e69644946b193c9fd3a908cece85b1152016a9faed370d001 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e12f322dc4c078f1ad4e64adbd97a835afdb3b26b4d5e78f36cbdcd8df6cb919 [INFO] running `Command { std: "docker" "start" "-a" "e12f322dc4c078f1ad4e64adbd97a835afdb3b26b4d5e78f36cbdcd8df6cb919", kill_on_drop: false }` [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling futures-lite v2.6.1 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling ena v0.14.3 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling pico-args v0.5.0 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling event-listener-strategy v0.5.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling async-lock v3.4.1 [INFO] [stderr] Compiling async-channel v2.5.0 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling rstest v0.12.0 [INFO] [stderr] Compiling lalrpop-util v0.20.2 [INFO] [stderr] Compiling isahc v1.7.2 [INFO] [stderr] Compiling string_cache v0.8.9 [INFO] [stderr] Compiling assert-json-diff v2.0.2 [INFO] [stderr] Compiling serde_regex v1.1.0 [INFO] [stderr] Compiling levenshtein v1.0.5 [INFO] [stderr] Compiling async-executor v1.13.3 [INFO] [stderr] Compiling blocking v1.6.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling similar v2.7.0 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling lalrpop v0.20.2 [INFO] [stderr] Compiling polling v3.10.0 [INFO] [stderr] Compiling async-io v2.5.0 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling async-signal v0.2.12 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling async-process v2.4.0 [INFO] [stderr] Compiling async-std v1.13.2 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling async-object-pool v0.1.5 [INFO] [stderr] Compiling basic-cookies v0.1.5 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling httpmock v0.6.8 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling flagsmith v2.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/flagsmith/models.rs:227:59 [INFO] [stdout] | [INFO] [stdout] 227 | serde_json::from_str(FEATURE_STATE_JSON_STRING.clone()).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 49.71s [INFO] running `Command { std: "docker" "inspect" "e12f322dc4c078f1ad4e64adbd97a835afdb3b26b4d5e78f36cbdcd8df6cb919", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e12f322dc4c078f1ad4e64adbd97a835afdb3b26b4d5e78f36cbdcd8df6cb919", kill_on_drop: false }` [INFO] [stdout] e12f322dc4c078f1ad4e64adbd97a835afdb3b26b4d5e78f36cbdcd8df6cb919 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b1816b839ba3dc93122835a04b60136e1aff116bca74539d8a5dceae11c1dd24 [INFO] running `Command { std: "docker" "start" "-a" "b1816b839ba3dc93122835a04b60136e1aff116bca74539d8a5dceae11c1dd24", kill_on_drop: false }` [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/flagsmith/models.rs:227:59 [INFO] [stderr] | [INFO] [stderr] 227 | serde_json::from_str(FEATURE_STATE_JSON_STRING.clone()).unwrap(); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `flagsmith` (lib test) generated 1 warning (run `cargo fix --lib -p flagsmith --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.38s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/flagsmith-2c0dad7974959f7c) [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test flagsmith::models::tests::value_as_f64 ... ok [INFO] [stdout] test flagsmith::models::tests::can_create_flag_from_feature_state ... ok [INFO] [stdout] test flagsmith::models::tests::value_as_bool ... ok [INFO] [stdout] test flagsmith::models::tests::can_create_flag_from_from_api_flag ... ok [INFO] [stdout] test flagsmith::models::tests::value_as_i64 ... ok [INFO] [stdout] test flagsmith::models::tests::value_as_string ... ok [INFO] [stdout] test flagsmith::models::tests::value_as_type_returns_none_if_value_is_of_a_different_type ... ok [INFO] [stdout] test flagsmith::tests::client_implements_send_and_sync ... ok [INFO] [stdout] test flagsmith::offline_handler::tests::test_local_file_handler ... ok [INFO] [stdout] test flagsmith::tests::polling_thread_updates_environment_on_start ... ok [INFO] [stdout] test flagsmith::tests::test_local_evaluation_identity_override_evaluate_expected ... ok [INFO] [stdout] test flagsmith::analytics::tests::test_analytics_processor ... ok [INFO] [stdout] test flagsmith::analytics::tests::track_feature_updates_analytics_data ... ok [INFO] [stdout] test flagsmith::tests::polling_thread_updates_environment_on_each_refresh ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.63s [INFO] [stdout] [INFO] [stderr] Running tests/integration_test.rs (/opt/rustwide/target/debug/deps/integration_test-b00acd83f53cc870) [INFO] [stdout] [INFO] [stdout] running 22 tests [INFO] [stdout] test test_default_flag_is_not_used_when_environment_flags_returned ... ok [INFO] [stdout] test test_default_flag_is_used_when_no_matching_identity_flags_returned ... ok [INFO] [stdout] test test_default_flags_are_used_if_api_error_and_default_flag_handler_given_for_identity ... ok [INFO] [stdout] test test_get_identity_flags_calls_api_when_no_local_environment_with_transient_identity ... ok [INFO] [stdout] test test_flagsmith_client_error_is_returned_if_get_flag_is_called_with_a_flag_that_does_not_exists_without_default_handler ... ok [INFO] [stdout] test test_get_identity_flags_calls_api_when_no_local_environment_no_traits ... ok [INFO] [stdout] test test_flagsmith_panics_if_both_default_handler_and_offline_hanlder_are_set - should panic ... ok [INFO] [stdout] test test_flagsmith_api_error_is_returned_if_something_goes_wrong_with_the_request ... ok [INFO] [stdout] test test_get_identity_flags_calls_api_when_no_local_environment_with_traits ... ok [INFO] [stdout] test test_get_environment_flags_uses_local_environment_when_available ... ok [INFO] [stdout] test test_flagsmith_panics_if_offline_mode_is_used_without_offline_hanlder - should panic ... ok [INFO] [stdout] test test_flagsmith_should_panic_if_local_evaluation_mode_is_used_with_offline_handler - should panic ... ok [INFO] [stdout] test test_default_flag_is_used_when_no_matching_environment_flag_returned ... ok [INFO] [stdout] test test_default_flags_are_used_if_api_error_and_default_flag_handler_given_for_environment ... ok [INFO] [stdout] test test_get_identity_flags_calls_api_when_no_local_environment_with_transient_traits ... ok [INFO] [stdout] test test_default_flag_is_not_used_when_identity_flags_returned ... ok [INFO] [stdout] test test_get_identity_segments_with_valid_trait ... ok [INFO] [stdout] test test_get_identity_flags_uses_local_environment_when_available ... ok [INFO] [stdout] test test_offline_handler_is_used_if_request_fails ... ok [INFO] [stdout] test test_get_environment_flags_calls_api_when_no_local_environment ... ok [INFO] [stdout] test test_get_identity_segments_no_traits ... ok [INFO] [stdout] test test_offline_mode ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 22 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.28s [INFO] [stdout] [INFO] [stderr] Doc-tests flagsmith [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b1816b839ba3dc93122835a04b60136e1aff116bca74539d8a5dceae11c1dd24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1816b839ba3dc93122835a04b60136e1aff116bca74539d8a5dceae11c1dd24", kill_on_drop: false }` [INFO] [stdout] b1816b839ba3dc93122835a04b60136e1aff116bca74539d8a5dceae11c1dd24