Flaky test: tests/sentry/api/test_organization_events.py::OrganizationEventsEndpointTest::test_api_key_request
- Dominant language
- Python
- Stars
- 44.8k
- Forks
- 4.9k
- Avg merge
- 21h 10m
- Merged PRs (30d)
- 635
Description
Failing test: `tests/sentry/api/test_organization_events.py::OrganizationEventsEndpointTest::test_api_key_request`
Sentry sha: ca860f9c94028d730c6c41f914221b3bb1f4059c
Run: https://github.com/getsentry/sentry/actions/runs/22268329654
```
[1m[31mtests/sentry/api/test_organization_events.py[0m:64: in test_api_key_request
assert len(response.data["data"]) == 1
[1m[31mE AssertionError: assert 2 == 1[0m
[1m[31mE + where 2 = len([{'environment': 'staging', 'id': 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', 'project.name': 'bar'}, {'environment': None, 'id': '67e0127152614d78a998c81fc4aa5a49', 'project.name': 'bar'}])[0m
```
Contributor guide
Research direction
Start with the failing test tests/sentry/api/test_organization_events.py::OrganizationEventsEndpointTest::test_api_key_request and reproduce the assertion failure from the linked run. Inspect the test's response data and setup to determine why two records are returned; done means the test is stable and the expected single result passes consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, testing-qa
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100