Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update run_*.sh scripts #1443

Merged
merged 1 commit into from Dec 6, 2023
Merged

Conversation

Jamim
Copy link
Contributor

@Jamim Jamim commented Dec 6, 2023

Summary

Hello,

The Maintainers Guide says that no formatter nor code analyzer is involved when you run unit tests, so I suppose black was added by mistake and should be removed.
Also, using set -e allows you to avoid chaining of commands.

I'd like to suggest changes that:

  • remove black from run_*_tests.sh scripts
  • add set -e to unchain commands in scripts
  • simplify handling of a test target

Best regards!

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

  • /scripts
  • slack_sdk.web.WebClient (sync/async) (Web API client)
  • slack_sdk.webhook.WebhookClient (sync/async) (Incoming Webhook, response_url sender)
  • slack_sdk.socket_mode (Socket Mode client)
  • slack_sdk.signature (Request Signature Verifier)
  • slack_sdk.oauth (OAuth Flow Utilities)
  • slack_sdk.models (UI component builders)
  • slack_sdk.scim (SCIM API client)
  • slack_sdk.audit_logs (Audit Logs API client)
  • slack_sdk.rtm_v2 (RTM client)
  • /docs-src (Documents, have you run ./scripts/docs.sh?)
  • /docs-src-v2 (Documents, have you run ./scripts/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 python3 -m venv .venv && source .venv/bin/activate && ./scripts/run_validation.sh after making the changes.

Copy link

codecov bot commented Dec 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (69638bf) 85.59% compared to head (c793768) 85.60%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1443   +/-   ##
=======================================
  Coverage   85.59%   85.60%           
=======================================
  Files         111      111           
  Lines       12128    12128           
=======================================
+ Hits        10381    10382    +1     
+ Misses       1747     1746    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

The Maintainers Guide says that no formatter nor code analyzer
is involved when you run unit tests, so I suppose black was
added by mistake and should be removed.
Also, using set -e allows you to avoid chaining of commands.

These changes:
  * remove black from run_*_tests.sh scripts
  * add set -e to unchain commands in scripts
  * simplify handling of a test target
@seratch seratch added tests M-T: Testing work only Version: 3x labels Dec 6, 2023
@seratch seratch added this to the 3.26.2 milestone Dec 6, 2023
Copy link
Member

@seratch seratch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for refactoring and improving the scripts!

@seratch seratch merged commit 56f7127 into slackapi:main Dec 6, 2023
12 checks passed
@Jamim Jamim deleted the feature/update-run-scripts branch December 6, 2023 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants