[INFO] cloning repository https://github.com/LNThanhNhan/near_test_homework [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LNThanhNhan/near_test_homework" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLNThanhNhan%2Fnear_test_homework", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLNThanhNhan%2Fnear_test_homework'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cdbd88b4510879bc8b4ea6c0546e6cf6a06281fc [INFO] testing LNThanhNhan/near_test_homework against try#7af779037716ae4125ceabb429791b4cf5dd0a43 for pr-136932 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLNThanhNhan%2Fnear_test_homework" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 69% (869/1250) Updating files: 70% (875/1250) Updating files: 71% (888/1250) Updating files: 72% (900/1250) Updating files: 73% (913/1250) Updating files: 74% (925/1250) Updating files: 75% (938/1250) Updating files: 76% (950/1250) Updating files: 77% (963/1250) Updating files: 78% (975/1250) Updating files: 79% (988/1250) Updating files: 80% (1000/1250) Updating files: 81% (1013/1250) Updating files: 82% (1025/1250) Updating files: 83% (1038/1250) Updating files: 84% (1050/1250) Updating files: 85% (1063/1250) Updating files: 86% (1075/1250) Updating files: 87% (1088/1250) Updating files: 88% (1100/1250) Updating files: 89% (1113/1250) Updating files: 90% (1125/1250) Updating files: 91% (1138/1250) Updating files: 92% (1150/1250) Updating files: 93% (1163/1250) Updating files: 94% (1175/1250) Updating files: 95% (1188/1250) Updating files: 96% (1200/1250) Updating files: 97% (1213/1250) Updating files: 98% (1225/1250) Updating files: 99% (1238/1250) Updating files: 100% (1250/1250) Updating files: 100% (1250/1250), done. [INFO] validating manifest of git repo https://github.com/LNThanhNhan/near_test_homework on toolchain 7af779037716ae4125ceabb429791b4cf5dd0a43 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/LNThanhNhan/near_test_homework [INFO] finished tweaking git repo https://github.com/LNThanhNhan/near_test_homework [INFO] tweaked toml for git repo https://github.com/LNThanhNhan/near_test_homework written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/LNThanhNhan/near_test_homework 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" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded near-vm-logic v2.0.0 [INFO] [stderr] Downloaded borsh-schema-derive-internal v0.7.1 [INFO] [stderr] Downloaded near-vm-errors v2.0.0 [INFO] [stderr] Downloaded near-sdk v2.0.0 [INFO] [stderr] Downloaded borsh-derive v0.7.1 [INFO] [stderr] Downloaded borsh v0.7.1 [INFO] [stderr] Downloaded near-sdk-core v2.0.0 [INFO] [stderr] Downloaded near-sdk-macros v2.0.0 [INFO] [stderr] Downloaded near-runtime-fees v2.0.0 [INFO] [stderr] Downloaded borsh-derive-internal v0.7.1 [INFO] [stderr] Downloaded sha3 v0.8.2 [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 15b9d4a7cc930b023325879396401f31c0c8950ce6cd4134f63a9c2a81b37b10 [INFO] running `Command { std: "docker" "start" "-a" "15b9d4a7cc930b023325879396401f31c0c8950ce6cd4134f63a9c2a81b37b10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "15b9d4a7cc930b023325879396401f31c0c8950ce6cd4134f63a9c2a81b37b10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15b9d4a7cc930b023325879396401f31c0c8950ce6cd4134f63a9c2a81b37b10", kill_on_drop: false }` [INFO] [stdout] 15b9d4a7cc930b023325879396401f31c0c8950ce6cd4134f63a9c2a81b37b10 [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a50151c02c6ffea87c76465887ee2d8a211159402e858b138981337c3d0276b [INFO] running `Command { std: "docker" "start" "-a" "2a50151c02c6ffea87c76465887ee2d8a211159402e858b138981337c3d0276b", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling syn v1.0.39 [INFO] [stderr] Compiling serde_derive v1.0.115 [INFO] [stderr] Compiling serde v1.0.115 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling libc v0.2.76 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling hashbrown v0.8.2 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling indexmap v1.5.1 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling keccak v0.1.0 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Compiling bs58 v0.3.1 [INFO] [stderr] Compiling base64 v0.11.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling memory_units v0.4.0 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling sha3 v0.8.2 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.7.1 [INFO] [stderr] Compiling borsh-derive-internal v0.7.1 [INFO] [stderr] Compiling near-sdk-core v2.0.0 [INFO] [stderr] Compiling borsh-derive v0.7.1 [INFO] [stderr] Compiling near-sdk-macros v2.0.0 [INFO] [stderr] Compiling borsh v0.7.1 [INFO] [stderr] Compiling near-runtime-fees v2.0.0 [INFO] [stderr] Compiling near-rpc-error-core v0.1.0 [INFO] [stderr] Compiling near-rpc-error-macro v0.1.0 [INFO] [stderr] Compiling near-vm-errors v2.0.0 [INFO] [stderr] Compiling near-vm-logic v2.0.0 [INFO] [stderr] Compiling near-sdk v2.0.0 [INFO] [stderr] Compiling voting-contract v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 32.28s [INFO] running `Command { std: "docker" "inspect" "2a50151c02c6ffea87c76465887ee2d8a211159402e858b138981337c3d0276b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a50151c02c6ffea87c76465887ee2d8a211159402e858b138981337c3d0276b", kill_on_drop: false }` [INFO] [stdout] 2a50151c02c6ffea87c76465887ee2d8a211159402e858b138981337c3d0276b [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fc5cf70a5c430853579c9cac078bb4c26879aa355abec8b8717e1ae7e40e13fb [INFO] running `Command { std: "docker" "start" "-a" "fc5cf70a5c430853579c9cac078bb4c26879aa355abec8b8717e1ae7e40e13fb", kill_on_drop: false }` [INFO] [stderr] Compiling voting-contract v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.84s [INFO] running `Command { std: "docker" "inspect" "fc5cf70a5c430853579c9cac078bb4c26879aa355abec8b8717e1ae7e40e13fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc5cf70a5c430853579c9cac078bb4c26879aa355abec8b8717e1ae7e40e13fb", kill_on_drop: false }` [INFO] [stdout] fc5cf70a5c430853579c9cac078bb4c26879aa355abec8b8717e1ae7e40e13fb [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f03ac0beee29f02a430c2bebcdf4a34e28d84321a510d5fe3ce47d6850566e74 [INFO] running `Command { std: "docker" "start" "-a" "f03ac0beee29f02a430c2bebcdf4a34e28d84321a510d5fe3ce47d6850566e74", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/voting_contract-ac22fd252c2ee764) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test tests::test_validator_kick_out ... ok [INFO] [stdout] test tests::test_validator_stake_change ... ok [INFO] [stdout] test tests::test_voting_with_epoch_change ... ok [INFO] [stdout] test tests::test_withdraw_votes ... ok [INFO] [stdout] test tests::test_voting_simple ... ok [INFO] [stdout] test tests::test_nonvalidator_cannot_vote - should panic ... ok [INFO] [stderr] Doc-tests voting_contract [INFO] [stdout] test tests::test_vote_again_after_voting_ends - should panic ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s [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" "f03ac0beee29f02a430c2bebcdf4a34e28d84321a510d5fe3ce47d6850566e74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f03ac0beee29f02a430c2bebcdf4a34e28d84321a510d5fe3ce47d6850566e74", kill_on_drop: false }` [INFO] [stdout] f03ac0beee29f02a430c2bebcdf4a34e28d84321a510d5fe3ce47d6850566e74