Skip to content

Conversation

@cvxluo
Copy link
Contributor

@cvxluo cvxluo commented Feb 10, 2026

Fixes flakiness in tests/sentry/event_manager/test_event_manager.py::ReleaseIssueTest::test_same_group.

The test was flaky because new_issues_count is incremented via a buffer, but the test asserted the value directly from the database before the buffer was flushed. This PR adds a call to buffer.backend.process() in assert_release_project_environment to ensure the buffered value is flushed before the assertion.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.


Linear Issue: ID-1342

Open in Cursor Open in Web

…IssueTest

The test was failing intermittently because new_issues_count is incremented
via buffer_incr() in event_manager.py, but the test was reading directly from
the database before the buffer was flushed. This change ensures the buffer is
processed before assertions, resolving the flakiness.

Fixes ID-1342

Co-authored-by: Charlie Luo <cvxluo@gmail.com>
@cursor
Copy link
Contributor

cursor bot commented Feb 10, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@linear
Copy link

linear bot commented Feb 10, 2026

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