Skip to content

Conversation

@cvxluo
Copy link
Contributor

@cvxluo cvxluo commented Feb 10, 2026

Fixes flakiness in test_other_exception and related tests (ID-1347) by ensuring proper test isolation. The SEER_ERROR_COUNT_KEY cache is now cleared in setUp methods for TestGetEventSeverity and TestEventManagerSeverity to prevent state leakage between test runs.

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-1347

Open in Cursor Open in Web

The test_other_exception test was flaky because the SEER_ERROR_COUNT_KEY
cache was not being cleared between tests. This caused tests to interfere
with each other when run in different orders or in parallel.

Added setUp() methods to both TestGetEventSeverity and
TestEventManagerSeverity classes to clear the cache before each test,
ensuring proper test isolation.

Fixes ID-1347

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