Skip to content

Commit

Permalink
Fix windsock cloud benches (#1772)
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai authored Oct 14, 2024
1 parent 6fbfaa1 commit 5a41409
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 68 deletions.
80 changes: 19 additions & 61 deletions Cargo.lock

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

5 changes: 4 additions & 1 deletion ec2-cargo/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use aws_throwaway::{Aws, CleanupResources, Ec2Instance, Ec2InstanceDefinition, InstanceType};
use aws_throwaway::{
Aws, CleanupResources, Ec2Instance, Ec2InstanceDefinition, IngressRestriction, InstanceType,
};
use cargo_metadata::{Metadata, MetadataCommand};
use clap::Parser;
use shellfish::{async_fn, handler::DefaultAsyncHandler, rustyline::DefaultEditor, Command, Shell};
Expand Down Expand Up @@ -47,6 +49,7 @@ async fn main() {

let aws = Aws::builder(CleanupResources::AllResources)
.use_az(Some("us-east-1b".into()))
.use_ingress_restriction(IngressRestriction::LocalPublicAddress)
.build()
.await;
let instance_type = InstanceType::from(args.instance_type.as_str());
Expand Down
4 changes: 0 additions & 4 deletions shotover-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ scylla.workspace = true
anyhow.workspace = true
tokio.workspace = true
tracing.workspace = true
clap.workspace = true
rstest = "0.22.0"
rstest_reuse = "0.7.0"
cassandra-cpp = { version = "3.0.0", default-features = false }
test-helpers = { path = "../test-helpers" }
redis.workspace = true
chacha20poly1305.workspace = true
Expand All @@ -30,11 +28,9 @@ uuid.workspace = true
itertools.workspace = true
cdrs-tokio.workspace = true
redis-protocol.workspace = true
tokio-util.workspace = true
bincode.workspace = true
futures.workspace = true
hex.workspace = true
hex-literal.workspace = true
cassandra-protocol.workspace = true
bytes.workspace = true
rand.workspace = true
Expand Down
3 changes: 2 additions & 1 deletion shotover-proxy/benches/windsock/cloud/aws.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use anyhow::Result;
use aws_throwaway::{Aws, Ec2Instance, InstanceType};
use aws_throwaway::{Aws, Ec2Instance, IngressRestriction, InstanceType};
use aws_throwaway::{CleanupResources, Ec2InstanceDefinition};
use regex::Regex;
use serde::{Deserialize, Serialize};
Expand All @@ -25,6 +25,7 @@ impl AwsInstances {
AwsInstances {
aws: Aws::builder(CleanupResources::WithAppTag(AWS_THROWAWAY_TAG.to_owned()))
.use_az(Some("us-east-1b".into()))
.use_ingress_restriction(IngressRestriction::LocalPublicAddress)
// shotover metrics port
.expose_ports_to_internet(vec![9001])
.build()
Expand Down
1 change: 0 additions & 1 deletion windsock-cloud-docker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ license = "Apache-2.0"
[dependencies]
shell-quote.workspace = true
tokio.workspace = true
subprocess.workspace = true

0 comments on commit 5a41409

Please sign in to comment.