Skip to content

Commit

Permalink
Antagonize the Crucible Agent (#1011)
Browse files Browse the repository at this point in the history
The `agent-antagonist` will stress test the Crucible agent by
continuously requesting and deleting regions, randomly taking and
deleting snapshots of those regions.
  • Loading branch information
jmpesp authored Nov 7, 2023
1 parent c3fb3cc commit 6df8a67
Show file tree
Hide file tree
Showing 4 changed files with 491 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ members = [
"smf",
"upstairs",
"workspace-hack",
"agent-antagonist",
]
resolver = "2"

Expand Down Expand Up @@ -113,6 +114,7 @@ progenitor = { git = "https://github.com/oxidecomputer/progenitor", branch = "ma
# local path
crucible = { path = "./upstairs" }
crucible-client-types = { path = "./crucible-client-types" }
crucible-agent-client = { path = "./agent-client" }
crucible-common = { path = "./common" }
crucible-control-client = { path = "./control-client" }
# importantly, don't use features = ["zfs_snapshot"] here, this will cause
Expand Down
21 changes: 21 additions & 0 deletions agent-antagonist/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[package]
name = "agent-antagonist"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
reqwest.workspace = true
crucible-agent-client.workspace = true
tokio.workspace = true
serde.workspace = true
rand.workspace = true
anyhow.workspace = true
clap.workspace = true
slog.workspace = true
slog-term.workspace = true
slog-bunyan.workspace = true
crucible-common.workspace = true
uuid.workspace = true
crucible-workspace-hack.workspace = true
Loading

0 comments on commit 6df8a67

Please sign in to comment.