Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client rpc tests #187

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from
Open

Client rpc tests #187

wants to merge 11 commits into from

Conversation

idky137
Copy link
Contributor

@idky137 idky137 commented Feb 18, 2025

Updates infrastructure dep, fixes client rpc tests.

@idky137
Copy link
Contributor Author

idky137 commented Feb 18, 2025

local test run:

$ cargo nextest run
   Compiling zaino-state v0.1.1 (/home/idky137/src/zaino/zaino-state)
   Compiling zaino-serve v0.1.1 (/home/idky137/src/zaino/zaino-serve)
   Compiling zainod v0.1.1 (/home/idky137/src/zaino/zainod)
   Compiling zaino-testutils v0.1.1 (/home/idky137/src/zaino/zaino-testutils)
   Compiling integration-tests v0.1.1 (/home/idky137/src/zaino/integration-tests)
    Finished `test` profile [optimized + debuginfo] target(s) in 27.56s
    Starting 119 tests across 9 binaries (22 skipped)
        PASS [   6.359s] integration-tests::client_rpcs client_rpcs::get_address_utxos_lower
        PASS [   6.359s] integration-tests::client_rpcs client_rpcs::get_address_utxos_stream_all
        PASS [   6.360s] integration-tests::client_rpcs client_rpcs::get_address_utxos_all
        PASS [   6.360s] integration-tests::client_rpcs client_rpcs::get_address_utxos_out_of_bounds
        PASS [   6.989s] integration-tests::client_rpcs client_rpcs::get_address_utxos_upper
        PASS [   6.990s] integration-tests::client_rpcs client_rpcs::get_address_utxos_stream_out_of_bounds
        PASS [   6.990s] integration-tests::client_rpcs client_rpcs::get_address_utxos_stream_upper
        PASS [   6.992s] integration-tests::client_rpcs client_rpcs::get_address_utxos_stream_lower
        PASS [   6.999s] integration-tests::client_rpcs client_rpcs::get_block_range_nullifiers
        PASS [   7.002s] integration-tests::client_rpcs client_rpcs::get_block
        PASS [   7.001s] integration-tests::client_rpcs client_rpcs::get_block_range_lower
        PASS [   7.002s] integration-tests::client_rpcs client_rpcs::get_block_nullifiers
        PASS [   5.997s] integration-tests::client_rpcs client_rpcs::get_block_range_reverse
        PASS [   7.000s] integration-tests::client_rpcs client_rpcs::get_block_range_nullifiers_reverse
        PASS [   6.998s] integration-tests::client_rpcs client_rpcs::get_latest_block
        PASS [   6.999s] integration-tests::client_rpcs client_rpcs::get_block_range_upper
        PASS [   6.002s] integration-tests::client_rpcs client_rpcs::get_latest_tree_state
        PASS [   5.000s] integration-tests::client_rpcs client_rpcs::get_lightd_info
        PASS [   5.999s] integration-tests::client_rpcs client_rpcs::get_taddress_balance_stream
        PASS [   6.000s] integration-tests::client_rpcs client_rpcs::get_taddress_balance
        PASS [   6.002s] integration-tests::client_rpcs client_rpcs::get_taddress_txids_all
        PASS [   6.003s] integration-tests::client_rpcs client_rpcs::get_taddress_txids_lower
        PASS [   6.008s] integration-tests::client_rpcs client_rpcs::get_taddress_txids_upper
        PASS [   6.008s] integration-tests::client_rpcs client_rpcs::get_tree_state_by_hash
        PASS [   6.034s] integration-tests::client_rpcs client_rpcs::get_tree_state_out_of_bounds
        PASS [   6.057s] integration-tests::client_rpcs client_rpcs::get_tree_state_by_height
        PASS [  10.041s] integration-tests::wallet_to_validator wallet_basic::zcashd_connect_to_node_get_info
        PASS [  16.964s] integration-tests::wallet_to_validator wallet_basic::zcashd_send_to_orchard
        PASS [  16.981s] integration-tests::wallet_to_validator wallet_basic::zcashd_send_to_sapling
        PASS [  29.009s] integration-tests::wallet_to_validator wallet_basic::zcashd_monitor_unverified_mempool
        PASS [  23.672s] integration-tests::wallet_to_validator wallet_basic::zebrad_connect_to_node_get_info
        SLOW [> 60.000s] integration-tests::wallet_to_validator wallet_basic::zcashd_send_to_all
        SLOW [> 60.000s] integration-tests::wallet_to_validator wallet_basic::zcashd_send_to_transparent
        SLOW [> 60.000s] integration-tests::wallet_to_validator wallet_basic::zcashd_shield
        SLOW [> 60.000s] integration-tests::wallet_to_validator wallet_basic::zebrad_monitor_unverified_mempool
        PASS [  60.600s] integration-tests::wallet_to_validator wallet_basic::zebrad_monitor_unverified_mempool
        SLOW [>120.000s] integration-tests::wallet_to_validator wallet_basic::zcashd_send_to_all
        SLOW [>120.000s] integration-tests::wallet_to_validator wallet_basic::zcashd_send_to_transparent
        SLOW [>120.000s] integration-tests::wallet_to_validator wallet_basic::zcashd_shield
        SLOW [> 60.000s] integration-tests::wallet_to_validator wallet_basic::zebrad_send_to_all
        SLOW [>180.000s] integration-tests::wallet_to_validator wallet_basic::zcashd_send_to_all
        PASS [  80.485s] integration-tests::wallet_to_validator wallet_basic::zebrad_send_to_all
        SLOW [>180.000s] integration-tests::wallet_to_validator wallet_basic::zcashd_send_to_transparent
        SLOW [>180.000s] integration-tests::wallet_to_validator wallet_basic::zcashd_shield
        PASS [  41.320s] integration-tests::wallet_to_validator wallet_basic::zebrad_send_to_orchard
        PASS [ 239.009s] integration-tests::wallet_to_validator wallet_basic::zcashd_send_to_all
        PASS [ 226.007s] integration-tests::wallet_to_validator wallet_basic::zcashd_send_to_transparent
        PASS [ 229.995s] integration-tests::wallet_to_validator wallet_basic::zcashd_shield
        PASS [  33.743s] integration-tests::wallet_to_validator wallet_basic::zebrad_send_to_sapling
        PASS [  14.004s] zaino-state fetch::tests::fetch_service_get_address_balance_zcashd
        PASS [  14.985s] zaino-state fetch::tests::fetch_service_get_address_tx_ids_zcashd
        PASS [  45.248s] integration-tests::wallet_to_validator wallet_basic::zebrad_send_to_transparent
        PASS [  48.968s] integration-tests::wallet_to_validator wallet_basic::zebrad_shield
        PASS [  13.728s] zaino-state fetch::tests::fetch_service_get_address_utxos_zcashd
        PASS [  34.396s] zaino-state fetch::tests::fetch_service_get_address_balance_zebrad
        PASS [   7.990s] zaino-state fetch::tests::fetch_service_get_block_nullifiers_zcashd
        PASS [   5.998s] zaino-state fetch::tests::fetch_service_get_block_object_zcashd
        PASS [  33.487s] zaino-state fetch::tests::fetch_service_get_address_tx_ids_zebrad
        PASS [  23.666s] zaino-state fetch::tests::fetch_service_get_block_nullifiers_zebrad
        PASS [  33.852s] zaino-state fetch::tests::fetch_service_get_address_utxos_zebrad
        PASS [  20.346s] zaino-state fetch::tests::fetch_service_get_block_object_zebrad
        PASS [  21.510s] zaino-state fetch::tests::fetch_service_get_block_range_nullifiers_zcashd
        PASS [   7.010s] zaino-state fetch::tests::fetch_service_get_block_raw_zcashd
        PASS [  24.575s] zaino-state fetch::tests::fetch_service_get_block_range_nullifiers_zebrad
        PASS [  22.166s] zaino-state fetch::tests::fetch_service_get_block_range_zcashd
        PASS [   8.535s] zaino-state fetch::tests::fetch_service_get_block_zcashd
        PASS [  24.570s] zaino-state fetch::tests::fetch_service_get_block_range_zebrad
        PASS [  20.511s] zaino-state fetch::tests::fetch_service_get_block_raw_zebrad
        PASS [  11.000s] zaino-state fetch::tests::fetch_service_get_latest_block_zcashd
        PASS [  23.572s] zaino-state fetch::tests::fetch_service_get_block_zebrad
        PASS [   8.477s] zaino-state fetch::tests::fetch_service_get_latest_tree_state_zcashd
        PASS [   8.415s] zaino-state fetch::tests::fetch_service_get_lightd_info_zcashd
        PASS [  24.622s] zaino-state fetch::tests::fetch_service_get_latest_block_zebrad
        PASS [  23.562s] zaino-state fetch::tests::fetch_service_get_latest_tree_state_zebrad
        PASS [  23.616s] zaino-state fetch::tests::fetch_service_get_lightd_info_zebrad
        PASS [  21.019s] zaino-state fetch::tests::fetch_service_get_mempool_stream_zcashd
        PASS [  18.443s] zaino-state fetch::tests::fetch_service_get_mempool_tx_zcashd
        PASS [  19.002s] zaino-state fetch::tests::fetch_service_get_raw_mempool_zcashd
        PASS [  44.252s] zaino-state fetch::tests::fetch_service_get_mempool_stream_zebrad
        PASS [  14.983s] zaino-state fetch::tests::fetch_service_get_raw_transaction_zcashd
        PASS [  43.552s] zaino-state fetch::tests::fetch_service_get_mempool_tx_zebrad
        PASS [   9.003s] zaino-state fetch::tests::fetch_service_get_subtree_roots_zcashd
        PASS [  43.140s] zaino-state fetch::tests::fetch_service_get_raw_mempool_zebrad
        PASS [  15.006s] zaino-state fetch::tests::fetch_service_get_taddress_balance_zcashd
        PASS [  34.105s] zaino-state fetch::tests::fetch_service_get_raw_transaction_zebrad
        PASS [  23.598s] zaino-state fetch::tests::fetch_service_get_subtree_roots_zebrad
        PASS [  14.009s] zaino-state fetch::tests::fetch_service_get_taddress_txids_zcashd
        PASS [  13.247s] zaino-state fetch::tests::fetch_service_get_taddress_utxos_stream_zcashd
        PASS [  33.367s] zaino-state fetch::tests::fetch_service_get_taddress_balance_zebrad
        PASS [  14.993s] zaino-state fetch::tests::fetch_service_get_taddress_utxos_zcashd
        PASS [  34.030s] zaino-state fetch::tests::fetch_service_get_taddress_txids_zebrad
        PASS [  12.987s] zaino-state fetch::tests::fetch_service_get_transaction_mempool_zcashd
        PASS [  33.296s] zaino-state fetch::tests::fetch_service_get_taddress_utxos_stream_zebrad
        PASS [  14.012s] zaino-state fetch::tests::fetch_service_get_transaction_mined_zcashd
        PASS [  33.816s] zaino-state fetch::tests::fetch_service_get_taddress_utxos_zebrad
        PASS [   9.005s] zaino-state fetch::tests::fetch_service_get_tree_state_zcashd
        PASS [  33.650s] zaino-state fetch::tests::fetch_service_get_transaction_mempool_zebrad
        PASS [  33.992s] zaino-state fetch::tests::fetch_service_get_transaction_mined_zebrad
        PASS [  13.995s] zaino-state fetch::tests::fetch_service_z_get_subtrees_by_index_zcashd
        PASS [  23.667s] zaino-state fetch::tests::fetch_service_get_tree_state_zebrad
        PASS [   5.004s] zaino-state fetch::tests::launch_fetch_service_zcashd_regtest_no_cache
        PASS [   4.001s] zaino-state fetch::tests::launch_fetch_service_zcashd_regtest_with_cache
        PASS [  13.699s] zaino-state fetch::tests::fetch_service_z_get_treestate_zcashd
        PASS [  33.004s] zaino-state fetch::tests::fetch_service_z_get_subtrees_by_index_zebrad
        PASS [   4.421s] zaino-state local_cache::tests::zcashd_local_cache_launch_no_db
        PASS [   5.998s] zaino-state local_cache::tests::zcashd_local_cache_launch_with_db
        PASS [  20.407s] zaino-state fetch::tests::launch_fetch_service_zebrad_regtest_no_cache
        PASS [  20.427s] zaino-state fetch::tests::launch_fetch_service_zebrad_regtest_with_cache
        PASS [  34.150s] zaino-state fetch::tests::fetch_service_z_get_treestate_zebrad
        PASS [  20.314s] zaino-state local_cache::tests::zebrad_local_cache_launch_no_db
        PASS [  20.338s] zaino-state local_cache::tests::zebrad_local_cache_launch_with_db
        PASS [  32.842s] zaino-state local_cache::tests::zebrad_local_cache_process_100_blocks
        SLOW [> 60.000s] zaino-state local_cache::tests::zcashd_local_cache_process_100_blocks
        SLOW [> 60.000s] zaino-state local_cache::tests::zcashd_local_cache_process_200_blocks
        PASS [   8.432s] zaino-testutils tests::launch_testmanager_zcashd
        PASS [  45.922s] zaino-state local_cache::tests::zebrad_local_cache_process_200_blocks
        PASS [   9.995s] zaino-testutils tests::launch_testmanager_zcashd_generate_blocks
        PASS [   6.590s] zaino-testutils tests::launch_testmanager_zcashd_with_chain
        PASS [  11.985s] zaino-testutils tests::launch_testmanager_zcashd_zaino
        PASS [  11.996s] zaino-testutils tests::launch_testmanager_zcashd_zaino_clients
        PASS [  12.023s] zaino-testutils tests::launch_testmanager_zcashd_zaino_clients_receive_mining_reward
        PASS [  21.000s] zaino-testutils tests::launch_testmanager_zcashd_zaino_clients_receive_mining_reward_and_send
        PASS [  20.285s] zaino-testutils tests::launch_testmanager_zebrad
        SLOW [>120.000s] zaino-state local_cache::tests::zcashd_local_cache_process_100_blocks
        SLOW [>120.000s] zaino-state local_cache::tests::zcashd_local_cache_process_200_blocks
        PASS [  20.295s] zaino-testutils tests::launch_testmanager_zebrad_generate_blocks
        PASS [  20.359s] zaino-testutils tests::launch_testmanager_zebrad_with_chain
        PASS [  23.692s] zaino-testutils tests::launch_testmanager_zebrad_zaino
        PASS [  23.446s] zaino-testutils tests::launch_testmanager_zebrad_zaino_clients
        PASS [ 173.007s] zaino-state local_cache::tests::zcashd_local_cache_process_100_blocks
        PASS [  23.560s] zaino-testutils tests::launch_testmanager_zebrad_zaino_clients_receive_mining_reward
        SLOW [>180.000s] zaino-state local_cache::tests::zcashd_local_cache_process_200_blocks
        PASS [  35.163s] zaino-testutils tests::launch_testmanager_zebrad_zaino_clients_receive_mining_reward_and_send
        PASS [  31.164s] zaino-testutils tests::launch_testmanager_zebrad_zaino_testnet
        SLOW [>240.000s] zaino-state local_cache::tests::zcashd_local_cache_process_200_blocks
        PASS [ 290.609s] zaino-state local_cache::tests::zcashd_local_cache_process_200_blocks
------------
     Summary [ 906.375s] 119 tests run: 119 passed (7 slow), 22 skipped
     ```

@ala-mode
Copy link

Reporting in from infrastructure here, reviewing 72, using this branch as the source for zaino binary.

@ala-mode
Copy link

getting a compilation error:

 `error[E0658]: use of unstable library feature 'ip'
   --> zainod/src/config.rs:262:21
    |
262 |             if ipv6.is_unique_local() || ip.is_loopback() {
    |                     ^^^^^^^^^^^^^^^
    |
    = note: see issue #27709 <https://github.com/rust-lang/rust/issues/27709> for more information

@ala-mode
Copy link

getting a compilation error:

I updated my local rust from 1.83.0 to 1.84.1 and this error disappeared!

@idky137 idky137 marked this pull request as ready for review February 19, 2025 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants