Flaky test: tests/sentry/uptime/endpoints/test_organization_uptime_alert_index.py::OrganizationUptimeAlertIndexEndpointTest::test
Open
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/uptime/endpoints/test_organization_uptime_alert_index.py::OrganizationUptimeAlertIndexEndpointTest::test
Sentry sha: ab471d2d1ede60c8a8c1e3911b78a71a83261eae
Run: https://github.com/getsentry/sentry/actions/runs/22271636179
[1m[31mtests/sentry/uptime/endpoints/test_organization_uptime_alert_index.py[0m:24: in test
self.check_valid_response(resp, [alert_1, alert_2])
[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': '1854', 'projectSlug': 'bar', 'environment': 'development', 'name': 'test1', 'status': 'active', 'uptimeStatus': <UptimeStatus.OK: 1>, 'mode': 3, 'owner': None, 'recoveryThreshold': 1, 'downtimeThreshold': 3, 'url': 'http://Wanted-Bedbug.com', 'method': 'GET', 'body': None, 'headers': [], 'intervalSeconds': 60, 'timeoutMs': 100, 'traceSampling': False, 'responseCaptureEnabled': True, 'assertion': None} != {'id': '1855', 'projectSlug': 'bar', 'environment': 'development', 'name': 'test2', 'status': 'active', 'uptimeStatus': <UptimeStatus.OK: 1>, 'mode': 3, 'owner': None, 'recoveryThreshold': 1, 'downtimeThreshold': 3, 'url': 'http://Mature-Clam.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': '1854',[0m
[1m[31mE + 'intervalSeconds': 60,[0m
[1m[31mE + 'method': 'GET',[0m
[1m[31mE + 'mode': 3,[0m
[1m[31mE + 'name': 'test1',[0m
[1m[31mE + 'owner': None,[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': <UptimeStatus.OK: 1>,[0m
[1m[31mE + 'url': 'http://Wanted-Bedbug.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': '1855',[0m
[1m[31mE 'intervalSeconds': 60,[0m
[1m[31mE 'method': 'GET',[0m
[1m[31mE 'mode': 3,[0m
[1m[31mE 'name': 'test2',[0m
[1m[31mE 'owner': None,[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': <UptimeStatus.OK: 1>,[0m
[1m[31mE 'url': 'http://Mature-Clam.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': '1854',[0m
[1m[31mE - 'intervalSeconds': 60,[0m
[1m[31mE - 'method': 'GET',[0m
[1m[31mE - 'mode': 3,[0m
[1m[31mE - 'name': 'test1',[0m
[1m[31mE - 'owner': None,[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': <UptimeStatus.OK: 1>,[0m
[1m[31mE - 'url': 'http://Wanted-Bedbug.com',[0m
[1m[31mE - },[0m
[1m[31mE ][0m
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with tests/sentry/uptime/endpoints/test_organization_uptime_alert_index.py, especially test and check_valid_response. Run the named test repeatedly and compare the response ordering with [alert_1, alert_2]. Done means the test reliably passes without depending on nondeterministic alert ordering.
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
- Mostly clear
- Newbie friendliness
- 48/100