Flaky test: tests/sentry/issues/escalating/test_escalating.py::HistoricGroupCounts::test_query_single_group
- Dominant language
- Python
- Stars
- 44.8k
- Forks
- 4.9k
- Avg merge
- 21h 10m
- Merged PRs (30d)
- 635
Description
Failing test: `tests/sentry/issues/escalating/test_escalating.py::HistoricGroupCounts::test_query_single_group`
Sentry sha: 94eda9b7a769c0e3366416f4aaa3606d9428cb1d
Run: https://github.com/getsentry/sentry/actions/runs/22291133157
```
[1m[31mtests/sentry/issues/escalating/test_escalating.py[0m:103: in test_query_single_group
assert query_groups_past_counts(Group.objects.all()) == [
[1m[31mE AssertionError: assert [] == [{'count()': ...681061789696}][0m
[1m[31mE [0m
[1m[31mE Right contains one more item: {'count()': 1, 'group_id': 456, 'hourBucket': '2026-02-23T03:00:00+00:00', 'project_id': 4557681061789696}[0m
[1m[31mE [0m
[1m[31mE Full diff:[0m
[1m[31mE + [][0m
[1m[31mE - [[0m
[1m[31mE - {[0m
[1m[31mE - 'count()': 1,[0m
[1m[31mE - 'group_id': 456,[0m
[1m[31mE - 'hourBucket': '2026-02-23T03:00:00+00:00',[0m
[1m[31mE - 'project_id': 4557681061789696,[0m
[1m[31mE - },[0m
[1m[31mE - ][0m
```
Contributor guide
Research direction
Start with tests/sentry/issues/escalating/test_escalating.py::HistoricGroupCounts::test_query_single_group and reproduce the failure using the linked GitHub Actions run as context. Trace why query_groups_past_counts(Group.objects.all()) returns an empty list instead of the expected group count. Done means the test passes reliably without masking the underlying failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100