Skip to content
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

Allow alternative backends to provide observability metadata #4083

Merged
merged 3 commits into from
Aug 11, 2024

Conversation

Zac-HD
Copy link
Member

@Zac-HD Zac-HD commented Aug 11, 2024

@pschanely you can put whatever (json-encodable) stuff in here that you might want 😁

@hgoldstein95 fyi, you might be interested in pschanely/hypothesis-crosshair#22 too.

Copy link
Member

@tybug tybug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! This is also immediately useful for debugging my local atheris provider. 1

Footnotes

  1. (though what I really want there is per-test-function observability, not per-test-case, since I'm running potentially millions of inputs and only want to report aggregate statistics. I realize this is outside standard hypothesis scope!)

@Zac-HD
Copy link
Member Author

Zac-HD commented Aug 11, 2024

This is also immediately useful for debugging my local atheris provider. ... though what I really want there is per-test-function observability, not per-test-case, since I'm running potentially millions of inputs and only want to report aggregate statistics.

Oh, we can totally do that - we already have per-test-function output for statistics! I'll hook this up so that you can send as many "information messages" as you wish after each test case and/or when we're finished with the test function.

(@hgoldstein95 you'll probably just want Tyche to ignore non-string information messages?)

Copy link
Member

@tybug tybug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect ❤️

@Zac-HD Zac-HD enabled auto-merge August 11, 2024 19:10
@Zac-HD Zac-HD merged commit 3990fbc into HypothesisWorks:master Aug 11, 2024
58 checks passed
@Zac-HD Zac-HD deleted the observe-backends branch August 11, 2024 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants