getsentry / getsentry/sentry

Flaky test: tests/sentry/feedback/lib/test_label_query.py::TestLabelQuery::test_get_ai_labels_from_tags_retrieves_labels_correctly

Open
#108,873 1 comment 0 reactions 0 assignees View on GitHub

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: 405c781e4bcb9380607169cc7de045bcc30823e6
Run: https://github.com/getsentry/sentry/actions/runs/22270629163

tests/sentry/feedback/lib/test_label_query.py:75: in test_get_ai_labels_from_tags_retrieves_labels_correctly
    assert len(result["data"]) == 2
E   AssertionError: assert 5 == 2
E    +  where 5 = len([{'labels': ['Authentication']}, {'labels': ['Authentication', 'Security']}, {'labels': ['Authentication', 'Security']}, {'labels': ['User Interface', 'Performance']}, {'labels': ['Performance', 'Authentication']}])

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.