Skip to content

Commit

Permalink
revert changes to main.rs to land
Browse files Browse the repository at this point in the history
  • Loading branch information
bchocho committed Sep 30, 2022
1 parent 22e4c50 commit 2af5876
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions testsuite/forge-cli/src/main.rs
Expand Up @@ -183,7 +183,7 @@ fn main() -> Result<()> {
logger.build();

let args = Args::from_args();
let duration = Duration::from_secs(2 * 60 * 60 as u64);
let duration = Duration::from_secs(args.duration_secs as u64);
let suite_name: &str = args.suite.as_ref();

let runtime = Runtime::new()?;
Expand Down Expand Up @@ -381,7 +381,7 @@ fn get_changelog(prev_commit: Option<&String>, upstream_commit: &str) -> String

fn get_test_suite(suite_name: &str, duration: Duration) -> Result<ForgeConfig<'static>> {
match suite_name {
"land_blocking" => single_test_suite("load_vs_perf_benchmark"),
"land_blocking" => Ok(land_blocking_test_suite(duration)),
"local_test_suite" => Ok(local_test_suite()),
"pre_release" => Ok(pre_release_suite()),
"run_forever" => Ok(run_forever()),
Expand Down Expand Up @@ -574,27 +574,27 @@ fn single_test_suite(test_name: &str) -> Result<ForgeConfig<'static>> {
}),
)),
// not scheduled on continuous
"load_vs_perf_benchmark" => {
config
.with_initial_validator_count(NonZeroUsize::new(20).unwrap())
.with_initial_fullnode_count(10)
.with_network_tests(vec![&LoadVsPerfBenchmark {
test: &PerformanceBenchmarkWithFN,
tps: &[7500, 8000, 9000, 10000, 12000, 15000],
}])
.with_genesis_helm_config_fn(Arc::new(|helm_values| {
// no epoch change.
helm_values["chain"]["epoch_duration_secs"] = (24 * 3600).into();
}))
.with_success_criteria(SuccessCriteria::new(
0,
10000,
true,
Some(Duration::from_secs(60)),
None,
None,
))
}
"load_vs_perf_benchmark" => config
.with_initial_validator_count(NonZeroUsize::new(20).unwrap())
.with_initial_fullnode_count(10)
.with_network_tests(vec![&LoadVsPerfBenchmark {
test: &PerformanceBenchmarkWithFN,
tps: &[
200, 1000, 3000, 5000, 7000, 7500, 8000, 9000, 10000, 12000, 15000,
],
}])
.with_genesis_helm_config_fn(Arc::new(|helm_values| {
// no epoch change.
helm_values["chain"]["epoch_duration_secs"] = (24 * 3600).into();
}))
.with_success_criteria(SuccessCriteria::new(
0,
10000,
true,
Some(Duration::from_secs(60)),
None,
None,
)),
// maximizing number of rounds and epochs within a given time, to stress test consensus
// so using small constant traffic, small blocks and fast rounds, and short epochs.
// reusing changing_working_quorum_test just for invariants/asserts, but with max_down_nodes = 0.
Expand Down

0 comments on commit 2af5876

Please sign in to comment.