Skip to content

Commit b943695

Browse files
committed
chore(antithesis): Alter dogstatsd generation to is_malformed regime
Our previous approach to generating dogstatsd load for use in the Antithesis rig was very Datadog/lading inspired: generate something that is correct-by-construction and then bias the result to be 'interesting'. This works well but the biasing systematically avoids conditions that are not-malformed -- that is, accepted by the SUT -- but are demonstrative of goofy behavior. This commit changes the generator to be a hybrid of that approach with a state search approach. We define a predicate `is_malformed` that confirms whether or not a payload will be accepted by the SUT and then payloads which are not malformed, however strange, are transmitted.
1 parent ae4f370 commit b943695

12 files changed

Lines changed: 1311 additions & 610 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/antithesis/harness/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ ryu = { workspace = true }
2424
serde = { workspace = true }
2525
serde_json = { workspace = true }
2626
serde_yaml = { workspace = true }
27+
simdutf8 = { workspace = true }
2728

2829
[dev-dependencies]
2930
proptest = { workspace = true }

0 commit comments

Comments
 (0)