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

flaky test: peer_loop::peer_loop_tests::find_canonical_chain_when_multiple_blocks_at_same_height_test #241

Open
dan-da opened this issue Nov 14, 2024 · 0 comments

Comments

@dan-da
Copy link
Collaborator

dan-da commented Nov 14, 2024

running the test locally (on beefy hardware) on master at present tip 556c358.

run 1:

2024-11-14T21:14:38.908180Z  INFO find_canonical_chain_when_multiple_blocks_at_same_height_test: neptune_core::models::blockchain::transaction::validity::proof_collection: done proving proof collection                                                                    
thread 'peer_loop::peer_loop_tests::find_canonical_chain_when_multiple_blocks_at_same_height_test' panicked at /home/danda/.cargo/git/checkouts/tasm-lib-b549f10621331e49/110926f/tasm-lib/src/verifier/stark_verify.rs:129:65:                                              
called `Result::unwrap()` on an `Err` value: DecodingError(SequenceTooShortForField("items"))                                                                                                                                                                                
stack backtrace:                                                                                                                                                                                                                                                             
   0: rust_begin_unwind                                                                                                                                                                                                                                                      
             at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:665:5                                                                                                                                                                           
   1: core::panicking::panic_fmt                                                                                                                                                                                                                                             
             at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/panicking.rs:74:14                                                                                                                                                                          
   2: core::result::unwrap_failed                                                                                                                                                                                                                                            
             at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/result.rs:1679:5                                                                                                                                                                            
   3: core::result::Result<T,E>::unwrap                                                                                               
             at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/result.rs:1102:23                                                                                                                                                                           
   4: tasm_lib::verifier::stark_verify::StarkVerify::extract_nondeterministic_digests                                                                                                                                                                                        
             at /home/danda/.cargo/git/checkouts/tasm-lib-b549f10621331e49/110926f/tasm-lib/src/verifier/stark_verify.rs:129:36                                                                                                                                              
   5: tasm_lib::verifier::stark_verify::StarkVerify::update_nondeterminism                                                                                                                                                                                                   
             at /home/danda/.cargo/git/checkouts/tasm-lib-b549f10621331e49/110926f/tasm-lib/src/verifier/stark_verify.rs:121:26                                                                                                                                              
   6: <neptune_core::models::blockchain::transaction::validity::single_proof::SingleProofWitness as neptune_core::models::proof_abstractions::SecretWitness>::nondeterminism                                                                                                 
             at ./src/models/blockchain/transaction/validity/single_proof.rs:202:17                                                                                                                                                                                          
   7: neptune_core::models::blockchain::transaction::validity::single_proof::SingleProof::produce::{{closure}}                                                                                                                                                               
             at ./src/models/blockchain/transaction/validity/single_proof.rs:291:30                                                                                                                                                                                          
   8: neptune_core::models::state::GlobalState::create_transaction_from_data_worker::{{closure}}                                                                                                                                                                             
             at ./src/models/state/mod.rs:948:22                                                                                                                                                                                                                             
   9: neptune_core::models::state::GlobalState::create_raw_transaction::{{closure}}                                                                                                                                                                                          
             at ./src/models/state/mod.rs:876:10                                                                                                                                                                                                                             
  10: neptune_core::tests::shared::valid_successor_for_tests::{{closure}}                                                                                                                                                                                                    
             at ./src/tests/shared.rs:857:6                                                                                           
  11: neptune_core::tests::shared::valid_sequence_of_blocks_for_tests::{{closure}}                                                                                                                                                                                           
             at ./src/tests/shared.rs:898:10                                                                                          
  12: neptune_core::peer_loop::peer_loop_tests::find_canonical_chain_when_multiple_blocks_at_same_height_test::{{closure}}                                                                                                                                                   
             at ./src/peer_loop.rs:2016:10                                                                                            
  13: <core::pin::Pin<P> as core::future::future::Future>::poll                                                                                                                                                                                                              
             at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/future/future.rs:123:9                                                                                                                                                                      
  14: <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll                                                                                                                                                                                           
             at /home/danda/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-0.1.40/src/instrument.rs:321:9                                                                                                                                                      
  15: <core::pin::Pin<P> as core::future::future::Future>::poll                                                                       
             at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/future/future.rs:123:9                                                                                                                                                                      
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}                                                                                                                                                                  
             at /home/danda/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/scheduler/current_thread/mod.rs:729:57                                                                                                                             
  17: tokio::runtime::coop::with_budget                                                                                               
             at /home/danda/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/coop.rs:107:5                                                                                                                                                      
  18: tokio::runtime::coop::budget                                 
             at /home/danda/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/coop.rs:73:5                                                                                                                                                       
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}                                                                                                                                                                               
             at /home/danda/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/scheduler/current_thread/mod.rs:729:25                                                                                                                             
  20: tokio::runtime::scheduler::current_thread::Context::enter                                                                       
             at /home/danda/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/scheduler/current_thread/mod.rs:428:19                                                                                                                             
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}                                                                                                                                                                                            
             at /home/danda/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/scheduler/current_thread/mod.rs:728:36                                                                                                                             
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}                                                                                                                                                                                               
             at /home/danda/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/scheduler/current_thread/mod.rs:807:68                                                                                                                             
  23: tokio::runtime::context::scoped::Scoped<T>::set                                                                                 
             at /home/danda/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/context/scoped.rs:40:9                                                                                                                                             
  24: tokio::runtime::context::set_scheduler::{{closure}}                                                                             
             at /home/danda/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/context.rs:180:26                                                                                                                                                  
  25: std::thread::local::LocalKey<T>::try_with                                                                                       
             at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/thread/local.rs:283:12                                                                                                                                                                       
  26: std::thread::local::LocalKey<T>::with                                                                                           
             at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/thread/local.rs:260:9   
<truncated>

run 2:

running 1 test                                                                                                                                                                                                                                                               
test peer_loop::peer_loop_tests::find_canonical_chain_when_multiple_blocks_at_same_height_test ... ok                                                                                                                                                                        
                                                                                                                                                                                                                                                                             
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 444 filtered out; finished in 14.61s                                                                                                                                                                             
                                                                                                                                      
     Running unittests src/bin/neptune-cli.rs (target/debug/deps/neptune_cli-b37785583ab0d8fa)
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

No branches or pull requests

1 participant