Skip to content

Commit

Permalink
[cluster-test] Remove log prune
Browse files Browse the repository at this point in the history
Log prune was previously used to cleanup cloudwatch logs
Since we don't longer use cloud watch this is not needed
  • Loading branch information
Andrey Chursin committed Nov 6, 2019
1 parent ecbf00b commit 0d7ffa8
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 124 deletions.
15 changes: 0 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion testsuite/cluster-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ rusoto_core = {version = "0.41.0", features=["rustls"], default_features = false
rusoto_ec2 = {version = "0.41.0", features=["rustls"], default_features = false}
rusoto_ecr = {version = "0.41.0", features=["rustls"], default_features = false}
rusoto_ecs = {version = "0.41.0", features=["rustls"], default_features = false}
rusoto_logs = {version = "0.41.0", features=["rustls"], default_features = false}
serde_json = "1.0"
termion = "1.5.3"
serde = { version = "1.0.89", features = ["derive"] }
Expand Down
1 change: 0 additions & 1 deletion testsuite/cluster-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ pub mod experiments;
pub mod github;
pub mod health;
pub mod instance;
pub mod log_prune;
pub mod prometheus;
pub mod slack;
pub mod suite;
Expand Down
93 changes: 0 additions & 93 deletions testsuite/cluster-test/src/log_prune.rs

This file was deleted.

16 changes: 2 additions & 14 deletions testsuite/cluster-test/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use cluster_test::{
effects::{Action, Effect, Reboot, StopContainer},
experiments::{Experiment, RebootRandomValidators},
health::{DebugPortLogThread, HealthCheckRunner, LogTail},
log_prune::LogPruner,
slack::SlackClient,
suite::ExperimentSuite,
tx_emitter::TxEmitter,
Expand Down Expand Up @@ -48,7 +47,7 @@ const HEALTH_POLL_INTERVAL: Duration = Duration::from_secs(5);
struct Args {
#[structopt(short = "w", long, conflicts_with = "swarm")]
workplace: Option<String>,
#[structopt(short = "p", long, use_delimiter = true, conflicts_with = "prune-logs")]
#[structopt(short = "p", long, use_delimiter = true)]
peers: Vec<String>,

#[structopt(
Expand All @@ -68,8 +67,6 @@ struct Args {
#[structopt(long, group = "action")]
health_check: bool,
#[structopt(long, group = "action")]
prune_logs: bool,
#[structopt(long, group = "action")]
reboot: bool,
#[structopt(long, group = "action")]
restart: bool,
Expand Down Expand Up @@ -156,11 +153,7 @@ pub fn main() {
panic!("Can only use --emit-tx option in --swarm mode");
}

if args.prune_logs {
let util = ClusterUtil::setup(&args);
util.prune_logs();
return;
} else if args.emit_tx {
if args.emit_tx {
let thread_params = EmitThreadParams {
wait_millis: args.wait_millis,
wait_committed: !args.burst,
Expand Down Expand Up @@ -343,11 +336,6 @@ impl ClusterUtil {
}
}

pub fn prune_logs(&self) {
let log_prune = LogPruner::new(self.aws.clone());
log_prune.prune_logs();
}

pub fn emit_tx(self, accounts_per_client: usize, thread_params: EmitThreadParams) {
let mut emitter = TxEmitter::new(&self.cluster);
emitter
Expand Down

0 comments on commit 0d7ffa8

Please sign in to comment.