getsentry / getsentry/sentry

Flaky test: tests/sentry/issues/endpoints/test_organization_group_suspect_flags.py::OrganizationGroupSuspectFlagsTestCase::test_get

Open
#108,871 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/issues/endpoints/test_organization_group_suspect_flags.py::OrganizationGroupSuspectFlagsTestCase::test_get
Sentry sha: 405c781e4bcb9380607169cc7de045bcc30823e6
Run: https://github.com/getsentry/sentry/actions/runs/22270629163

tests/sentry/issues/endpoints/test_organization_group_suspect_flags.py:59: in test_get
    assert response.json() == {
E   AssertionError: assert {'data': [{'b...: True, ...}]} == {'data': [{'b...: True, ...}]}
E     
E     Differing items:
E     {'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, ...}]}
E     
E     Full diff:
E       {
E           'data': [
E     +         {
E     +             'baseline_percent': 0,
E     +             'distribution': {
E     +                 'baseline': {
E     +                     'false': 2,
E     +                 },
E     +                 'outliers': {
E     +                     'false': 2,
E     +                 },
E     +             },
E     +             'flag': 'other',
E     +             'is_filtered': True,
E     +             'score': 0.01639344262295082,
E     +         },
E               {
E                   'baseline_percent': 0.5,
E                   'distribution': {
E                       'baseline': {
E                           'false': 1,
E                           'true': 1,
E                       },
E                       'outliers': {
E     +                     'false': 1,
E                           'true': 1,
E                       },
E                   },
E                   'flag': 'key',
E                   'is_filtered': True,
E                   'score': 0.01634056054997356,
E               },
E     -         {
E     -             'baseline_percent': 0,
E     -             'distribution': {
E     -                 'baseline': {
E     -                     'false': 2,
E     -                 },
E     -                 'outliers': {
E     -                     'false': 1,
E     -                 },
E     -             },
E     -             'flag': 'other',
E     -             'is_filtered': True,
E     -             'score': 0.016181914331041776,
E     -         },
E           ],
E       }

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.