Flaky test: tests/sentry/hybridcloud/rpc/test_caching.py::test_caching_many
- Dominant language
- Python
- Stars
- 44.8k
- Forks
- 4.9k
- Avg merge
- 21h 10m
- Merged PRs (30d)
- 635
Description
Failing test: `tests/sentry/hybridcloud/rpc/test_caching.py::test_caching_many`
Sentry sha: 3ae13ebdfdfbfd0d73e8a04d635b9ae4d95251de
Run: https://github.com/getsentry/sentry/actions/runs/22294946148
```
[1m[31mtests/sentry/hybridcloud/rpc/test_caching.py[0m:184: in test_caching_many
assert wrapped == direct
[1m[31mE AssertionError: assert RpcUser(id=36...enticators=[]) == RpcUser(id=36...enticators=[])[0m
[1m[31mE [0m
[1m[31mE Full diff:[0m
[1m[31mE - RpcUser(id=362, pk=362, name='', email='a0ba79c62c09456bba7c049650e8b5e5@example.com', username='a0ba79c62c09456bba7c049650e8b5e5@example.com', actor_id=None, display_name='a0ba79c62c09456bba7c049650e8b5e5@example.com', label='a0ba79c62c09456bba7c049650e8b5e5@example.com', is_superuser=False, is_authenticated=True, is_anonymous=False, is_active=True, is_staff=False, is_unclaimed=False, last_active=datetime.datetime(2026, 2, 23, 6, 18, 5, 70090, tzinfo=datetime.timezone.utc), is_sentry_app=False, password_usable=True, is_password_expired=False, roles=frozenset(), permissions=frozenset(), avatar=None, emails=frozenset({'a0ba79c62c09456bba7c049650e8b5e5@example.com'}), useremails=[RpcUserEmail(id=364, email='a0ba79c62c09456bba7c049650e8b5e5@example.com', is_verified=True)], authenticators=[])[0m
[1m[31mE + RpcUser(id=360, pk=360, name='', email='a6920aa8bb1f48449650403ec504293c@example.com', username='a6920aa8bb1f48449650403ec504293c@example.com', actor_id=None, display_name='a6920aa8bb1f48449650403ec504293c@example.com', label='a6920aa8bb1f48449650403ec504293c@example.com', is_superuser=False, is_authenticated=True, is_anonymous=False, is_active=True, is_staff=False, is_unclaimed=False, last_active=datetime.datetime(2026, 2, 23, 6, 18, 5, 30566, tzinfo=datetime.timezone.utc), is_sentry_app=False, password_usable=True, is_password_expired=False, roles=frozenset(), permissions=frozenset(), avatar=None, emails=frozenset({'a6920aa8bb1f48449650403ec504293c@example.com'}), useremails=[RpcUserEmail(id=362, email='a6920aa8bb1f48449650403ec504293c@example.com', is_verified=True)], authenticators=[])[0m
```
Contributor guide
Research direction
Start with tests/sentry/hybridcloud/rpc/test_caching.py::test_caching_many and reproduce the failure using the linked GitHub Actions run. Inspect the assertion at line 184 and compare the cached and direct results shown in the failure. Done means the test no longer flakes and reliably verifies equivalent results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100