Flaky test: tests/sentry/feedback/lib/test_label_query.py::TestLabelQuery::test_get_ai_labels_from_tags_retrieves_labels_correctly
Open
Nobody has claimed this yet.
flaky-test
Tests
- 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: 8946786f8c842378abaca48859e9dd3fde074066
Run: https://github.com/getsentry/sentry/actions/runs/22286171256
[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 4 == 2[0m
[1m[31mE + where 4 = len([{'labels': ['Authentication']}, {'labels': ['Performance']}, {'labels': []}, {'labels': ['Authentication', 'Security']}])[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 by running tests/sentry/feedback/lib/test_label_query.py::TestLabelQuery::test_get_ai_labels_from_tags_retrieves_labels_correctly and inspect the failing assertion at line 75. Trace how the test data produces four entries instead of two, then make the flaky test consistently pass with its expected result.
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
- Mostly clear
- Newbie friendliness
- 35/100