getsentry / getsentry/sentry

Flaky test: tests/sentry/incidents/test_logic.py::UpdateAlertRuleTest::test

Open
#108,879 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/incidents/test_logic.py::UpdateAlertRuleTest::test
Sentry sha: ab471d2d1ede60c8a8c1e3911b78a71a83261eae
Run: https://github.com/getsentry/sentry/actions/runs/22271635871

tests/sentry/incidents/test_logic.py:874: in test
    assert self.alert_rule.projects.all()[0] == updated_projects[0]
E   AssertionError: assert <Project at 0x7fb97f0e0870: id=4557676149342208, team_id=None, name='Sharp Mako', slug='sharp-mako', organization_id=4557676149276672> == <Project at 0x7fb9916dd710: id=4557676149276672, team_id=None, name='Bar', slug='bar', organization_id=4557676149276672>

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 reproducing the failure from the linked GitHub Actions run and inspect tests/sentry/incidents/test_logic.py::UpdateAlertRuleTest::test, especially the assertion at line 874. Investigate why the selected projects differ between runs, then make the test deterministic and rerun it to confirm the failure is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.