Flaky test: tests/sentry/uptime/endpoints/test_organization_uptime_alert_index.py::OrganizationUptimeAlertIndexEndpointTest::test_owner_filter
- Dominant language
- Python
- Stars
- 44.8k
- Forks
- 4.9k
- Avg merge
- 21h 10m
- Merged PRs (30d)
- 635
Description
Failing test: `tests/sentry/uptime/endpoints/test_organization_uptime_alert_index.py::OrganizationUptimeAlertIndexEndpointTest::test_owner_filter`
Sentry sha: ab471d2d1ede60c8a8c1e3911b78a71a83261eae
Run: https://github.com/getsentry/sentry/actions/runs/22271634857
```
[1m[31mtests/sentry/uptime/endpoints/test_organization_uptime_alert_index.py[0m:65: in test_owner_filter
self.check_valid_response(response, [uptime_a, uptime_b, uptime_c])
[1m[31mtests/sentry/uptime/endpoints/test_organization_uptime_alert_index.py[0m:15: in check_valid_response
assert [
[1m[31mE AssertionError: assert [{'assertion'...opment', ...}] == [{'assertion'...opment', ...}][0m
[1m[31mE [0m
[1m[31mE At index 0 diff: {'id': '4094', 'projectSlug': 'bar', 'environment': 'development', 'name': 'Cosmic Jawfish', 'status': 'active', 'uptimeStatus': , 'mode': 3, 'owner': {'type': 'user', 'id': '2688', 'name': '7736994d727e4729a5fcd41ee6dd7a7b@example.com', 'email': '7736994d727e4729a5fcd41ee6dd7a7b@example.com'}, 'recoveryThreshold': 1, 'downtimeThreshold': 3, 'url': 'http://Close-Civet.com', 'method': 'GET', 'body': None, 'headers': [], 'intervalSeconds': 60, 'timeoutMs': 100, 'traceSampling': False, 'responseCaptureEnabled': True, 'assertion': None} != {'id': '4096', 'projectSlug': 'bar', 'environment': 'development', 'name': 'Humble Mite', 'status': 'active', 'uptimeStatus': , 'mode': 3, 'owner': {'type': 'team', 'id': '4557676260622336', 'name': 'eminent-oriole'}, 'recoveryThreshold': 1, 'downtimeThreshold': 3, 'url': 'http://Epic-Tuna.com', 'method': 'GET', 'body': None, 'headers': [], 'intervalSeconds': 60, 'timeoutMs': 100, 'traceSampling': False, 'responseCaptureEnabled': True, 'assertion': None}[0m
[1m[31mE [0m
[1m[31mE Full diff:[0m
[1m[31mE [[0m
[1m[31mE - {[0m
[1m[31mE - 'assertion': None,[0m
[1m[31mE - 'body': None,[0m
[1m[31mE - 'downtimeThreshold': 3,[0m
[1m[31mE - 'environment': 'development',[0m
[1m[31mE - 'headers': [],[0m
[1m[31mE - 'id': '4096',[0m
[1m[31mE - 'intervalSeconds': 60,[0m
[1m[31mE - 'method': 'GET',[0m
[1m[31mE - 'mode': 3,[0m
[1m[31mE - 'name': 'Humble Mite',[0m
[1m[31mE - 'owner': {[0m
[1m[31mE - 'id': '4557676260622336',[0m
[1m[31mE - 'name': 'eminent-oriole',[0m
[1m[31mE - 'type': 'team',[0m
[1m[31mE - },[0m
[1m[31mE - 'projectSlug': 'bar',[0m
[1m[31mE - 'recoveryThreshold': 1,[0m
[1m[31mE - 'responseCaptureEnabled': True,[0m
[1m[31mE - 'status': 'active',[0m
[1m[31mE - 'timeoutMs': 100,[0m
[1m[31mE - 'traceSampling': False,[0m
[1m[31mE - 'uptimeStatus': ,[0m
[1m[31mE - 'url': 'http://Epic-Tuna.com',[0m
[1m[31mE - },[0m
[1m[31mE {[0m
[1m[31mE 'assertion': None,[0m
[1m[31mE 'body': None,[0m
[1m[31mE 'downtimeThreshold': 3,[0m
[1m[31mE 'environment': 'development',[0m
[1m[31mE 'headers': [],[0m
[1m[31mE 'id': '4094',[0m
[1m[31mE 'intervalSeconds': 60,[0m
[1m[31mE 'method': 'GET',[0m
[1m[31mE 'mode': 3,[0m
[1m[31mE 'name': 'Cosmic Jawfish',[0m
[1m[31mE 'owner': {[0m
[1m[31mE 'email': '7736994d727e4729a5fcd41ee6dd7a7b@example.com',[0m
[1m[31mE 'id': '2688',[0m
[1m[31mE 'name': '7736994d727e4729a5fcd41ee6dd7a7b@example.com',[0m
[1m[31mE 'type': 'user',[0m
[1m[31mE },[0m
[1m[31mE 'projectSlug': 'bar',[0m
[1m[31mE 'recoveryThreshold': 1,[0m
[1m[31mE 'responseCaptureEnabled': True,[0m
[1m[31mE 'status': 'active',[0m
[1m[31mE 'timeoutMs': 100,[0m
[1m[31mE 'traceSampling': False,[0m
[1m[31mE 'uptimeStatus': ,[0m
[1m[31mE 'url': 'http://Close-Civet.com',[0m
[1m[31mE },[0m
[1m[31mE {[0m
[1m[31mE 'assertion': None,[0m
[1m[31mE 'body': None,[0m
[1m[31mE 'downtimeThreshold': 3,[0m
[1m[31mE 'environment': 'development',[0m
[1m[31mE 'headers': [],[0m
[1m[31mE 'id': '4095',[0m
[1m[31mE 'intervalSeconds': 60,[0m
[1m[31mE 'method': 'GET',[0m
[1m[31mE 'mode': 3,[0m
[1m[31mE 'name': 'Precise Spider',[0m
[1m[31mE 'owner': {[0m
[1m[31mE 'email': 'aa3b93a1a5cc4332b1222aafbc77827e@example.com',[0m
[1m[31mE 'id': '2689',[0m
[1m[31mE 'name': 'aa3b93a1a5cc4332b1222aafbc77827e@example.com',[0m
[1m[31mE 'type': 'user',[0m
[1m[31mE },[0m
[1m[31mE 'projectSlug': 'bar',[0m
[1m[31mE 'recoveryThreshold': 1,[0m
[1m[31mE 'responseCaptureEnabled': True,[0m
[1m[31mE 'status': 'active',[0m
[1m[31mE 'timeoutMs': 100,[0m
[1m[31mE 'traceSampling': False,[0m
[1m[31mE 'uptimeStatus': ,[0m
[1m[31mE 'url': 'http://Sound-Hippo.com',[0m
[1m[31mE },[0m
[1m[31mE + {[0m
[1m[31mE + 'assertion': None,[0m
[1m[31mE + 'body': None,[0m
[1m[31mE + 'downtimeThreshold': 3,[0m
[1m[31mE + 'environment': 'development',[0m
[1m[31mE + 'headers': [],[0m
[1m[31mE + 'id': '4096',[0m
[1m[31mE + 'intervalSeconds': 60,[0m
[1m[31mE + 'method': 'GET',[0m
[1m[31mE + 'mode': 3,[0m
[1m[31mE + 'name': 'Humble Mite',[0m
[1m[31mE + 'owner': {[0m
[1m[31mE + 'id': '4557676260622336',[0m
[1m[31mE + 'name': 'eminent-oriole',[0m
[1m[31mE + 'type': 'team',[0m
[1m[31mE + },[0m
[1m[31mE + 'projectSlug': 'bar',[0m
[1m[31mE + 'recoveryThreshold': 1,[0m
[1m[31mE + 'responseCaptureEnabled': True,[0m
[1m[31mE + 'status': 'active',[0m
[1m[31mE + 'timeoutMs': 100,[0m
[1m[31mE + 'traceSampling': False,[0m
[1m[31mE + 'uptimeStatus': ,[0m
[1m[31mE + 'url': 'http://Epic-Tuna.com',[0m
[1m[31mE + },[0m
[1m[31mE ][0m
```
Contributor guide
Research direction
Start with tests/sentry/uptime/endpoints/test_organization_uptime_alert_index.py, especially test_owner_filter and its check_valid_response helper. Run the named test and compare the expected and actual response ordering shown in the failure; done means the test passes reliably without the reported mismatch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100