Skip to content

Commit

Permalink
Omit two websocket_client/websockets tests due to their instability o…
Browse files Browse the repository at this point in the history
…n GitHub Actions (#1493)
  • Loading branch information
seratch committed May 3, 2024
1 parent f8906fe commit 059dd68
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 17 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
env:
PYTHON_SLACK_SDK_MOCK_SERVER_MODE: 'threading'
CI_LARGE_SOCKET_MODE_PAYLOAD_TESTING_DISABLED: '1'
CI_UNSTABLE_TESTS_SKIP_ENABLED: '1'
FORCE_COLOR: '1'
steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 0 additions & 6 deletions tests/slack_sdk/socket_mode/test_interactions_builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

from slack_sdk import WebClient
from slack_sdk.socket_mode import SocketModeClient
from tests.helpers import is_ci_unstable_test_skip_enabled
from tests.slack_sdk.socket_mode.mock_socket_mode_server import (
start_socket_mode_server,
socket_mode_envelopes,
Expand Down Expand Up @@ -48,9 +47,6 @@ def test_buffer_size_validation(self):
pass

def test_interactions(self):
if is_ci_unstable_test_skip_enabled():
return

default_recursion_limit = sys.getrecursionlimit() # will restore later
# This built-in WebSocket client internally has recursive method calls of _fetch_messages method.
# In this test, the method calls can result in the following error when giving a quite small buffer size.
Expand Down Expand Up @@ -135,8 +131,6 @@ def socket_mode_request_handler(client: BaseSocketModeClient, request: SocketMod
self.logger.info(f"Passed with buffer size: {buffer_size_list}")

def test_send_message_while_disconnection(self):
if is_ci_unstable_test_skip_enabled():
return
t = Thread(target=start_socket_mode_server(self, 3011))
t.daemon = True
t.start()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ def tearDown(self):
cleanup_mock_web_api_server(self)

def test_interactions(self):
if is_ci_unstable_test_skip_enabled():
return
t = Thread(target=start_socket_mode_server(self, 3012))
t.daemon = True
t.start()
Expand Down Expand Up @@ -100,6 +98,7 @@ def socket_mode_request_handler(client: BaseSocketModeClient, request: SocketMod

def test_send_message_while_disconnection(self):
if is_ci_unstable_test_skip_enabled():
# this test tends to fail on the GitHub Actions platform
return
t = Thread(target=start_socket_mode_server(self, 3012))
t.daemon = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

from slack_sdk.socket_mode.aiohttp import SocketModeClient
from slack_sdk.web.async_client import AsyncWebClient
from tests.helpers import is_ci_unstable_test_skip_enabled
from tests.slack_sdk.socket_mode.mock_socket_mode_server import (
start_socket_mode_server,
start_socket_mode_server_with_disconnection,
Expand Down Expand Up @@ -44,8 +43,6 @@ def tearDown(self):

@async_test
async def test_interactions(self):
if is_ci_unstable_test_skip_enabled():
return
t = Thread(target=start_socket_mode_server(self, 3001))
t.daemon = True
t.start()
Expand Down Expand Up @@ -108,8 +105,6 @@ async def socket_mode_listener(

@async_test
async def test_interactions_with_disconnection(self):
if is_ci_unstable_test_skip_enabled():
return
t = Thread(target=start_socket_mode_server_with_disconnection(self, 3001))
t.daemon = True
t.start()
Expand Down Expand Up @@ -196,8 +191,6 @@ async def socket_mode_listener(

@async_test
async def test_send_message_while_disconnection(self):
if is_ci_unstable_test_skip_enabled():
return
t = Thread(target=start_socket_mode_server(self, 3001))
t.daemon = True
t.start()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ def tearDown(self):

@async_test
async def test_interactions(self):
if is_ci_unstable_test_skip_enabled():
return
t = Thread(target=start_socket_mode_server(self, 3002))
t.daemon = True
t.start()
Expand Down Expand Up @@ -109,6 +107,7 @@ async def socket_mode_listener(
@async_test
async def test_send_message_while_disconnection(self):
if is_ci_unstable_test_skip_enabled():
# this test tends to fail on the GitHub Actions platform
return
t = Thread(target=start_socket_mode_server(self, 3001))
t.daemon = True
Expand Down

0 comments on commit 059dd68

Please sign in to comment.