Flaky test: tests/snuba/rules/conditions/test_event_frequency.py::EventFrequencyPercentConditionQueryTest::test_batch_query_percent
- Dominant language
- Python
- Stars
- 44.8k
- Forks
- 4.9k
- Avg merge
- 21h 10m
- Merged PRs (30d)
- 635
Description
Failing test: `tests/snuba/rules/conditions/test_event_frequency.py::EventFrequencyPercentConditionQueryTest::test_batch_query_percent`
Sentry sha: ca860f9c94028d730c6c41f914221b3bb1f4059c
Run: https://github.com/getsentry/sentry/actions/runs/22268329341
```
[1m[31mtests/snuba/rules/conditions/test_event_frequency.py[0m:511: in test_batch_query_percent
assert batch_query == {
[1m[31mE assert {1: 25.0, 2: 25.0, 4: 0} == {1: 20, 2: 20, 4: 0}[0m
[1m[31mE [0m
[1m[31mE Omitting 1 identical items, use -vv to show[0m
[1m[31mE Differing items:[0m
[1m[31mE {1: 25.0} != {1: 20}[0m
[1m[31mE {2: 25.0} != {2: 20}[0m
[1m[31mE [0m
[1m[31mE Full diff:[0m
[1m[31mE {[0m
[1m[31mE - 1: 20,[0m
[1m[31mE + 1: 25.0,[0m
[1m[31mE ? ++[0m
[1m[31mE - 2: 20,[0m
[1m[31mE + 2: 25.0,[0m
[1m[31mE ? ++[0m
[1m[31mE 4: 0,[0m
[1m[31mE }[0m
```
Contributor guide
Research direction
Start with tests/snuba/rules/conditions/test_event_frequency.py::EventFrequencyPercentConditionQueryTest::test_batch_query_percent and run the test, using the linked GitHub Actions run as context. Review why the batch query produces 25.0 instead of the expected 20 for keys 1 and 2; done means the flaky behavior is addressed and the test passes consistently.
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
- 45/100