getsentry / getsentry/sentry

Flaky test: tests/sentry/api/test_organization_events.py::OrganizationEventsEndpointTest::test_api_key_request

Open
#108,857 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/api/test_organization_events.py::OrganizationEventsEndpointTest::test_api_key_request`
Sentry sha: ca860f9c94028d730c6c41f914221b3bb1f4059c
Run: https://github.com/getsentry/sentry/actions/runs/22268329654

```
tests/sentry/api/test_organization_events.py:64: in test_api_key_request
assert len(response.data["data"]) == 1
E AssertionError: assert 2 == 1
E + where 2 = len([{'environment': 'staging', 'id': 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', 'project.name': 'bar'}, {'environment': None, 'id': '67e0127152614d78a998c81fc4aa5a49', 'project.name': 'bar'}])
```

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.