-
Notifications
You must be signed in to change notification settings - Fork 104
test(ourlogs): Add integration test for otlp logs outcomes #5169
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
Conversation
f5896a5 to
2f2f9e6
Compare
k-fish
left a comment
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.
Nice 👍
tests/integration/test_otlp_logs.py
Outdated
| def test_otlp_logs_outcomes( | ||
| mini_sentry, | ||
| relay, | ||
| relay_with_processing, | ||
| outcomes_consumer, | ||
| ): |
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.
Why a new test instead of adding outcome assertions to the existing tests? That would be significantly faster.
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.
That feels like a code smell to me, shouldn't tests be designed to have minimal assertions? I also feel like this is easier to debug (did outcomes fail vs. did we change serialization).
Can we not parallelize these tests if they are getting slow? I assume startup time is not that bad.
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.
These are integration tests not unit tests, I'd want to avoid running the same test multiple times just asserting different parts of the outcome.
If you're asserting a specific kind of outcome, having a separate test makes sense, but if you're just asserting that there are correct outcomes for the input, I don't see why we can't do this in an already existing test which is supposed to test that e2e in Relay the processing works.
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.
Okay yeah that feels reasonable to me, I pushed up changes to amend existing tests for this.
This is a sanity check integration test to make sure that we are recording outcomes properly for otlp logs.
The intial set of integration tests were added in #5130