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

Small cleanups to the websocket frame sender #8933

Merged
merged 4 commits into from
Sep 1, 2024
Merged

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Aug 29, 2024

What do these changes do?

  • Add some comments about what is going on in _send_frame
  • Avoid fetch the len() in a few places where its a fixed value and already known

Are there changes in behavior for the user?

no

Is it a substantial burden for the maintainers to support this?

no

- Add some comments about what is going on in _send_frame
  since much of the logic is not obvious
- Avoid fetch the len() in a few places where its a fixed
  value and already known
- Add some comments about what is going on in _send_frame
  since much of the logic is not obvious
- Avoid fetch the len() in a few places where its a fixed
  value and already known
- Add some comments about what is going on in _send_frame
  since much of the logic is not obvious
- Avoid fetch the len() in a few places where its a fixed
  value and already known
@bdraco bdraco added backport-3.10 Trigger automatic backporting to the 3.10 release branch by Patchback robot backport-3.11 Trigger automatic backporting to the 3.11 release branch by Patchback robot bot:chronographer:skip This PR does not need to include a change note labels Aug 29, 2024
- Add some comments about what is going on in _send_frame
  since much of the logic is not obvious
- Avoid fetch the len() in a few places where its a fixed
  value and already known
Copy link

codecov bot commented Aug 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.25%. Comparing base (1575360) to head (a7350cb).
Report is 19 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8933   +/-   ##
=======================================
  Coverage   98.25%   98.25%           
=======================================
  Files         107      107           
  Lines       34136    34139    +3     
  Branches     4048     4047    -1     
=======================================
+ Hits        33541    33544    +3     
  Misses        421      421           
  Partials      174      174           
Flag Coverage Δ
CI-GHA 98.15% <100.00%> (+<0.01%) ⬆️
OS-Linux 97.81% <100.00%> (+<0.01%) ⬆️
OS-Windows 96.21% <100.00%> (+<0.01%) ⬆️
OS-macOS 97.48% <100.00%> (+<0.01%) ⬆️
Py-3.10.11 97.58% <100.00%> (+<0.01%) ⬆️
Py-3.10.14 97.51% <100.00%> (+<0.01%) ⬆️
Py-3.11.9 97.74% <100.00%> (+<0.01%) ⬆️
Py-3.12.5 97.86% <100.00%> (+<0.01%) ⬆️
Py-3.9.13 97.47% <100.00%> (+<0.01%) ⬆️
Py-3.9.19 97.41% <100.00%> (+<0.01%) ⬆️
Py-pypy7.3.16 97.02% <100.00%> (+<0.01%) ⬆️
VM-macos 97.48% <100.00%> (+<0.01%) ⬆️
VM-ubuntu 97.81% <100.00%> (+<0.01%) ⬆️
VM-windows 96.21% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@bdraco bdraco marked this pull request as ready for review August 30, 2024 19:49
@bdraco bdraco requested a review from asvetlov as a code owner August 30, 2024 19:49
@bdraco bdraco merged commit 8f3b1f4 into master Sep 1, 2024
34 of 35 checks passed
@bdraco bdraco deleted the websocket_frame_sender branch September 1, 2024 23:14
Copy link
Contributor

patchback bot commented Sep 1, 2024

Backport to 3.10: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.10/8f3b1f445ab481a928795577ae0132a04696f4af/pr-8933

Backported as #8978

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

Copy link
Contributor

patchback bot commented Sep 1, 2024

Backport to 3.11: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.11/8f3b1f445ab481a928795577ae0132a04696f4af/pr-8933

Backported as #8979

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Sep 1, 2024
bdraco added a commit that referenced this pull request Sep 1, 2024
…ame sender (#8978)

Co-authored-by: J. Nick Koston <nick@koston.org>
bdraco added a commit that referenced this pull request Sep 1, 2024
…ame sender (#8979)

Co-authored-by: J. Nick Koston <nick@koston.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-3.10 Trigger automatic backporting to the 3.10 release branch by Patchback robot backport-3.11 Trigger automatic backporting to the 3.11 release branch by Patchback robot bot:chronographer:skip This PR does not need to include a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant