Closed ashuralyk closed 1 year ago
目前在测试 CKB -> AXON 时会在如下代码报错,内容是在 light_client 配置中找不到 Axon 相关配置。我搜索了下 repo 目前没发现如何配置 Axon 的 light client。
目前卡在这里了。 @ashuralyk @Flouse
我会先把 CI 改成 Axon -> Axon, CKB -> CKB 这两个都是能跑通的。
2023-08-24T06:33:22.421279Z INFO ibc_relayer::chain::ckb::sighash::no_test: sighash celldep is initialized to: CellDep { out_point: OutPoint { tx_hash: Byte32(0x29ed5663501cd171513155f8939ad2c9ffeb92aa4879d39cde987f8eb6274407), index: Uint32(0x00000000) }, dep_type: Byte(0x01) }
test tests::channel::test_channel has been running for over 60 seconds
2023-08-24T06:33:36.809583Z INFO ibc_test_framework::bootstrap::binary::chain: created foreign client from chain ckb4ibc-0 to chain axon-1 with client id 07-ckb4ibc-1 on chain axon-1
2023-08-24T06:33:36.871156Z ERROR ethers_providers::rpc::transports::ws::backend: Error response from WS err=WebSocket protocol error: Connection reset without closing handshake
2023-08-24T06:33:36.871321Z INFO ethers_providers::rpc::transports::ws::manager: Reconnecting to backend remaining=4 url="ws://localhost:45178/"
2023-08-24T06:33:36.871774Z ERROR ethers_providers::rpc::transports::ws::manager: Error during reconnection err=IO error: Connection refused (os error 111)
Error:
0: generic error
1:
1: 0: error raised while creating client for chain ckb4ibc-0: failed sending message to dst chain
1: 1: unexpected client state type ClientType(07-ckb4ibc):
1: 0: config.toml missing client_type ClientType(07-axon)
1: Location:
1: /home/jjy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flex-error-0.4.4/src/tracer_impl/eyre.rs:10
1: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1: ⋮ 5 frames hidden ⋮
1: 6: flex_error::tracer_impl::eyre::<impl flex_error::tracer::ErrorMessageTracer for eyre::Report>::new_message::h7444ed1ff3ae2ca8
1: at /home/jjy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flex-error-0.4.4/src/tracer_impl/eyre.rs:10
1: 7: ibc_relayer::error::Error::other_error::he5a6f8ef35736cf3
1: at /home/jjy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flex-error-0.4.4/src/macros.rs:823
1: 8: ibc_relayer::config::ckb4ibc::ChainConfig::lc_client_type_args::h8b6d458aeb2be027
1: at /home/jjy/workspace/forcerelay/crates/relayer/src/config/ckb4ibc.rs:86
1: 9: ibc_relayer::config::ckb4ibc::ChainConfig::lc_client_id::h6d9759286ef87acb
1: at /home/jjy/workspace/forcerelay/crates/relayer/src/config/ckb4ibc.rs:76
1: 10: ibc_relayer::chain::ckb4ibc::message::client::convert_create_client::h3db7b8aa1b192af2
1: at /home/jjy/workspace/forcerelay/crates/relayer/src/chain/ckb4ibc/message/client.rs:27
1: 11: ibc_relayer::chain::ckb4ibc::message::convert_msg_to_ckb_tx::hee2de672a522b11a
1: at /home/jjy/workspace/forcerelay/crates/relayer/src/chain/ckb4ibc/message.rs:269
1: 12: <ibc_relayer::chain::ckb4ibc::Ckb4IbcChain as ibc_relayer::chain::endpoint::ChainEndpoint>::send_messages_and_wait_commit::haa1a717dfef6a296
1: at /home/jjy/workspace/forcerelay/crates/relayer/src/chain/ckb4ibc.rs:588
1: 13: ibc_relayer::chain::runtime::ChainRuntime<Endpoint>::send_messages_and_wait_commit::h676411edf44553ef
1: at /home/jjy/workspace/forcerelay/crates/relayer/src/chain/runtime.rs:375
1: 14: ibc_relayer::chain::runtime::ChainRuntime<Endpoint>::run::h10ea0316982c7bf6
1: at /home/jjy/workspace/forcerelay/crates/relayer/src/chain/runtime.rs:166
1: 15: ibc_relayer::chain::runtime::ChainRuntime<Endpoint>::init::{{closure}}::h63a4e345d30792f6
1: at /home/jjy/workspace/forcerelay/crates/relayer/src/chain/runtime.rs:106
1: ⋮ 12 frames hidden ⋮
1: Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
1: Run with RUST_BACKTRACE=full to include source snippets.
1: Location:
1: /home/jjy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flex-error-0.4.4/src/tracer_impl/eyre.rs:10
1: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1: ⋮ 5 frames hidden ⋮
1: 6: flex_error::tracer_impl::eyre::<impl flex_error::tracer::ErrorMessageTracer for eyre::Report>::new_message::h7444ed1ff3ae2ca8
1: at /home/jjy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flex-error-0.4.4/src/tracer_impl/eyre.rs:10
1: 7: ibc_relayer::error::Error::client_state_type::h31662db295363b3c
1: at /home/jjy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flex-error-0.4.4/src/macros.rs:823
1: 8: ibc_relayer::chain::ckb4ibc::message::client::convert_create_client::{{closure}}::h513c1ed52d6381cd
1: at /home/jjy/workspace/forcerelay/crates/relayer/src/chain/ckb4ibc/message/client.rs:30
1: 9: core::result::Result<T,E>::map_err::hac9e14afd8b5da5d
1: at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/result.rs:841
1: 10: ibc_relayer::chain::ckb4ibc::message::client::convert_create_client::h3db7b8aa1b192af2
1: at /home/jjy/workspace/forcerelay/crates/relayer/src/chain/ckb4ibc/message/client.rs:27
1: 11: ibc_relayer::chain::ckb4ibc::message::convert_msg_to_ckb_tx::hee2de672a522b11a
1: at /home/jjy/workspace/forcerelay/crates/relayer/src/chain/ckb4ibc/message.rs:269
1: 12: <ibc_relayer::chain::ckb4ibc::Ckb4IbcChain as ibc_relayer::chain::endpoint::ChainEndpoint>::send_messages_and_wait_commit::haa1a717dfef6a296
1: at /home/jjy/workspace/forcerelay/crates/relayer/src/chain/ckb4ibc.rs:588
1: 13: ibc_relayer::chain::runtime::ChainRuntime<Endpoint>::send_messages_and_wait_commit::h676411edf44553ef
1: at /home/jjy/workspace/forcerelay/crates/relayer/src/chain/runtime.rs:375
1: 14: ibc_relayer::chain::runtime::ChainRuntime<Endpoint>::run::h10ea0316982c7bf6
1: at /home/jjy/workspace/forcerelay/crates/relayer/src/chain/runtime.rs:166
1: 15: ibc_relayer::chain::runtime::ChainRuntime<Endpoint>::init::{{closure}}::h63a4e345d30792f6
1: at /home/jjy/workspace/forcerelay/crates/relayer/src/chain/runtime.rs:106
1: ⋮ 12 frames hidden ⋮
1: Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
1: Run with RUST_BACKTRACE=full to include source snippets.
Location:
/home/jjy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flex-error-0.4.4/src/tracer_impl/eyre.rs:30
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⋮ 5 frames hidden ⋮
6: flex_error::tracer_impl::eyre::<impl flex_error::tracer::ErrorTracer<E> for eyre::Report>::new_trace::h21e799a1ebc41f20
at /home/jjy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flex-error-0.4.4/src/tracer_impl/eyre.rs:30
7: <flex_error::source::TraceError<E> as flex_error::source::ErrorSource<Tracer>>::error_details::hc6248f54f9488fce
at /home/jjy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flex-error-0.4.4/src/source.rs:170
8: ibc_test_framework::error::Error::trace_from::h4d3bd6f03367feb8
at /home/jjy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flex-error-0.4.4/src/macros.rs:547
9: ibc_test_framework::error::Error::generic::h0170a3e899ffcfae
at /home/jjy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flex-error-0.4.4/src/macros.rs:863
10: <ibc_test_framework::error::Error as core::convert::From<eyre::Report>>::from::h32546d701d7332c6
at /home/jjy/workspace/forcerelay/tools/test-framework/src/error.rs:113
11: <core::result::Result<T,F> as core::ops::try_trait::FromResidual<core::result::Result<core::convert::Infallible,E>>>::from_residual::hbcfd1561adda31a6
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/result.rs:2002
12: <ibc_test_framework::framework::binary::chain::RunBinaryChainTest<Test> as ibc_test_framework::framework::binary::node::BinaryNodeTest>::run::habc8b5be6474d3cc
at /home/jjy/workspace/forcerelay/tools/test-framework/src/framework/binary/chain.rs:212
13: <ibc_test::framework::binary::node::RunArbitraryBinaryNodeTest<Test> as ibc_test_framework::framework::base::BasicTest>::run::h8d94d53998df6e54
at /home/jjy/workspace/forcerelay/tools/ibc-test/src/framework/binary/node.rs:50
14: <ibc_test_framework::framework::base::RunBasicTest<Test> as ibc_test_framework::framework::base::PrimitiveTest>::run::h84abbc31731cae25
at /home/jjy/workspace/forcerelay/tools/test-framework/src/framework/base.rs:104
15: ibc_test_framework::framework::base::run_test::h845a34e139b42877
at /home/jjy/workspace/forcerelay/tools/test-framework/src/framework/base.rs:19
16: ibc_test_framework::framework::base::run_basic_test::h509a21c127e87c11
at /home/jjy/workspace/forcerelay/tools/test-framework/src/framework/base.rs:31
17: ibc_test::framework::binary::channel::run_arbitrary_binary_node_test::hed01ae3f299886ce
at /home/jjy/workspace/forcerelay/tools/ibc-test/src/framework/binary/channel.rs:27
18: ibc_test::framework::binary::channel::run_arbitrary_binary_channel_test::h66d93c708b56895f
at /home/jjy/workspace/forcerelay/tools/ibc-test/src/framework/binary/channel.rs:45
19: ibc_test::tests::channel::test_channel::hac0be12789a3aebb
at /home/jjy/workspace/forcerelay/tools/ibc-test/src/tests/channel.rs:9
20: ibc_test::tests::channel::test_channel::{{closure}}::h93115daadd7acce6
at /home/jjy/workspace/forcerelay/tools/ibc-test/src/tests/channel.rs:8
21: core::ops::function::FnOnce::call_once::hb4a424a84989278c
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ops/function.rs:250
22: core::ops::function::FnOnce::call_once::hafae920b9cfffa5c
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ops/function.rs:250
23: test::__rust_begin_short_backtrace::h4dab7d6a08f0d362
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/test/src/lib.rs:655
24: test::run_test::{{closure}}::h5777daa7f3526fb4
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/test/src/lib.rs:646
25: core::ops::function::FnOnce::call_once{{vtable.shim}}::hd95ab3f789a2e622
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ops/function.rs:250
26: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9b5ece2761ae65f4
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/alloc/src/boxed.rs:1973
27: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h548d7ffd73c811c0
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/panic/unwind_safe.rs:271
28: std::panicking::try::do_call::h854a5228fe1e95dc
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:485
29: std::panicking::try::hb9b581309100ec61
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:449
30: std::panic::catch_unwind::hfa310295f4e4548a
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panic.rs:140
31: test::run_test_in_process::h611ba57bef59388b
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/test/src/lib.rs:678
⋮ 13 frames hidden ⋮
Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.
test tests::channel::test_channel ... FAILED
failures:
failures:
tests::channel::test_channel
test result: FAILED. 1 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out; finished in 67.37s
error: test failed, to rerun pass `-p ibc-test --lib`
Summary
after successfully complete connection and channel layer between Axon and Ckb, we should enable corresponded CI process to automatically check its correctness in every PR
Proposal
Review and Refactor https://github.com/synapseweb3/forcerelay/tree/dev/tools/integration-test
Acceptance Criteria
References