Skip to content

Flaky test: tests/sentry/integrations/slack/actions/notification/test_slack_notify_service_action.py::TestInit::test_after_with_threads_noa #112318

@github-actions

Description

@github-actions

Failing test: tests/sentry/integrations/slack/actions/notification/test_slack_notify_service_action.py::TestInit::test_after_with_threads_noa
Sentry sha: 023e119
Run: https://github.com/getsentry/sentry/actions/runs/24054698626

�[1m�[31m.venv/lib/python3.13/site-packages/urllib3/connection.py�[0m:204: in _new_conn
    sock = connection.create_connection(
�[1m�[31m.venv/lib/python3.13/site-packages/urllib3/util/connection.py�[0m:85: in create_connection
    raise err
�[1m�[31m.venv/lib/python3.13/site-packages/urllib3/util/connection.py�[0m:73: in create_connection
    sock.connect(sa)
�[1m�[31mE   ConnectionRefusedError: [Errno 111] Connection refused�[0m

�[33mThe above exception was the direct cause of the following exception:�[0m
�[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:493: in _make_request
    conn.request(
�[1m�[31m.venv/lib/python3.13/site-packages/urllib3/connection.py�[0m:500: in request
    self.endheaders()
�[1m�[31m/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/http/client.py�[0m:1331: in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
�[1m�[31m/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/http/client.py�[0m:1091: in _send_output
    self.send(msg)
�[1m�[31m/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/http/client.py�[0m:1035: in send
    self.connect()
�[1m�[31m.venv/lib/python3.13/site-packages/urllib3/connection.py�[0m:331: in connect
    self.sock = self._new_conn()
�[1m�[31m.venv/lib/python3.13/site-packages/urllib3/connection.py�[0m:219: in _new_conn
    raise NewConnectionError(
�[1m�[31mE   urllib3.exceptions.NewConnectionError: HTTPConnection(host='127.0.0.1', port=1218): Failed to establish a new connection: [Errno 111] Connection refused�[0m

�[33mThe above exception was the direct cause of the following exception:�[0m
�[1m�[31msrc/sentry/eventstream/snuba.py�[0m:490: in _send
    resp = snuba._snuba_pool.urlopen(
�[1m�[31m.venv/lib/python3.13/site-packages/urllib3/connectionpool.py�[0m:871: in urlopen
    return self.urlopen(
�[1m�[31m.venv/lib/python3.13/site-packages/urllib3/connectionpool.py�[0m:871: in urlopen
    return self.urlopen(
�[1m�[31m.venv/lib/python3.13/site-packages/urllib3/connectionpool.py�[0m:871: in urlopen
    return self.urlopen(
�[1m�[31m.venv/lib/python3.13/site-packages/urllib3/connectionpool.py�[0m:871: in urlopen
    return self.urlopen(
�[1m�[31m.venv/lib/python3.13/site-packages/urllib3/connectionpool.py�[0m:871: in urlopen
    return self.urlopen(
�[1m�[31m.venv/lib/python3.13/site-packages/urllib3/connectionpool.py�[0m:841: in urlopen
    retries = retries.increment(
�[1m�[31msrc/sentry/utils/snuba.py�[0m:555: in increment
    return super().increment(
�[1m�[31m.venv/lib/python3.13/site-packages/urllib3/util/retry.py�[0m:535: in increment
    raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
�[1m�[31mE   urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=1218): Max retries exceeded with url: /tests/events/eventstream (Caused by NewConnectionError("HTTPConnection(host='127.0.0.1', port=1218): Failed to establish a new connection: [Errno 111] Connection refused"))�[0m

�[33mDuring handling of the above exception, another exception occurred:�[0m
�[1m�[31mtests/sentry/integrations/slack/actions/notification/test_slack_notify_service_action.py�[0m:50: in setUp
    self.event = self.store_event(
�[1m�[31msrc/sentry/testutils/fixtures.py�[0m:330: in store_event
    return Factories.store_event(*args, **kwargs)
�[1m�[31m/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py�[0m:85: in inner
    return func(*args, **kwds)
�[1m�[31msrc/sentry/testutils/factories.py�[0m:1192: in store_event
    event = manager.save(project_id)
�[1m�[31m.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py�[0m:916: in sync_wrapper
    result = f(*args, **kwargs)
�[1m�[31msrc/sentry/event_manager.py�[0m:514: in save
    return self.save_error_events(
�[1m�[31m.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py�[0m:916: in sync_wrapper
    result = f(*args, **kwargs)
�[1m�[31msrc/sentry/event_manager.py�[0m:608: in save_error_events
    _eventstream_insert_many(jobs)
�[1m�[31msrc/sentry/event_manager.py�[0m:1185: in _eventstream_insert_many
    eventstream.backend.insert(
�[1m�[31msrc/sentry/eventstream/snuba.py�[0m:571: in insert
    super().insert(
�[1m�[31msrc/sentry/eventstream/snuba.py�[0m:179: in insert
    self._send(
�[1m�[31msrc/sentry/eventstream/snuba.py�[0m:502: in _send
    raise snuba.SnubaError(err)
�[1m�[31mE   sentry.utils.snuba.SnubaError: HTTPConnectionPool(host='127.0.0.1', port=1218): Max retries exceeded with url: /tests/events/eventstream (Caused by NewConnectionError("HTTPConnection(host='127.0.0.1', port=1218): Failed to establish a new connection: [Errno 111] Connection refused"))�[0m

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions