Ignore flaky local cluster tests (#5347)
* Add logging to local_cluster tests * Ignore flaky test_leader_failure_4, test_repairman_catchup And crashing banking benchmarks.
This commit is contained in:
parent
84368697af
commit
8d243221f0
|
@ -3402,6 +3402,7 @@ dependencies = [
|
||||||
"clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"solana 0.18.0-pre0",
|
"solana 0.18.0-pre0",
|
||||||
"solana-client 0.18.0-pre0",
|
"solana-client 0.18.0-pre0",
|
||||||
|
"solana-logger 0.18.0-pre0",
|
||||||
"solana-netutil 0.18.0-pre0",
|
"solana-netutil 0.18.0-pre0",
|
||||||
"solana-sdk 0.18.0-pre0",
|
"solana-sdk 0.18.0-pre0",
|
||||||
]
|
]
|
||||||
|
|
|
@ -21,6 +21,7 @@ use std::time::Duration;
|
||||||
#[serial]
|
#[serial]
|
||||||
fn test_ledger_cleanup_service() {
|
fn test_ledger_cleanup_service() {
|
||||||
solana_logger::setup();
|
solana_logger::setup();
|
||||||
|
error!("test_ledger_cleanup_service");
|
||||||
let num_nodes = 3;
|
let num_nodes = 3;
|
||||||
let mut validator_config = ValidatorConfig::default();
|
let mut validator_config = ValidatorConfig::default();
|
||||||
validator_config.max_ledger_slots = Some(100);
|
validator_config.max_ledger_slots = Some(100);
|
||||||
|
@ -59,6 +60,7 @@ fn test_ledger_cleanup_service() {
|
||||||
#[serial]
|
#[serial]
|
||||||
fn test_spend_and_verify_all_nodes_1() {
|
fn test_spend_and_verify_all_nodes_1() {
|
||||||
solana_logger::setup();
|
solana_logger::setup();
|
||||||
|
error!("test_spend_and_verify_all_nodes_1");
|
||||||
let num_nodes = 1;
|
let num_nodes = 1;
|
||||||
let local = LocalCluster::new_with_equal_stakes(num_nodes, 10_000, 100);
|
let local = LocalCluster::new_with_equal_stakes(num_nodes, 10_000, 100);
|
||||||
cluster_tests::spend_and_verify_all_nodes(
|
cluster_tests::spend_and_verify_all_nodes(
|
||||||
|
@ -73,6 +75,7 @@ fn test_spend_and_verify_all_nodes_1() {
|
||||||
#[serial]
|
#[serial]
|
||||||
fn test_spend_and_verify_all_nodes_2() {
|
fn test_spend_and_verify_all_nodes_2() {
|
||||||
solana_logger::setup();
|
solana_logger::setup();
|
||||||
|
error!("test_spend_and_verify_all_nodes_2");
|
||||||
let num_nodes = 2;
|
let num_nodes = 2;
|
||||||
let local = LocalCluster::new_with_equal_stakes(num_nodes, 10_000, 100);
|
let local = LocalCluster::new_with_equal_stakes(num_nodes, 10_000, 100);
|
||||||
cluster_tests::spend_and_verify_all_nodes(
|
cluster_tests::spend_and_verify_all_nodes(
|
||||||
|
@ -87,6 +90,7 @@ fn test_spend_and_verify_all_nodes_2() {
|
||||||
#[serial]
|
#[serial]
|
||||||
fn test_spend_and_verify_all_nodes_3() {
|
fn test_spend_and_verify_all_nodes_3() {
|
||||||
solana_logger::setup();
|
solana_logger::setup();
|
||||||
|
error!("test_spend_and_verify_all_nodes_3");
|
||||||
let num_nodes = 3;
|
let num_nodes = 3;
|
||||||
let local = LocalCluster::new_with_equal_stakes(num_nodes, 10_000, 100);
|
let local = LocalCluster::new_with_equal_stakes(num_nodes, 10_000, 100);
|
||||||
cluster_tests::spend_and_verify_all_nodes(
|
cluster_tests::spend_and_verify_all_nodes(
|
||||||
|
@ -122,6 +126,7 @@ fn test_spend_and_verify_all_nodes_env_num_nodes() {
|
||||||
#[should_panic]
|
#[should_panic]
|
||||||
fn test_fullnode_exit_default_config_should_panic() {
|
fn test_fullnode_exit_default_config_should_panic() {
|
||||||
solana_logger::setup();
|
solana_logger::setup();
|
||||||
|
error!("test_fullnode_exit_default_config_should_panic");
|
||||||
let num_nodes = 2;
|
let num_nodes = 2;
|
||||||
let local = LocalCluster::new_with_equal_stakes(num_nodes, 10_000, 100);
|
let local = LocalCluster::new_with_equal_stakes(num_nodes, 10_000, 100);
|
||||||
cluster_tests::fullnode_exit(&local.entry_point_info, num_nodes);
|
cluster_tests::fullnode_exit(&local.entry_point_info, num_nodes);
|
||||||
|
@ -131,6 +136,7 @@ fn test_fullnode_exit_default_config_should_panic() {
|
||||||
#[serial]
|
#[serial]
|
||||||
fn test_fullnode_exit_2() {
|
fn test_fullnode_exit_2() {
|
||||||
solana_logger::setup();
|
solana_logger::setup();
|
||||||
|
error!("test_fullnode_exit_2");
|
||||||
let num_nodes = 2;
|
let num_nodes = 2;
|
||||||
let mut validator_config = ValidatorConfig::default();
|
let mut validator_config = ValidatorConfig::default();
|
||||||
validator_config.rpc_config.enable_fullnode_exit = true;
|
validator_config.rpc_config.enable_fullnode_exit = true;
|
||||||
|
@ -145,10 +151,13 @@ fn test_fullnode_exit_2() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cluster needs a supermajority to remain, so the minimum size for this test is 4
|
// Cluster needs a supermajority to remain, so the minimum size for this test is 4
|
||||||
|
#[allow(unused_attributes)]
|
||||||
#[test]
|
#[test]
|
||||||
#[serial]
|
#[serial]
|
||||||
|
#[ignore]
|
||||||
fn test_leader_failure_4() {
|
fn test_leader_failure_4() {
|
||||||
solana_logger::setup();
|
solana_logger::setup();
|
||||||
|
error!("test_leader_failure_4");
|
||||||
let num_nodes = 4;
|
let num_nodes = 4;
|
||||||
let mut validator_config = ValidatorConfig::default();
|
let mut validator_config = ValidatorConfig::default();
|
||||||
validator_config.rpc_config.enable_fullnode_exit = true;
|
validator_config.rpc_config.enable_fullnode_exit = true;
|
||||||
|
@ -170,6 +179,7 @@ fn test_leader_failure_4() {
|
||||||
#[serial]
|
#[serial]
|
||||||
fn test_two_unbalanced_stakes() {
|
fn test_two_unbalanced_stakes() {
|
||||||
solana_logger::setup();
|
solana_logger::setup();
|
||||||
|
error!("test_two_unbalanced_stakes");
|
||||||
let mut validator_config = ValidatorConfig::default();
|
let mut validator_config = ValidatorConfig::default();
|
||||||
let num_ticks_per_second = 100;
|
let num_ticks_per_second = 100;
|
||||||
let num_ticks_per_slot = 10;
|
let num_ticks_per_slot = 10;
|
||||||
|
@ -231,6 +241,8 @@ fn test_forwarding() {
|
||||||
#[test]
|
#[test]
|
||||||
#[serial]
|
#[serial]
|
||||||
fn test_restart_node() {
|
fn test_restart_node() {
|
||||||
|
solana_logger::setup();
|
||||||
|
error!("test_restart_node");
|
||||||
let slots_per_epoch = MINIMUM_SLOTS_PER_EPOCH as u64;
|
let slots_per_epoch = MINIMUM_SLOTS_PER_EPOCH as u64;
|
||||||
let ticks_per_slot = 16;
|
let ticks_per_slot = 16;
|
||||||
let mut cluster = LocalCluster::new(&ClusterConfig {
|
let mut cluster = LocalCluster::new(&ClusterConfig {
|
||||||
|
@ -273,14 +285,18 @@ fn test_listener_startup() {
|
||||||
assert_eq!(cluster_nodes.len(), 4);
|
assert_eq!(cluster_nodes.len(), 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(unused_attributes)]
|
||||||
#[test]
|
#[test]
|
||||||
#[serial]
|
#[serial]
|
||||||
|
#[ignore]
|
||||||
fn test_fail_entry_verification_leader() {
|
fn test_fail_entry_verification_leader() {
|
||||||
test_faulty_node(BroadcastStageType::FailEntryVerification);
|
test_faulty_node(BroadcastStageType::FailEntryVerification);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(unused_attributes)]
|
||||||
#[test]
|
#[test]
|
||||||
#[serial]
|
#[serial]
|
||||||
|
#[ignore]
|
||||||
fn test_bad_blob_size_leader() {
|
fn test_bad_blob_size_leader() {
|
||||||
test_faulty_node(BroadcastStageType::BroadcastBadBlobSizes);
|
test_faulty_node(BroadcastStageType::BroadcastBadBlobSizes);
|
||||||
}
|
}
|
||||||
|
@ -344,10 +360,13 @@ fn test_faulty_node(faulty_node_type: BroadcastStageType) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(unused_attributes)]
|
||||||
#[test]
|
#[test]
|
||||||
#[serial]
|
#[serial]
|
||||||
|
#[ignore]
|
||||||
fn test_repairman_catchup() {
|
fn test_repairman_catchup() {
|
||||||
solana_logger::setup();
|
solana_logger::setup();
|
||||||
|
error!("test_repairman_catchup");
|
||||||
run_repairman_catchup(3);
|
run_repairman_catchup(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -151,21 +151,25 @@ fn do_bench_transactions(
|
||||||
}
|
}
|
||||||
|
|
||||||
#[bench]
|
#[bench]
|
||||||
|
#[ignore]
|
||||||
fn bench_bank_sync_process_builtin_transactions(bencher: &mut Bencher) {
|
fn bench_bank_sync_process_builtin_transactions(bencher: &mut Bencher) {
|
||||||
do_bench_transactions(bencher, &sync_bencher, &create_builtin_transactions);
|
do_bench_transactions(bencher, &sync_bencher, &create_builtin_transactions);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[bench]
|
#[bench]
|
||||||
|
#[ignore]
|
||||||
fn bench_bank_sync_process_native_loader_transactions(bencher: &mut Bencher) {
|
fn bench_bank_sync_process_native_loader_transactions(bencher: &mut Bencher) {
|
||||||
do_bench_transactions(bencher, &sync_bencher, &create_native_loader_transactions);
|
do_bench_transactions(bencher, &sync_bencher, &create_native_loader_transactions);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[bench]
|
#[bench]
|
||||||
|
#[ignore]
|
||||||
fn bench_bank_async_process_builtin_transactions(bencher: &mut Bencher) {
|
fn bench_bank_async_process_builtin_transactions(bencher: &mut Bencher) {
|
||||||
do_bench_transactions(bencher, &async_bencher, &create_builtin_transactions);
|
do_bench_transactions(bencher, &async_bencher, &create_builtin_transactions);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[bench]
|
#[bench]
|
||||||
|
#[ignore]
|
||||||
fn bench_bank_async_process_native_loader_transactions(bencher: &mut Bencher) {
|
fn bench_bank_async_process_native_loader_transactions(bencher: &mut Bencher) {
|
||||||
do_bench_transactions(bencher, &async_bencher, &create_native_loader_transactions);
|
do_bench_transactions(bencher, &async_bencher, &create_native_loader_transactions);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue