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

Vendor ipaddress and email.utils; renorm ipv4 and ipv6 types based on updated ipaddress corrections (SYN-5490, SYN-7937) #3902

Merged
merged 22 commits into from
Sep 24, 2024

Conversation

vEpiphyte
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Sep 9, 2024

Codecov Report

Attention: Patch coverage is 95.39267% with 88 lines in your changes missing coverage. Please review.

Project coverage is 96.32%. Comparing base (8fe9226) to head (752e875).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
synapse/vendor/cpython/lib/email/utils.py 83.58% 33 Missing ⚠️
synapse/vendor/cpython/lib/email/_parseaddr.py 91.01% 31 Missing ⚠️
synapse/vendor/cpython/lib/ipaddress.py 98.43% 15 Missing ⚠️
...ynapse/vendor/cpython/lib/test/support/__init__.py 87.69% 8 Missing ⚠️
...e/vendor/cpython/lib/test/test_email/test_utils.py 99.10% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           master    #3902     +/-   ##
=========================================
  Coverage   96.31%   96.32%             
=========================================
  Files         245      252      +7     
  Lines       54822    58329   +3507     
=========================================
+ Hits        52802    56185   +3383     
- Misses       2020     2144    +124     
Flag Coverage Δ
linux 96.32% <95.39%> (+0.08%) ⬆️
linux_replay ?

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.

MichaelSquires
MichaelSquires previously approved these changes Sep 14, 2024
@vEpiphyte vEpiphyte marked this pull request as ready for review September 20, 2024 13:40
@vEpiphyte vEpiphyte added this to the v2.181.0 milestone Sep 20, 2024
@vEpiphyte vEpiphyte changed the title Preliminary updates based on CPython 3.11.10 changes (SYN-5490, SYN-7937) Vendor ipaddres.py and email.utils; renorm ipv4 and ipv6 types based on updated ipaddress corrects (SYN-5490, SYN-7937) Sep 20, 2024
@vEpiphyte vEpiphyte changed the title Vendor ipaddres.py and email.utils; renorm ipv4 and ipv6 types based on updated ipaddress corrects (SYN-5490, SYN-7937) Vendor ipaddress and email.utils; renorm ipv4 and ipv6 types based on updated ipaddress corrects (SYN-5490, SYN-7937) Sep 20, 2024
@MichaelSquires
Copy link
Contributor

Should we be counting test coverage in vendored code?

@vEpiphyte
Copy link
Contributor Author

@MichaelSquires Let me add their unit tests and make them subclass the VendorTest helper 👍

Copy link
Contributor

@Cisphyx Cisphyx left a comment

Choose a reason for hiding this comment

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

Looks like we're picking up the vendor test files in coverage, should we add synapse/vendor/**/test_*.py to the omit in .coveragerc ?

@vEpiphyte
Copy link
Contributor Author

@Cisphyx I removed some of the tests that we'll never run ( osx 10.7 tests... ) and their associated helpers. I actually don't mind having coverage reporting for those vendored tests as it does give us insight into what behaviors the original authors have / had from their original files.

Cisphyx
Cisphyx previously approved these changes Sep 23, 2024
@vEpiphyte vEpiphyte changed the title Vendor ipaddress and email.utils; renorm ipv4 and ipv6 types based on updated ipaddress corrects (SYN-5490, SYN-7937) Vendor ipaddress and email.utils; renorm ipv4 and ipv6 types based on updated ipaddress corrections (SYN-5490, SYN-7937) Sep 24, 2024
@vEpiphyte vEpiphyte merged commit aafa96f into master Sep 24, 2024
4 of 5 checks passed
@vEpiphyte vEpiphyte deleted the feat_python311_compat branch September 24, 2024 15:32
@vEpiphyte
Copy link
Contributor Author

Related cpython issue python/cpython#113171

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.

3 participants