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

Main bc owl mainnet 3 #1478

Merged
merged 63 commits into from
Oct 30, 2024
Merged

Conversation

fluidvanadium
Copy link
Contributor

@fluidvanadium fluidvanadium commented Oct 28, 2024

(optional) to update the hot wallet in order to minimize execution time:

cargo run -- --data-dir zingolib/src/wallet/disk/testing/examples/mainnet/hhcclaltpcckcsslpcnetblr/latest/

to run a basic hot test:

cargo nextest run --run-ignored=all mainnet_latest_send_to_self_orchard_hot

test only PR

  • mainnet tests
  • separated assert_fee_and_record into helpers
  • numerous micro refactors

now if the todo_name function panics, it will be in a more informative place.
removed chain argument from transaction_request_from_send_inputs and associated functions.
there are expectations to fix here
$cargo nextest run lr_shield_hot --no-capture --run-ignored only
   Compiling zingolib v0.2.0 (/home/cupress/ZINGO/libs/main_bc_owl_mainnet/zingolib)
   Compiling darkside-tests v0.1.0 (/home/cupress/ZINGO/libs/main_bc_owl_mainnet/darkside-tests)
   Compiling zingo-cli v0.2.0 (/home/cupress/ZINGO/libs/main_bc_owl_mainnet/zingocli)
   Compiling libtonode-tests v0.2.0 (/home/cupress/ZINGO/libs/main_bc_owl_mainnet/libtonode-tests)
    Finished `test` profile [optimized] target(s) in 38.13s
------------
 Nextest run ID d27d20f6-3a6d-4c9e-bd22-f403376c08aa with nextest profile: default
    Starting 1 test across 18 binaries (344 tests skipped)
       START             zingolib lightclient::send::send_with_proposal::test::mainnet_hhcclaltpcckcsslpcnetblr_shield_hot

running 1 test
**Batch** Current:    2 Total:   13
   **Blocks** Current Height: 2665069
**Batch** Current:    5 Total:   13
   **Blocks** Current Height: 2665369
**Batch** Current:    9 Total:   13
   **Blocks** Current Height: 2665769
**Batch** Current:   12 Total:   13
   **Blocks** Current Height: 2666010
PoolBalances { sapling_balance: Some(0), verified_sapling_balance: Some(0), spendable_sapling_balance: Some(0), unverified_sapling_balance: Some(0), orchard_balance: Some(635000), verified_orchard_balance: Some(635000), unverified_orchard_balance: Some(0), spendable_orchard_balance
: Some(635000), transparent_balance: Some(100000) }
mainnet_hhcclaltpcckcsslpcnetblr has 21 transactions in it
        SLOW [> 60.000s] zingolib lightclient::send::send_with_proposal::test::mainnet_hhcclaltpcckcsslpcnetblr_shield_hot
test lightclient::send::send_with_proposal::test::mainnet_hhcclaltpcckcsslpcnetblr_shield_hot has been running for over 60 seconds
        SLOW [>120.000s] zingolib lightclient::send::send_with_proposal::test::mainnet_hhcclaltpcckcsslpcnetblr_shield_hot
test lightclient::send::send_with_proposal::test::mainnet_hhcclaltpcckcsslpcnetblr_shield_hot ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 213 filtered out; finished in 168.26s

        PASS [ 168.265s] zingolib lightclient::send::send_with_proposal::test::mainnet_hhcclaltpcckcsslpcnetblr_shield_hot
------------
     Summary [ 168.265s] 1 test run: 1 passed (1 slow), 344 skipped
1727809469 || mbompp_fix_shield[ ] cb3c83e

so shielding works on dev in the single-address case

$cargo nextest run pr_shield_hot --no-capture --run-ignored only
    Finished `test` profile [optimized] target(s) in 0.14s
------------
 Nextest run ID 914799ea-9e23-423e-b4d1-a44d97884768 with nextest profile: default
    Starting 1 test across 18 binaries (344 tests skipped)
       START             zingolib lightclient::send::send_with_proposal::test::testnet_cbbhrwiilgbrababsshsmtpr_shield_hot

