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

Websocket codes #1403

Merged
merged 5 commits into from
May 16, 2023
Merged

Websocket codes #1403

merged 5 commits into from
May 16, 2023

Conversation

LordOfPolls
Copy link
Contributor

Pull Request Type

  • Feature addition
  • Bugfix
  • Documentation update
  • Code refactor
  • Tests improvement
  • CI/CD pipeline enhancement
  • Other: [Replace with a description]

Description

Creating on behalf of @zevaryx.
This PR marks additional gateway close codes as recoverable/resumable.

to be clear

If your bot is online 24/7 you need a process manager like docker, systemd or whatever. Do NOT rely on the library to automatically restart itself. The library certainly tries to recover, but the internet is a scary place

Changes

  • As above
  • Adds a sanity check for development to ensure resumable is a subset of recoverable

Related Issues

Test Scenarios

Python Compatibility

  • I've ensured my code works on Python 3.10.x
  • I've ensured my code works on Python 3.11.x

Checklist

  • I've run the pre-commit code linter over all edited files
  • I've tested my changes on supported Python versions
  • I've added tests for my code, if applicable
  • I've updated / added documentation, where applicable

@LordOfPolls LordOfPolls enabled auto-merge (squash) May 14, 2023 08:13
Co-authored-by: AlbertUnruh <73029826+AlbertUnruh@users.noreply.github.com>
Signed-off-by: LordOfPolls <dev@lordofpolls.com>
@codecov-commenter
Copy link

codecov-commenter commented May 14, 2023

Codecov Report

Patch coverage: 57.14% and project coverage change: -0.01 ⚠️

Comparison is base (4a661d9) 60.32% compared to head (1d82fd3) 60.32%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #1403      +/-   ##
============================================
- Coverage     60.32%   60.32%   -0.01%     
============================================
  Files           139      139              
  Lines         14633    14638       +5     
============================================
+ Hits           8828     8830       +2     
- Misses         5805     5808       +3     
Impacted Files Coverage Δ
interactions/client/const.py 89.36% <57.14%> (-2.78%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@AlbertUnruh
Copy link
Contributor

besides my suggestions it looks good to me, but I won't approve it since I don't know the codes and whether they are correct or not

Co-authored-by: AlbertUnruh <73029826+AlbertUnruh@users.noreply.github.com>
Signed-off-by: LordOfPolls <dev@lordofpolls.com>
@LordOfPolls
Copy link
Contributor Author

Merging without approval due to importance of this PR

@LordOfPolls LordOfPolls disabled auto-merge May 16, 2023 06:18
@LordOfPolls LordOfPolls merged commit af5989d into unstable May 16, 2023
@LordOfPolls LordOfPolls deleted the websocket_codes branch May 16, 2023 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants