getsentry / getsentry/sentry

Flaky test: tests/sentry/feedback/endpoints/test_organization_feedback_categories.py::OrganizationFeedbackCategoriesTest::test_fallback_to_primary_labels_when_below_threshold

Open
#109,444 1 comment 0 reactions 0 assignees View on GitHub
flaky-test Tests
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
21h 10m
Merged PRs (30d)
635

Description

Failing test: `tests/sentry/feedback/endpoints/test_organization_feedback_categories.py::OrganizationFeedbackCategoriesTest::test_fallback_to_primary_labels_when_below_threshold`
Sentry sha: 4a80dec864917198998a489a30e28e2fbdcef252
Run: https://github.com/getsentry/sentry/actions/runs/22426766205

```
tests/sentry/feedback/endpoints/test_organization_feedback_categories.py:252: in test_fallback_to_primary_labels_when_below_threshold
response = self.get_success_response(self.org.slug)
src/sentry/testutils/cases.py:628: in get_success_response
assert_status_code(response, status.HTTP_200_OK)
src/sentry/testutils/asserts.py:47: in assert_status_code
assert minimum <= response.status_code < maximum, (
E AssertionError: (500, b'{"detail":"Internal Error","errorId":null}')
E assert 500 < 201
E + where 500 = .status_code
```

Contributor guide

Open the contributing guide

Research direction

Start by running tests/sentry/feedback/endpoints/test_organization_feedback_categories.py::OrganizationFeedbackCategoriesTest::test_fallback_to_primary_labels_when_below_threshold at Sentry sha 4a80dec864917198998a489a30e28e2fbdcef252 and compare the failure with the linked Actions run. Trace the 500 response from get_success_response and confirm the test consistently returns HTTP 200 with the primary-label fallback.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, 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.