[INFO] cloning repository https://github.com/xuantinfx/near-voting-contract [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xuantinfx/near-voting-contract" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxuantinfx%2Fnear-voting-contract", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxuantinfx%2Fnear-voting-contract'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b1cc7646f70086897c8255aa44c17aef5c26a4a4 [INFO] testing xuantinfx/near-voting-contract against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxuantinfx%2Fnear-voting-contract" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/xuantinfx/near-voting-contract [INFO] finished tweaking git repo https://github.com/xuantinfx/near-voting-contract [INFO] tweaked toml for git repo https://github.com/xuantinfx/near-voting-contract written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/xuantinfx/near-voting-contract 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] crate git repo https://github.com/xuantinfx/near-voting-contract 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded near-sdk v2.0.0 [INFO] [stderr] Downloaded near-runtime-fees v2.0.0 [INFO] [stderr] Downloaded near-rpc-error-macro v0.1.0 [INFO] [stderr] Downloaded near-sdk-macros v2.0.0 [INFO] [stderr] Downloaded near-rpc-error-core v0.1.0 [INFO] [stderr] Downloaded borsh-derive-internal v0.7.1 [INFO] [stderr] Downloaded borsh v0.7.1 [INFO] [stderr] Downloaded near-sdk-core v2.0.0 [INFO] [stderr] Downloaded indexmap v1.5.1 [INFO] [stderr] Downloaded near-vm-logic v2.0.0 [INFO] [stderr] Downloaded syn v1.0.39 [INFO] [stderr] Downloaded borsh-schema-derive-internal v0.7.1 [INFO] [stderr] Downloaded borsh-derive v0.7.1 [INFO] [stderr] Downloaded serde_json v1.0.57 [INFO] [stderr] Downloaded near-vm-errors v2.0.0 [INFO] [stderr] Downloaded libc v0.2.76 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 25addb6af66397efd086cfd22d60fe249f240dda7bf4c84e5d9b0cae8cac906b [INFO] running `Command { std: "docker" "start" "-a" "25addb6af66397efd086cfd22d60fe249f240dda7bf4c84e5d9b0cae8cac906b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "25addb6af66397efd086cfd22d60fe249f240dda7bf4c84e5d9b0cae8cac906b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25addb6af66397efd086cfd22d60fe249f240dda7bf4c84e5d9b0cae8cac906b", kill_on_drop: false }` [INFO] [stdout] 25addb6af66397efd086cfd22d60fe249f240dda7bf4c84e5d9b0cae8cac906b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 41997260eaf7eedde08315458a3ce2458a65762f5ce87e2ebbba49264cbff56f [INFO] running `Command { std: "docker" "start" "-a" "41997260eaf7eedde08315458a3ce2458a65762f5ce87e2ebbba49264cbff56f", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling unicode-xid v0.2.1 [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 serde_json v1.0.57 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling hashbrown v0.8.2 [INFO] [stderr] Compiling indexmap v1.5.1 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling libc v0.2.76 [INFO] [stderr] Compiling keccak v0.1.0 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling fake-simd v0.1.2 [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 29.65s [INFO] running `Command { std: "docker" "inspect" "41997260eaf7eedde08315458a3ce2458a65762f5ce87e2ebbba49264cbff56f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41997260eaf7eedde08315458a3ce2458a65762f5ce87e2ebbba49264cbff56f", kill_on_drop: false }` [INFO] [stdout] 41997260eaf7eedde08315458a3ce2458a65762f5ce87e2ebbba49264cbff56f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] f1853e54f12ee9fe12ccd266099b1a5d682e5018e7462f5a7f8b8590a19c95e2 [INFO] running `Command { std: "docker" "start" "-a" "f1853e54f12ee9fe12ccd266099b1a5d682e5018e7462f5a7f8b8590a19c95e2", 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 1.01s [INFO] running `Command { std: "docker" "inspect" "f1853e54f12ee9fe12ccd266099b1a5d682e5018e7462f5a7f8b8590a19c95e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1853e54f12ee9fe12ccd266099b1a5d682e5018e7462f5a7f8b8590a19c95e2", kill_on_drop: false }` [INFO] [stdout] f1853e54f12ee9fe12ccd266099b1a5d682e5018e7462f5a7f8b8590a19c95e2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 4460f2f14f2e883a6b2a7ffd5b6d3705a477442874c8c5d3fdc8719e9a62d74d [INFO] running `Command { std: "docker" "start" "-a" "4460f2f14f2e883a6b2a7ffd5b6d3705a477442874c8c5d3fdc8719e9a62d74d", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/voting_contract-b9b48ea89140ed9b) [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_simple ... ok [INFO] [stdout] test tests::test_withdraw_votes ... ok [INFO] [stdout] test tests::test_voting_with_epoch_change ... ok [INFO] [stderr] Doc-tests voting_contract [INFO] [stdout] test tests::test_nonvalidator_cannot_vote - should panic ... ok [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.05s [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" "4460f2f14f2e883a6b2a7ffd5b6d3705a477442874c8c5d3fdc8719e9a62d74d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4460f2f14f2e883a6b2a7ffd5b6d3705a477442874c8c5d3fdc8719e9a62d74d", kill_on_drop: false }` [INFO] [stdout] 4460f2f14f2e883a6b2a7ffd5b6d3705a477442874c8c5d3fdc8719e9a62d74d