Fix WebSocket related unit test failures#1072
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1072 +/- ##
==========================================
+ Coverage 84.15% 84.19% +0.03%
==========================================
Files 99 99
Lines 9255 9255
==========================================
+ Hits 7789 7792 +3
+ Misses 1466 1463 -3
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Ah, yes, this helps a lot! This unblocked the tests/slack_sdk/socket_mode/test_websocket_client.py test for me. I still have a few failures to work through on my local machine, though. It is the end of my work day but I will look into the failures more deeply tomorrow.
EDIT: summary of my failures on my machine now is:
=============================== short test summary info ================================
FAILED tests/slack_sdk/scim/test_client.py::TestSCIMClient::test_groups - ConnectionR...
FAILED tests/slack_sdk/web/test_web_client.py::TestWebClient::test_issue_690_oauth_access
FAILED tests/web/test_web_client.py::TestWebClient::test_issue_690_oauth_access - Con...
Looks like all due to ConnectionResetByPeer - so perhaps related to that other issue you linked to previously. I will try re-running the tests a few times to see if this is some kind of test instability.
|
Thanks for sharing the details of the errors you've faced.
Implementing auto-retry feature, which is the main feature addition in the next release, will mitigate the issue. I will start working on it shortly. It seems that everything around this pull request looks fine. Let me merge this one. |
Summary
This pull request fixes the test failures for Socket Mode modules: #1071 (comment)
Werkzeug v2 was released in May. Flask-Sockets, the package we use for Socket Mode testing, is not yet compatible with the major version. This pull request updates the build settings to set Werkzeug's major version to 1 for now.
See also: slackapi/bolt-python#340
Category (place an
xin each of the[ ])/docs-src(Documents, have you run./docs.sh?)/docs-src-v2(Documents, have you run./docs-v2.sh?)/tutorial(PythOnBoardingBot tutorial)tests/integration_tests(Automated tests for this library)Requirements (place an
xin each[ ])python3 -m venv .venv && source .venv/bin/activate && ./scripts/run_validation.shafter making the changes.