Flaky test: tests/sentry/issues/endpoints/test_organization_group_suspect_flags.py::OrganizationGroupSuspectFlagsTestCase::test_get
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/issues/endpoints/test_organization_group_suspect_flags.py::OrganizationGroupSuspectFlagsTestCase::test_get
Sentry sha: 405c781e4bcb9380607169cc7de045bcc30823e6
Run: https://github.com/getsentry/sentry/actions/runs/22270629163
[1m[31mtests/sentry/issues/endpoints/test_organization_group_suspect_flags.py[0m:59: in test_get
assert response.json() == {
[1m[31mE AssertionError: assert {'data': [{'b...: True, ...}]} == {'data': [{'b...: True, ...}]}[0m
[1m[31mE [0m
[1m[31mE Differing items:[0m
[1m[31mE {'data': [{'baseline_percent': 0, 'distribution': {'baseline': {'false': 2}, 'outliers': {'false': 2}}, 'flag': 'other... {'baseline': {'false': 1, 'true': 1}, 'outliers': {'false': 1, 'true': 1}}, 'flag': 'key', 'is_filtered': True, ...}]} != {'data': [{'baseline_percent': 0.5, 'distribution': {'baseline': {'false': 1, 'true': 1}, 'outliers': {'true': 1}}, 'f...: 0, 'distribution': {'baseline': {'false': 2}, 'outliers': {'false': 1}}, 'flag': 'other', 'is_filtered': True, ...}]}[0m
[1m[31mE [0m
[1m[31mE Full diff:[0m
[1m[31mE {[0m
[1m[31mE 'data': [[0m
[1m[31mE + {[0m
[1m[31mE + 'baseline_percent': 0,[0m
[1m[31mE + 'distribution': {[0m
[1m[31mE + 'baseline': {[0m
[1m[31mE + 'false': 2,[0m
[1m[31mE + },[0m
[1m[31mE + 'outliers': {[0m
[1m[31mE + 'false': 2,[0m
[1m[31mE + },[0m
[1m[31mE + },[0m
[1m[31mE + 'flag': 'other',[0m
[1m[31mE + 'is_filtered': True,[0m
[1m[31mE + 'score': 0.01639344262295082,[0m
[1m[31mE + },[0m
[1m[31mE {[0m
[1m[31mE 'baseline_percent': 0.5,[0m
[1m[31mE 'distribution': {[0m
[1m[31mE 'baseline': {[0m
[1m[31mE 'false': 1,[0m
[1m[31mE 'true': 1,[0m
[1m[31mE },[0m
[1m[31mE 'outliers': {[0m
[1m[31mE + 'false': 1,[0m
[1m[31mE 'true': 1,[0m
[1m[31mE },[0m
[1m[31mE },[0m
[1m[31mE 'flag': 'key',[0m
[1m[31mE 'is_filtered': True,[0m
[1m[31mE 'score': 0.01634056054997356,[0m
[1m[31mE },[0m
[1m[31mE - {[0m
[1m[31mE - 'baseline_percent': 0,[0m
[1m[31mE - 'distribution': {[0m
[1m[31mE - 'baseline': {[0m
[1m[31mE - 'false': 2,[0m
[1m[31mE - },[0m
[1m[31mE - 'outliers': {[0m
[1m[31mE - 'false': 1,[0m
[1m[31mE - },[0m
[1m[31mE - },[0m
[1m[31mE - 'flag': 'other',[0m
[1m[31mE - 'is_filtered': True,[0m
[1m[31mE - 'score': 0.016181914331041776,[0m
[1m[31mE - },[0m
[1m[31mE ],[0m
[1m[31mE }[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 rerunning tests/sentry/issues/endpoints/test_organization_group_suspect_flags.py::OrganizationGroupSuspectFlagsTestCase::test_get, using the linked GitHub Actions run and Sentry SHA as context. Compare the response data with the assertion at line 59 and investigate why the flag distributions vary between runs. Done means the test passes reliably with stable response data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100