Skip to content

Commit 6df8a67

Browse files
authoredNov 7, 2023
Antagonize the Crucible Agent (#1011)
The `agent-antagonist` will stress test the Crucible agent by continuously requesting and deleting regions, randomly taking and deleting snapshots of those regions.
1 parent c3fb3cc commit 6df8a67

File tree

4 files changed

+491
-0
lines changed

4 files changed

+491
-0
lines changed
 

‎Cargo.lock

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ members = [
2323
"smf",
2424
"upstairs",
2525
"workspace-hack",
26+
"agent-antagonist",
2627
]
2728
resolver = "2"
2829

@@ -113,6 +114,7 @@ progenitor = { git = "https://github.com/oxidecomputer/progenitor", branch = "ma
113114
# local path
114115
crucible = { path = "./upstairs" }
115116
crucible-client-types = { path = "./crucible-client-types" }
117+
crucible-agent-client = { path = "./agent-client" }
116118
crucible-common = { path = "./common" }
117119
crucible-control-client = { path = "./control-client" }
118120
# importantly, don't use features = ["zfs_snapshot"] here, this will cause

‎agent-antagonist/Cargo.toml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[package]
2+
name = "agent-antagonist"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
8+
[dependencies]
9+
reqwest.workspace = true
10+
crucible-agent-client.workspace = true
11+
tokio.workspace = true
12+
serde.workspace = true
13+
rand.workspace = true
14+
anyhow.workspace = true
15+
clap.workspace = true
16+
slog.workspace = true
17+
slog-term.workspace = true
18+
slog-bunyan.workspace = true
19+
crucible-common.workspace = true
20+
uuid.workspace = true
21+
crucible-workspace-hack.workspace = true

0 commit comments

Comments
 (0)
Please sign in to comment.