Flaky test: tests/sentry/sentry_metrics/test_all_indexers.py::test_rate_limited[UseCaseID.TRANSACTIONS-PGStringIndexerV2]
- Dominant language
- Python
- Stars
- 44.8k
- Forks
- 4.9k
- Avg merge
- 21h 10m
- Merged PRs (30d)
- 635
Description
Failing test: `tests/sentry/sentry_metrics/test_all_indexers.py::test_rate_limited[UseCaseID.TRANSACTIONS-PGStringIndexerV2]`
Sentry sha: abdb2eeccb973e9b33600d0fb95e18b12b995415
Run: https://github.com/getsentry/sentry/actions/runs/22208450954
```
[1m[31mtests/sentry/sentry_metrics/test_all_indexers.py[0m:532: in test_rate_limited
assert results[use_case_id][1] == {"x": None, "y": None, "z": None}
[1m[31mE AssertionError: assert {'x': None, '...35, 'z': None} == {'x': None, '...ne, 'z': None}[0m
[1m[31mE [0m
[1m[31mE Omitting 2 identical items, use -vv to show[0m
[1m[31mE Differing items:[0m
[1m[31mE {'y': 35} != {'y': None}[0m
[1m[31mE [0m
[1m[31mE Full diff:[0m
[1m[31mE {[0m
[1m[31mE 'x': None,[0m
[1m[31mE - 'y': None,[0m
[1m[31mE ? ^^^^[0m
[1m[31mE + 'y': 35,[0m
[1m[31mE ? ^^[0m
[1m[31mE 'z': None,[0m
[1m[31mE }[0m
```
Contributor guide
Research direction
Start by running tests/sentry/sentry_metrics/test_all_indexers.py::test_rate_limited[UseCaseID.TRANSACTIONS-PGStringIndexerV2] and inspect the failure around line 532. Investigate why the result contains y=35 instead of None for this indexer, then confirm the test passes consistently and preserves the expected rate-limited result.
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
- Mostly clear
- Newbie friendliness
- 35/100