running 1 test
**Batch** Current:    8 Total:   17
   **Blocks** Current Height: 3000848
**Batch** Current:   16 Total:   17
   **Blocks** Current Height: 3001600
PoolBalances { sapling_balance: Some(0), verified_sapling_balance: Some(0), spendable_sapling_balance: Some(0), unverified_sapling_balance: Some(0), orchard_balance: Some(2022), verified_orchard_balance: Some(2022), unverified_orchard_balance: Some(0
), spendable_orchard_balance: Some(2022), transparent_balance: Some(2212000) }
thread 'lightclient::send::send_with_proposal::test::testnet_cbbhrwiilgbrababsshsmtpr_shield_hot' panicked at zingolib/src/testutils/chain_generics/with_assertions.rs:172:6:
record is ok: Mismatch(Transmitted(BlockHeight(3001601)), Transmitted(BlockHeight(3001601)), Err(FeeUnderflow { input_value: 2212000, explicit_output_value: 5441000 }), 1195000)
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: zingolib::testutils::chain_generics::with_assertions::propose_shield_bump_sync::{{closure}}
   4: zingolib::lightclient::send::send_with_proposal::test::testnet_cbbhrwiilgbrababsshsmtpr_shield_hot::{{closure}}
   5: tokio::runtime::scheduler::current_thread::Context::enter
   6: tokio::runtime::context::scoped::Scoped<T>::set
   7: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
   8: tokio::runtime::context::runtime::enter_runtime
   9: tokio::runtime::runtime::Runtime::block_on
  10: zingolib::lightclient::send::send_with_proposal::test::testnet_cbbhrwiilgbrababsshsmtpr_shield_hot
  11: core::ops::function::FnOnce::call_once
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
test lightclient::send::send_with_proposal::test::testnet_cbbhrwiilgbrababsshsmtpr_shield_hot ... FAILED

failures:

failures:
    lightclient::send::send_with_proposal::test::testnet_cbbhrwiilgbrababsshsmtpr_shield_hot

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 213 filtered out; finished in 9.94s

        FAIL [   9.942s] zingolib lightclient::send::send_with_proposal::test::testnet_cbbhrwiilgbrababsshsmtpr_shield_hot
------------
     Summary [   9.942s] 1 test run: 0 passed, 1 failed, 344 skipped
        FAIL [   9.942s] zingolib lightclient::send::send_with_proposal::test::testnet_cbbhrwiilgbrababsshsmtpr_shield_hot
error: test run failed
1727800954 || main_bc_owl_mainnet_plus_provider[ ] c58987fbb
zancas
zancas previously requested changes Oct 29, 2024
Copy link
Member

@zancas zancas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change from initial letter on each token of the seed phrase to the initial tokens in the seed.. maybe 2 or 3.

Please use the default import syntax that code actions enforce on files.

@fluidvanadium
Copy link
Contributor Author

Please change from initial letter on each token of the seed phrase to the initial tokens in the seed.. maybe 2 or 3.

Please use the default import syntax that code actions enforce on files.

not within the scope of this PR

@zancas
Copy link
Member

zancas commented Oct 30, 2024

Please change from initial letter on each token of the seed phrase to the initial tokens in the seed.. maybe 2 or 3.
Please use the default import syntax that code actions enforce on files.

not within the scope of this PR

Yeah, I am fine with these issues being addressed in another PR. That could be a cleaner flow.

AloeareV
AloeareV previously approved these changes Oct 30, 2024
zingolib/src/testutils/lightclient.rs Show resolved Hide resolved
zingolib/src/testutils/assertions.rs Show resolved Hide resolved
@zancas zancas dismissed their stale review October 30, 2024 21:30

We can address in a separate PR.

@zancas zancas merged commit 705cff2 into zingolabs:dev Oct 30, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants