Skip to content

test(ci): simplify negative Relay assertions without outcome consumer - #129071

Closed
joshuarli wants to merge 2 commits into
getsentry:masterfrom
joshuarli:ci/relay-negative-tests-lean
Closed

joshuarli wants to merge 2 commits into
getsentry:masterfrom
joshuarli:ci/relay-negative-tests-lean

Conversation

@joshuarli

Copy link
Copy Markdown
Member

No description provided.

@joshuarli joshuarli added the Trigger: Override Selective Testing Run the full test suite; necessary in cases where selected tests are flaky due to reshuffling label Oct 28, 2026
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 28, 2026
@joshuarli

Copy link
Copy Markdown
Member Author

replaced by #131170

@joshuarli joshuarli closed this Nov 18, 2026
joshuarli added a commit that referenced this pull request Nov 18, 2026
…on (#131170)

Supersedes #129071. Builds on the outcome-capture idea
from #128956, rebased onto current master.

`post_and_try_retrieve_event` swallowed the `AssertionError` from the
success path. That made every expected Relay rejection wait out the 16s
ingest timeout, and let unrelated failures pass as rejections.

`post_and_assert_rejected` replaces it. It reads the per-worker
`outcomes` topic from the high watermarks captured before the POST, then
waits for the outcome Relay emits for the project's org/project/key. It
asserts that outcome's type and reason. Relay aggregates outcomes and
drops event IDs, so the match uses org/project/key. That's unambiguous
because project IDs are snowflakes and each case posts once.

<!-- junior-request-attribution:start -->
via @joshuarli.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A0647f040aa198c6c1f091bf70f7089e1 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A0647f040aa198c6c1f091bf70f7089e1)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A0647f040aa198c6c1f091bf70f7089e1/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Joshua Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components Trigger: Override Selective Testing Run the full test suite; necessary in cases where selected tests are flaky due to reshuffling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant