-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facilitate tests debugging in Antithesis #6164
base: main
Are you sure you want to change the base?
Conversation
2d872c9
to
9d0327f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit confused about internal/antithesis/fallback_sdk.go
here. Antithesis already produce default-no-op
builds of their SDK, which contain all of the functionality, but only when built with the enable_antithesis_sdk
tag. Wouldn't that be what we want?
I'll be honest, i didn't notice this release (it's not documented and wasn't brought up in discussion). But if you are, then I agree using the official client is a great option. I just launched a side-by-side comparison for the test flakes from last week, we should see the official client find the same violated assertions. Assuming the two are equivalent in terms of results for that experiment, there's still a few minor differences and tradeoffs worth considering. This
Of course there are upsides of using the
One more important distinction: The The So the richer API is a double-edged sword. ** Antithesis instrumentor skips test code => Assertions in tests code are not catalogued => Antithesis does not know of these assertion ahead of time => Antithesis cannot know it failed to reach a |
9d0327f
to
bc2bf67
Compare
bc2bf67
to
686e951
Compare
67e0e09
to
3977b5f
Compare
@neilalexander Ready for merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM, thanks!
3977b5f
to
5855303
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
0eac63c
to
b1bf222
Compare
Overview: 1. Introduce dependency on antithesis-sdk-go (default NOOP variant) 2. Introduce assertions utilities suitable for use in tests 3. Instrument frequently used test utilities with the new assertions N.B. unless the `enable_antithesis_sdk` tag is specified at build time, both the SDK and the assertions wrappers are NOOP, and should have no effect. This will also facilitate other Antithesis one off experiments since developers no longer have to manually add the SDK to their branch.
b1bf222
to
8879c01
Compare
N.B. unless the
enable_antithesis_sdk
tag is specified at build time, both the SDK and the assertions wrappers are NOOP, and should have no effect.This will also facilitate other Antithesis one off experiments since developers no longer have to manually add the SDK to their branch.
Signed-off-by: Your Name [email protected]