paritytech / substrate-debug-kit

A collection of debug tools, scripts and libraries on top of substrate.
GNU General Public License v3.0
95 stars 36 forks source link

move to rust 2021 #41

Closed nuke-web3 closed 2 years ago

nuke-web3 commented 2 years ago

Confirmed to build locally on Ubuntu 20.04.3 LTS:

rustc 1.56.1 (59eed8a2a 2021-11-01)
rustc 1.58.0-nightly (e90c5fbbc 2021-11-12)

Test Failures:

cargo test --release

running 8 tests
test tests::can_get_all_storage_ws ... FAILED
test tests::get_storage_size_works_map ... FAILED
test tests::storage_map_read_works ... FAILED
test tests::storage_value_read_works ... FAILED
test tests::kusama_1832 ... FAILED
test tests::get_storage_size_works_value ... FAILED
test tests::get_const_works ... FAILED
test tests::can_get_all_storage_http ... FAILED

failures:

---- tests::can_get_all_storage_ws stdout ----
thread 'tests::can_get_all_storage_ws' panicked at 'not yet implemented', sub-storage/src/lib.rs:420:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- tests::get_storage_size_works_map stdout ----
thread 'tests::get_storage_size_works_map' panicked at 'called `Result::unwrap()` on an `Err` value: TransportError(Connect(Io(Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })))', sub-storage/src/lib.rs:43:56

---- tests::storage_map_read_works stdout ----
thread 'tests::storage_map_read_works' panicked at 'called `Result::unwrap()` on an `Err` value: TransportError(Connect(Io(Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })))', sub-storage/src/lib.rs:43:56

---- tests::storage_value_read_works stdout ----
thread 'tests::storage_value_read_works' panicked at 'called `Result::unwrap()` on an `Err` value: TransportError(Connect(Io(Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })))', sub-storage/src/lib.rs:43:56

---- tests::kusama_1832 stdout ----
thread 'tests::kusama_1832' panicked at 'called `Result::unwrap()` on an `Err` value: TransportError(Connect(Io(Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })))', sub-storage/src/lib.rs:43:56

---- tests::get_storage_size_works_value stdout ----
thread 'tests::get_storage_size_works_value' panicked at 'called `Result::unwrap()` on an `Err` value: TransportError(Connect(Io(Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })))', sub-storage/src/lib.rs:43:56

---- tests::get_const_works stdout ----
thread 'tests::get_const_works' panicked at 'called `Result::unwrap()` on an `Err` value: TransportError(Connect(Io(Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })))', sub-storage/src/lib.rs:43:56

---- tests::can_get_all_storage_http stdout ----
thread 'tests::can_get_all_storage_http' panicked at 'called `Result::unwrap()` on an `Err` value: TransportError(Connect(Io(Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })))', sub-storage/src/lib.rs:43:56

failures:
    tests::can_get_all_storage_http
    tests::can_get_all_storage_ws
    tests::get_const_works
    tests::get_storage_size_works_map
    tests::get_storage_size_works_value
    tests::kusama_1832
    tests::storage_map_read_works
    tests::storage_value_read_works

test result: FAILED. 0 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

error: test failed, to rerun pass '-p sub-storage --lib'
nuke-web3 commented 2 years ago

For the test failure, I am thinking user error: do I need a local node running? I just have not read the docs yet :sweat_smile:

kianenigma commented 2 years ago

Yes, that's the reason. I am fine with the change if everything compiles, although note that I am deprecating this repo and moving it to substrate gradually.