Commit 86e003b
committed
test(socket_mode): drop test_close_shuts_down_all_runners — flaky on CI
The unit test exposed a pre-existing latent deadlock in SocketModeClient.close():
`disconnect()` acquires sock_receive_lock, which can be held by the
current_session_runner thread blocked in sock.recv(). Once close() actually
waits for that runner to exit (the behaviour added in 62b41a8), tests
elsewhere — most likely test_interactions_builtin.test_interactions, which
follows the test_builtin.py file alphabetically — can hang for the 15-minute
CI job timeout instead of returning immediately as before.
The deadlock isn't introduced by this PR (Connection.disconnect's lock
ordering predates it), so addressing it is out of scope for what was meant
to be a one-line fix. Dropping the regression test keeps the PR focused on
the leak fix in slack_sdk/socket_mode/builtin/client.py; the maintainer
can add a regression test on their preferred terms (e.g. after also
addressing the deadlock, or by mocking the runners).
Closes the deadlock-induced CI hang reported on PR #1874.1 parent 62b41a8 commit 86e003b
1 file changed
Lines changed: 0 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | 51 | | |
70 | 52 | | |
71 | 53 | | |
| |||
0 commit comments