[INFO] fetching crate nautilus-portfolio 0.55.0... [INFO] testing nautilus-portfolio-0.55.0 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-2 [INFO] extracting crate nautilus-portfolio 0.55.0 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate nautilus-portfolio 0.55.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate nautilus-portfolio 0.55.0 [INFO] tweaked toml for crates.io crate nautilus-portfolio 0.55.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate nautilus-portfolio 0.55.0 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 nautilus-portfolio 0.55.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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 2584cfa6848de171b10aa4599e0c0d23e879814995938dce6cb197d0bf3e93db [INFO] running `Command { std: "docker" "start" "-a" "2584cfa6848de171b10aa4599e0c0d23e879814995938dce6cb197d0bf3e93db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2584cfa6848de171b10aa4599e0c0d23e879814995938dce6cb197d0bf3e93db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2584cfa6848de171b10aa4599e0c0d23e879814995938dce6cb197d0bf3e93db", kill_on_drop: false }` [INFO] [stdout] 2584cfa6848de171b10aa4599e0c0d23e879814995938dce6cb197d0bf3e93db [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 4beb67ad6090b7f9addb429b0bbf1cda1a72cf891c2beb02569706b906a21bde [INFO] running `Command { std: "docker" "start" "-a" "4beb67ad6090b7f9addb429b0bbf1cda1a72cf891c2beb02569706b906a21bde", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling libm v0.2.16 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling bitflags v2.11.0 [INFO] [stderr] Compiling arrow-schema v58.1.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling semver v1.0.28 [INFO] [stderr] Compiling lexical-util v1.0.7 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling darling_core v0.23.0 [INFO] [stderr] Compiling getrandom v0.4.2 [INFO] [stderr] Compiling lexical-write-integer v1.0.6 [INFO] [stderr] Compiling lexical-parse-integer v1.0.6 [INFO] [stderr] Compiling lexical-write-float v1.0.6 [INFO] [stderr] Compiling lexical-parse-float v1.0.6 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling rand_core v0.10.0 [INFO] [stderr] Compiling ryu v1.0.23 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling half v2.7.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling regex-syntax v0.8.10 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling toml_datetime v1.1.1+spec-1.1.0 [INFO] [stderr] Compiling serde_spanned v1.1.1 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling lexical-core v1.0.6 [INFO] [stderr] Compiling flatbuffers v25.12.19 [INFO] [stderr] Compiling indexmap v2.13.1 [INFO] [stderr] Compiling bytes v1.11.1 [INFO] [stderr] Compiling chrono v0.4.44 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling_macro v0.23.0 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling toml_edit v0.25.10+spec-1.1.0 [INFO] [stderr] Compiling arrow-buffer v58.1.0 [INFO] [stderr] Compiling darling v0.23.0 [INFO] [stderr] Compiling toml v1.1.2+spec-1.1.0 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling arrow-data v58.1.0 [INFO] [stderr] Compiling rstest_macros v0.26.1 [INFO] [stderr] Compiling csv-core v0.1.13 [INFO] [stderr] Compiling arrow-array v58.1.0 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling slab v0.4.12 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Compiling rust_decimal v1.41.0 [INFO] [stderr] Compiling cpufeatures v0.3.0 [INFO] [stderr] Compiling bon-macros v3.9.1 [INFO] [stderr] Compiling chacha20 v0.10.0 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling csv v1.4.0 [INFO] [stderr] Compiling nautilus-core v0.55.0 [INFO] [stderr] Compiling proc-macro-crate v3.5.0 [INFO] [stderr] Compiling regex v1.12.3 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Compiling rmp v0.8.15 [INFO] [stderr] Compiling simdutf8 v0.1.5 [INFO] [stderr] Compiling relative-path v1.9.3 [INFO] [stderr] Compiling bytecount v0.6.9 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling unicode-width v0.2.2 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling value-bag v1.12.0 [INFO] [stderr] Compiling implied-vol v2.0.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Compiling ustr v1.1.0 [INFO] [stderr] Compiling arrow-select v58.1.0 [INFO] [stderr] Compiling arrow-row v58.1.0 [INFO] [stderr] Compiling arrow-arith v58.1.0 [INFO] [stderr] Compiling papergrid v0.17.0 [INFO] [stderr] Compiling rmp-serde v1.3.1 [INFO] [stderr] Compiling tabled_derive v0.11.0 [INFO] [stderr] Compiling bon v3.9.1 [INFO] [stderr] Compiling rand v0.10.0 [INFO] [stderr] Compiling uuid v1.23.0 [INFO] [stderr] Compiling strum_macros v0.28.0 [INFO] [stderr] Compiling arrow-ord v58.1.0 [INFO] [stderr] Compiling arrow-string v58.1.0 [INFO] [stderr] Compiling arrow-ipc v58.1.0 [INFO] [stderr] Compiling arc-swap v1.9.1 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling nautilus-model v0.55.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling rstest v0.26.1 [INFO] [stderr] Compiling strum v0.28.0 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling arrow-cast v58.1.0 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling tabled v0.20.0 [INFO] [stderr] Compiling derive_builder v0.20.2 [INFO] [stderr] Compiling rust_decimal_macros v1.40.0 [INFO] [stderr] Compiling enum_dispatch v0.3.13 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling arraydeque v0.5.1 [INFO] [stderr] Compiling nautilus-common v0.55.0 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling futures v0.3.32 [INFO] [stderr] Compiling sysinfo v0.38.4 [INFO] [stderr] Compiling arrow-json v58.1.0 [INFO] [stderr] Compiling arrow-csv v58.1.0 [INFO] [stderr] Compiling arrow v58.1.0 [INFO] [stderr] Compiling nautilus-indicators v0.55.0 [INFO] [stderr] Compiling nautilus-analysis v0.55.0 [INFO] [stderr] Compiling nautilus-portfolio v0.55.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 19s [INFO] running `Command { std: "docker" "inspect" "4beb67ad6090b7f9addb429b0bbf1cda1a72cf891c2beb02569706b906a21bde", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4beb67ad6090b7f9addb429b0bbf1cda1a72cf891c2beb02569706b906a21bde", kill_on_drop: false }` [INFO] [stdout] 4beb67ad6090b7f9addb429b0bbf1cda1a72cf891c2beb02569706b906a21bde [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] dce0745ede4f210cf54a85c0cfcbc5fcff54fa2696d93562f140aa5a006b0054 [INFO] running `Command { std: "docker" "start" "-a" "dce0745ede4f210cf54a85c0cfcbc5fcff54fa2696d93562f140aa5a006b0054", kill_on_drop: false }` [INFO] [stderr] Compiling nautilus-portfolio v0.55.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.11s [INFO] running `Command { std: "docker" "inspect" "dce0745ede4f210cf54a85c0cfcbc5fcff54fa2696d93562f140aa5a006b0054", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dce0745ede4f210cf54a85c0cfcbc5fcff54fa2696d93562f140aa5a006b0054", kill_on_drop: false }` [INFO] [stdout] dce0745ede4f210cf54a85c0cfcbc5fcff54fa2696d93562f140aa5a006b0054 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] a83b6d8d132c062cf5e4762d4aed474aeba756486e4fd0bb10fdbc0dda483aae [INFO] running `Command { std: "docker" "start" "-a" "a83b6d8d132c062cf5e4762d4aed474aeba756486e4fd0bb10fdbc0dda483aae", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/nautilus_portfolio-95d35df9cc5fcf84) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test manager::tests::test_cash_account_rejects_negative_balance_when_borrowing_disabled ... ok [INFO] [stdout] test manager::tests::test_update_orders_betting_account_uses_liability_for_locked_balance ... ok [INFO] [stdout] test manager::tests::test_order_canceled_releases_locked_balance ... ok [INFO] [stdout] test manager::tests::test_betting_order_canceled_releases_locked_balance ... ok [INFO] [stdout] test manager::tests::test_manager_update_balances_skips_update_on_negative_balance_error ... ok [INFO] [stdout] test manager::tests::test_update_orders_clears_stale_currency_locks_when_order_sides_change ... ok [INFO] [stdout] test manager::tests::test_update_balance_locked_with_base_currency_multiple_orders ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s [INFO] [stdout] [INFO] [stderr] Running tests/portfolio.rs (/opt/rustwide/target/debug/deps/portfolio-b146a2ad4e81cfbd) [INFO] [stdout] [INFO] [stdout] running 37 tests [INFO] [stdout] test test_balances_locked_when_no_account_for_venue_returns_none ... ok [INFO] [stdout] test test_is_completely_flat_when_no_positions_returns_true ... ok [INFO] [stdout] test test_is_flat_when_no_positions_returns_true ... ok [INFO] [stdout] test test_account_when_account_returns_the_account_facade ... ok [INFO] [stdout] test test_exceed_free_balance_single_currency_raises_account_balance_negative_exception ... ok [INFO] [stdout] test test_exceed_free_balance_multi_currency_raises_account_balance_negative_exception ... ok [INFO] [stdout] test test_is_net_long_when_no_positions_returns_false ... ok [INFO] [stdout] test test_is_net_short_when_no_positions_returns_false ... ok [INFO] [stdout] test test_market_value_when_insufficient_data_for_xrate_returns_none ... ok [INFO] [stdout] test test_modifying_position_updates_portfolio ... ok [INFO] [stdout] test test_margins_maint_when_no_account_for_venue_returns_none ... ok [INFO] [stdout] test test_margins_init_when_no_account_for_venue_returns_none ... ok [INFO] [stdout] test test_initialize_orders_cash_account_with_base_currency ... ok [INFO] [stdout] test test_closing_position_updates_portfolio ... ok [INFO] [stdout] test test_net_exposures_when_no_positions_returns_none ... ok [INFO] [stdout] test test_net_position_when_no_positions_returns_zero ... ok [INFO] [stdout] test test_opening_one_long_position_updates_portfolio ... ok [INFO] [stdout] test test_net_exposures_with_nonexistent_account_returns_empty ... ok [INFO] [stdout] test test_opening_one_long_position_updates_portfolio_with_bar ... ok [INFO] [stdout] test test_net_exposure_filters_by_account_id ... ok [INFO] [stdout] test test_net_exposures_filters_by_account_id ... ok [INFO] [stdout] test test_portfolio_realized_pnl_with_position_snapshots_netting_oms ... ok [INFO] [stdout] test test_realized_pnl_for_instrument_when_no_instrument_returns_none ... ok [INFO] [stdout] test test_open_value_when_no_account_returns_none ... ok [INFO] [stdout] test test_realized_pnl_for_venue_when_no_account_returns_empty_dict ... ok [INFO] [stdout] test test_opening_one_short_position_updates_portfolio ... ok [INFO] [stdout] test test_order_accept_updates_margin_init ... ok [INFO] [stdout] test test_opening_several_positions_updates_portfolio ... ok [INFO] [stdout] test test_opening_positions_with_multi_asset_account ... ok [INFO] [stdout] test test_realized_pnl_with_missing_exchange_rate_returns_zero_instead_of_panic ... ok [INFO] [stdout] test test_several_positions_with_different_instruments_updates_portfolio ... ok [INFO] [stdout] test test_unrealized_pnl_for_instrument_when_no_instrument_returns_none ... ok [INFO] [stdout] test test_unrealized_pnl_for_venue_when_no_account_returns_empty_dict ... ok [INFO] [stderr] Doc-tests nautilus_portfolio [INFO] [stdout] test test_update_orders_open_cash_account ... ok [INFO] [stdout] test test_update_orders_open_margin_account ... ok [INFO] [stdout] test test_update_positions ... ok [INFO] [stdout] test test_update_tick ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 37 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s [INFO] [stdout] [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" "a83b6d8d132c062cf5e4762d4aed474aeba756486e4fd0bb10fdbc0dda483aae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a83b6d8d132c062cf5e4762d4aed474aeba756486e4fd0bb10fdbc0dda483aae", kill_on_drop: false }` [INFO] [stdout] a83b6d8d132c062cf5e4762d4aed474aeba756486e4fd0bb10fdbc0dda483aae