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

Fix refactoring error from moving WebSocket mask #9558

Merged
merged 3 commits into from
Oct 28, 2024
Merged

Fix refactoring error from moving WebSocket mask #9558

merged 3 commits into from
Oct 28, 2024

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Oct 28, 2024

#9543 missed changing the import when the code was relocated. Fix the import and adjust the test to confirm the import works. This only affected the writer since the reader now cimports the mask code.

Performance tests did not catch it because the benchmarks do not use masking. A new benchmark will be added in #9559

@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Oct 28, 2024
Copy link

codspeed-hq bot commented Oct 28, 2024

CodSpeed Performance Report

Merging #9558 will improve performances by ×2.9

Comparing mask (f4a6e2c) with master (50656ca)

Summary

⚡ 1 improvements
✅ 4 untouched benchmarks

Benchmarks breakdown

Benchmark master mask Change
test_send_one_hundred_websocket_text_messages_with_mask[pyloop] 2,367.2 µs 804.6 µs ×2.9

@bdraco bdraco added the backport-3.11 Trigger automatic backporting to the 3.11 release branch by Patchback robot label Oct 28, 2024
@bdraco bdraco changed the title Fix refactoring error when moving WebSocket mask Fix refactoring error from moving WebSocket mask Oct 28, 2024
Copy link

codecov bot commented Oct 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.60%. Comparing base (50656ca) to head (f4a6e2c).
Report is 615 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9558      +/-   ##
==========================================
+ Coverage   98.58%   98.60%   +0.01%     
==========================================
  Files         113      113              
  Lines       35265    35266       +1     
  Branches     4188     4188              
==========================================
+ Hits        34765    34773       +8     
+ Misses        338      331       -7     
  Partials      162      162              
Flag Coverage Δ
CI-GHA 98.48% <100.00%> (+0.01%) ⬆️
OS-Linux 98.15% <100.00%> (+0.01%) ⬆️
OS-Windows 96.05% <100.00%> (+0.02%) ⬆️
OS-macOS 97.37% <100.00%> (+0.01%) ⬆️
Py-3.10.11 97.23% <100.00%> (+0.01%) ⬆️
Py-3.10.15 97.64% <100.00%> (+0.01%) ⬆️
Py-3.11.10 97.71% <100.00%> (+0.01%) ⬆️
Py-3.11.9 97.31% <100.00%> (+0.02%) ⬆️
Py-3.12.7 98.19% <100.00%> (+0.01%) ⬆️
Py-3.13.0 98.18% <100.00%> (+0.01%) ⬆️
Py-3.9.13 97.14% <100.00%> (+0.01%) ⬆️
Py-3.9.20 97.54% <100.00%> (+0.01%) ⬆️
Py-pypy7.3.16 97.17% <0.00%> (-0.01%) ⬇️
VM-macos 97.37% <100.00%> (+0.01%) ⬆️
VM-ubuntu 98.15% <100.00%> (+0.01%) ⬆️
VM-windows 96.05% <100.00%> (+0.02%) ⬆️

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 October 28, 2024 10:11
@bdraco bdraco enabled auto-merge (squash) October 28, 2024 10:12
@bdraco bdraco merged commit 0a70662 into master Oct 28, 2024
37 of 38 checks passed
@bdraco bdraco deleted the mask branch October 28, 2024 10:31
Copy link
Contributor

patchback bot commented Oct 28, 2024

Backport to 3.11: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.11/0a706625ba43e34f734156a03699fc93d2b10180/pr-9558

Backported as #9563

🤖 @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 Oct 28, 2024
bdraco added a commit that referenced this pull request Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-3.11 Trigger automatic backporting to the 3.11 release branch by Patchback robot bot:chronographer:provided There is a change note present in this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant