Flaky test: tests/snuba/rules/conditions/test_event_frequency.py::PerfIssuePlatformIssueEventFrequencyPercentConditionTestCase::test_five_minutes_no_events
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 44.8k
- Forks
- 4.9k
- Avg merge
- 21h 23m
- Merged PRs (30d)
- 607
Description
Failing test: tests/snuba/rules/conditions/test_event_frequency.py::PerfIssuePlatformIssueEventFrequencyPercentConditionTestCase::test_five_minutes_no_events
Sentry sha: ba9677707d394a61f057f87937c18f1837cc1b94
Run: https://github.com/getsentry/sentry/actions/runs/22269765006
[1m[31m.venv/lib/python3.13/site-packages/urllib3/connectionpool.py[0m:787: in urlopen
response = self._make_request(
[1m[31m.venv/lib/python3.13/site-packages/urllib3/connectionpool.py[0m:534: in _make_request
response = conn.getresponse()
[1m[31m.venv/lib/python3.13/site-packages/urllib3/connection.py[0m:571: in getresponse
httplib_response = super().getresponse()
[1m[31m.venv/lib/python3.13/site-packages/sentry_sdk/integrations/stdlib.py[0m:132: in getresponse
return real_getresponse(self, *args, **kwargs)
[1m[31m/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/http/client.py[0m:1428: in getresponse
response.begin()
[1m[31m/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/http/client.py[0m:331: in begin
version, status, reason = self._read_status()
[1m[31m/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/http/client.py[0m:300: in _read_status
raise RemoteDisconnected("Remote end closed connection without"
[1m[31mE http.client.RemoteDisconnected: Remote end closed connection without response[0m
[33mDuring handling of the above exception, another exception occurred:[0m
[1m[31m.venv/lib/python3.13/site-packages/requests/adapters.py[0m:667: in send
resp = conn.urlopen(
[1m[31m.venv/lib/python3.13/site-packages/urllib3/connectionpool.py[0m:841: in urlopen
retries = retries.increment(
[1m[31m.venv/lib/python3.13/site-packages/urllib3/util/retry.py[0m:490: in increment
raise reraise(type(error), error, _stacktrace)
[1m[31m.venv/lib/python3.13/site-packages/urllib3/util/util.py[0m:38: in reraise
raise value.with_traceback(tb)
[1m[31m.venv/lib/python3.13/site-packages/urllib3/connectionpool.py[0m:787: in urlopen
response = self._make_request(
[1m[31m.venv/lib/python3.13/site-packages/urllib3/connectionpool.py[0m:534: in _make_request
response = conn.getresponse()
[1m[31m.venv/lib/python3.13/site-packages/urllib3/connection.py[0m:571: in getresponse
httplib_response = super().getresponse()
[1m[31m.venv/lib/python3.13/site-packages/sentry_sdk/integrations/stdlib.py[0m:132: in getresponse
return real_getresponse(self, *args, **kwargs)
[1m[31m/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/http/client.py[0m:1428: in getresponse
response.begin()
[1m[31m/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/http/client.py[0m:331: in begin
version, status, reason = self._read_status()
[1m[31m/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/http/client.py[0m:300: in _read_status
raise RemoteDisconnected("Remote end closed connection without"
[1m[31mE urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))[0m
[33mDuring handling of the above exception, another exception occurred:[0m
[1m[31mtests/snuba/rules/conditions/test_event_frequency.py[0m:1325: in test_five_minutes_no_events
self._make_sessions(60)
[1m[31mtests/snuba/rules/conditions/test_event_frequency.py[0m:67: in _make_sessions
self.bulk_store_sessions([make_session(i) for i in range(num)])
[1m[31msrc/sentry/testutils/cases.py[0m:1498: in bulk_store_sessions
self.store_session(session)
[1m[31msrc/sentry/testutils/cases.py[0m:1471: in store_session
push(SessionMRI.RAW_SESSION.value, {"session.status": "init"}, +1)
[1m[31msrc/sentry/testutils/cases.py[0m:1455: in push
self.store_metric(
[1m[31msrc/sentry/testutils/cases.py[0m:1603: in store_metric
cls.__send_buckets([msg], entity)
[1m[31msrc/sentry/testutils/cases.py[0m:1618: in __send_buckets
assert (
[1m[31m.venv/lib/python3.13/site-packages/requests/api.py[0m:115: in post
return request("post", url, data=data, json=json, **kwargs)
[1m[31m.venv/lib/python3.13/site-packages/requests/api.py[0m:59: in request
return session.request(method=method, url=url, **kwargs)
[1m[31m.venv/lib/python3.13/site-packages/requests/sessions.py[0m:589: in request
resp = self.send(prep, **send_kwargs)
[1m[31m.venv/lib/python3.13/site-packages/requests/sessions.py[0m:703: in send
r = adapter.send(request, **kwargs)
[1m[31m.venv/lib/python3.13/site-packages/requests/adapters.py[0m:682: in send
raise ConnectionError(err, request=request)
[1m[31mE requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))[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 by running tests/snuba/rules/conditions/test_event_frequency.py::PerfIssuePlatformIssueEventFrequencyPercentConditionTestCase::test_five_minutes_no_events and inspect _make_sessions in that file. Trace the session storage path through src/sentry/testutils/cases.py, especially store_session, store_metric, and __send_buckets, where the RemoteDisconnected failure occurs. Done means the named test passes reliably without this connection failure.
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
- Needs clarification
- Newbie friendliness
- 35/100