Skip to content

Fix #808 Improve the stability of mock servers in tests#929

Merged
seratch merged 1 commit intoslackapi:mainfrom
seratch:issue-808-test-stability
Jan 27, 2021
Merged

Fix #808 Improve the stability of mock servers in tests#929
seratch merged 1 commit intoslackapi:mainfrom
seratch:issue-808-test-stability

Conversation

@seratch
Copy link
Copy Markdown
Contributor

@seratch seratch commented Jan 27, 2021

Summary

This pull request improves the stability of mock servers in the unit tests - fixes #808 This benefits test execution on macOS a lot. After merging this PR, mock servers in tests run in separate processes (utilizing multiprocessing over threading). For the CI build environment, we continue using threading for the runtime as before (because it's more stable when running on GitHub Actions runtime).

Category (place an x in each of the [ ])

  • slack_sdk.web.WebClient (sync/async) (Web API client)
  • slack_sdk.webhook.WebhookClient (sync/async) (Incoming Webhook, response_url sender)
  • slack_sdk.models (UI component builders)
  • slack_sdk.oauth (OAuth Flow Utilities)
  • slack_sdk.socket_mode (Socket Mode client)
  • slack_sdk.rtm.RTMClient (RTM client)
  • slack_sdk.signature (Request Signature Verifier)
  • /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 x in each [ ])

  • I've read and understood the Contributing Guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've run python setup.py validate after making the changes.

@seratch seratch added tests M-T: Testing work only Version: 3x labels Jan 27, 2021
@seratch seratch added this to the 3.2.2 milestone Jan 27, 2021
@seratch seratch self-assigned this Jan 27, 2021
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 27, 2021

Codecov Report

Merging #929 (0c56ebc) into main (ead2c47) will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #929      +/-   ##
==========================================
+ Coverage   86.46%   86.48%   +0.02%     
==========================================
  Files          51       51              
  Lines        4618     4618              
==========================================
+ Hits         3993     3994       +1     
+ Misses        625      624       -1     
Impacted Files Coverage Δ
slack_sdk/socket_mode/aiohttp/__init__.py 81.20% <ø> (ø)
slack_sdk/socket_mode/websocket_client/__init__.py 87.69% <0.00%> (-0.77%) ⬇️
slack_sdk/socket_mode/websockets/__init__.py 90.19% <0.00%> (+0.98%) ⬆️
slack_sdk/oauth/state_store/sqlite3/__init__.py 87.69% <0.00%> (+1.53%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ead2c47...0c56ebc. Read the comment docs.

@seratch seratch merged commit 08c6f0f into slackapi:main Jan 27, 2021
@seratch seratch deleted the issue-808-test-stability branch January 27, 2021 20:56
@seratch seratch modified the milestones: 3.2.2, 3.3.0 Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests M-T: Testing work only Version: 3x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve the stability of mock servers in tests

2 participants