Flaky test: tests/sentry/feedback/lib/test_label_query.py::TestLabelQuery::test_get_ai_labels_from_tags_retrieves_labels_correctly
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 44.8k
- Forks
- 4.9k
- Avg merge
- 21h 23m
- Merged PRs (30d)
- 607
Description
Failing test: tests/sentry/feedback/lib/test_label_query.py::TestLabelQuery::test_get_ai_labels_from_tags_retrieves_labels_correctly
Sentry sha: 405c781e4bcb9380607169cc7de045bcc30823e6
Run: https://github.com/getsentry/sentry/actions/runs/22270629163
[1m[31mtests/sentry/feedback/lib/test_label_query.py[0m:75: in test_get_ai_labels_from_tags_retrieves_labels_correctly
assert len(result["data"]) == 2
[1m[31mE AssertionError: assert 5 == 2[0m
[1m[31mE + where 5 = len([{'labels': ['Authentication']}, {'labels': ['Authentication', 'Security']}, {'labels': ['Authentication', 'Security']}, {'labels': ['User Interface', 'Performance']}, {'labels': ['Performance', 'Authentication']}])[0m
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with tests/sentry/feedback/lib/test_label_query.py::TestLabelQuery::test_get_ai_labels_from_tags_retrieves_labels_correctly and reproduce the failure from the linked GitHub Actions run. Inspect the assertion at line 75 and the returned data to determine why five entries appear instead of two. Done means the test no longer flakes and passes consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100