getsentry / getsentry/sentry

Flaky test: tests/sentry/hybridcloud/rpc/test_caching.py::test_caching_many

Open
#108,996 1 comment 0 reactions 0 assignees View on GitHub
flaky-test Tests
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

```
tests/sentry/hybridcloud/rpc/test_caching.py:184: in test_caching_many
assert wrapped == direct
E AssertionError: assert RpcUser(id=36...enticators=[]) == RpcUser(id=36...enticators=[])
E 
E Full diff:
E - 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=[])
E + 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=[])
```

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.