getsentry / getsentry/sentry

Flaky test: tests/sentry/notifications/utils/test_participants.py::GetSendToOwnersTest::test_disable_alerts_multiple_scopes

Open
#108,936 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/notifications/utils/test_participants.py::GetSendToOwnersTest::test_disable_alerts_multiple_scopes`
Sentry sha: 8946786f8c842378abaca48859e9dd3fde074066
Run: https://github.com/getsentry/sentry/actions/runs/22286171679

```
tests/sentry/notifications/utils/test_participants.py:367: in test_disable_alerts_multiple_scopes
self.assert_recipients_are(
tests/sentry/notifications/utils/test_participants.py:76: in assert_recipients_are
assert actual == expected
E AssertionError: assert defaultdict(<... slug=None)}}) == defaultdict(<... slug=None)}})
E 
E Differing items:
E {: {Actor(id=2575, actor_type='User', slug=None)}} != {: {Actor(id=2576, actor_type='User', slug=None)}}
E {: {Actor(id=2575, actor_type='User', slug=None)}} != {: {Actor(id=2576, actor_type='User', slug=None)}}
E 
E Full diff:
E defaultdict(, {
E : {
E - Actor(id=2576, actor_type='User', slug=None),
E ? ^
E + Actor(id=2575, actor_type='User', slug=None),
E ? ^
E },
E : {
E - Actor(id=2576, actor_type='User', slug=None),
E ? ^
E + Actor(id=2575, actor_type='User', slug=None),
E ? ^
E },
E })
```

Contributor guide

Open the contributing guide

Research direction

Start with tests/sentry/notifications/utils/test_participants.py, especially GetSendToOwnersTest::test_disable_alerts_multiple_scopes, and reproduce the failure using the test named in the report. Compare the expected and actual recipient actors across repeated runs, then confirm the test passes consistently with the intended recipients.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.