Link to Contributor's Guide from README + expand Maintainer's Guide#1071
Link to Contributor's Guide from README + expand Maintainer's Guide#1071
Conversation
…ore details on virtual env setup. Mirror Maintainer Guide steps as closely to CI execution as possible. (#1070)
Codecov Report
@@ Coverage Diff @@
## main #1071 +/- ##
=======================================
Coverage 84.14% 84.14%
=======================================
Files 99 99
Lines 9239 9239
=======================================
Hits 7774 7774
Misses 1465 1465 Continue to review full report at Codecov.
|
|
|
||
| - [x] You must have signed the [Contributor License Agreement (CLA)](https://cla-assistant.io/slackapi/python-slack-sdk). | ||
| - [x] The test suite must be complete and pass. | ||
| - [x] The test suite must be complete and pass (see the [Maintainer's Guide](./maintainers_guide.md) for details on how to run the tests). |
There was a problem hiding this comment.
Haha I see you did do this (i just mentioned it as a comment on the issue thread)
.github/maintainers_guide.md
Outdated
|
|
||
| ```bash | ||
| python setup.py validate # run all | ||
| PYTHON_SLACK_SDK_MOCK_SERVER_MODE="threading" CI_UNSTABLE_TESTS_SKIP_ENABLED="1" python setup.py validate # run all |
There was a problem hiding this comment.
Did you pull this from the github action?
There was a problem hiding this comment.
Without these env vars the tests fail for me locally
There was a problem hiding this comment.
What error do you face? CI_UNSTABLE_TESTS_SKIP_ENABLED is a workaround only for GitHub Actions env (I was not able to find any solution for it at the time). I don't recommend enabling this for local development. If the error is 100% reproducible on your local env, we should fix the issue.
There was a problem hiding this comment.
OK, I will revert this change in the docs then. Should I file a separate issue for test failures? The short summary is that the tests remain stuck at this point of the output if I run without these env vars:
tests/slack_sdk/socket_mode/test_interactions_builtin.py .F [ 47%]
tests/slack_sdk/socket_mode/test_interactions_websocket_client.py
There was a problem hiding this comment.
I can run the tests individually / separately per file to collect the log output, too, but perhaps a separate issue would be a better venue for that.
There was a problem hiding this comment.
.github/maintainers_guide.md
Outdated
|
|
||
| ```bash | ||
| python setup.py validate # run all | ||
| PYTHON_SLACK_SDK_MOCK_SERVER_MODE="threading" CI_UNSTABLE_TESTS_SKIP_ENABLED="1" python setup.py validate # run all |
There was a problem hiding this comment.
What error do you face? CI_UNSTABLE_TESTS_SKIP_ENABLED is a workaround only for GitHub Actions env (I was not able to find any solution for it at the time). I don't recommend enabling this for local development. If the error is 100% reproducible on your local env, we should fix the issue.
Summary
This PR fixes #1070 by:
travis.ymland all references to travis from the Maintainer's GuideCategory (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.