Skip to content

Conversation

@AbhiPrasad
Copy link
Member

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

@AbhiPrasad AbhiPrasad self-assigned this Sep 19, 2025
@AbhiPrasad AbhiPrasad force-pushed the abhi-otlp-logs-outcome-test branch from f5896a5 to 2f2f9e6 Compare September 19, 2025 15:46
@AbhiPrasad AbhiPrasad marked this pull request as ready for review September 19, 2025 15:46
@AbhiPrasad AbhiPrasad requested a review from a team as a code owner September 19, 2025 15:46
Copy link
Member

@k-fish k-fish left a comment

Choose a reason for hiding this comment

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

Nice 👍

Comment on lines 242 to 247
def test_otlp_logs_outcomes(
mini_sentry,
relay,
relay_with_processing,
outcomes_consumer,
):
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

@Dav1dde Dav1dde Sep 23, 2025

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.

Copy link
Member Author

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.

cursor[bot]

This comment was marked as outdated.

@AbhiPrasad AbhiPrasad added this pull request to the merge queue Sep 24, 2025
Merged via the queue into master with commit 714fd4f Sep 24, 2025
28 checks passed
@AbhiPrasad AbhiPrasad deleted the abhi-otlp-logs-outcome-test branch September 24, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants