getsentry / getsentry/sentry

Flaky test: tests/sentry/models/test_groupsnooze.py::GroupSnoozeTest::test_user_delta_reached

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

Nobody has claimed this yet.

flaky-test
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
21h 23m
Merged PRs (30d)
607

Description

Failing test: tests/sentry/models/test_groupsnooze.py::GroupSnoozeTest::test_user_delta_reached
Sentry sha: 2597189bd40bd108bd7ec710a885fc0cc3e38548
Run: https://github.com/getsentry/sentry/actions/runs/22282682512

tests/sentry/models/test_groupsnooze.py:88: in test_user_delta_reached
    assert not snooze.is_valid(test_rates=True)
E   assert not True
E    +  where True = <bound method GroupSnooze.is_valid of <GroupSnooze at 0x7f313b948050: id=7, group_id=648>>(test_rates=True)
E    +    where <bound method GroupSnooze.is_valid of <GroupSnooze at 0x7f313b948050: id=7, group_id=648>> = <GroupSnooze at 0x7f313b948050: id=7, group_id=648>.is_valid

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/models/test_groupsnooze.py::GroupSnoozeTest::test_user_delta_reached and run the named test to reproduce the failure. Trace GroupSnooze.is_valid(test_rates=True) and identify why the assertion is nondeterministic; done means the test reliably passes without masking the intended behavior.

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
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.