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

Make raw_host and port cached_property #1044

Merged
merged 14 commits into from
Aug 19, 2024
Merged

Make raw_host and port cached_property #1044

merged 14 commits into from
Aug 19, 2024

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Jul 29, 2024

What do these changes do?

aiohttp accesses these properties quite often because of the calls to is_absolute/update_headers and urllib has to reparse _hostinfo each time.

Are there changes in behavior for the user?

No

port
raw_host

aiohttp accesses these properties quite often because of the
calls to is_absolute and urllib has to reparse _hostinfo
each time
Copy link

codecov bot commented Jul 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.36%. Comparing base (5e3d895) to head (d285b70).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1044   +/-   ##
=======================================
  Coverage   62.36%   62.36%           
=======================================
  Files          38       38           
  Lines        6616     6616           
  Branches      356      356           
=======================================
  Hits         4126     4126           
  Misses       2463     2463           
  Partials       27       27           
Flag Coverage Δ
CI-GHA 62.33% <100.00%> (ø)
MyPy 25.57% <100.00%> (-0.02%) ⬇️
OS-Linux 99.25% <100.00%> (ø)
OS-Windows 99.58% <100.00%> (ø)
OS-macOS 99.01% <100.00%> (ø)
Py-3.10.11 98.90% <100.00%> (ø)
Py-3.10.14 99.10% <100.00%> (ø)
Py-3.11.9 99.10% <100.00%> (ø)
Py-3.12.4 99.10% <100.00%> (ø)
Py-3.13.0-rc.1 99.10% <100.00%> (ø)
Py-3.8.10 98.87% <100.00%> (ø)
Py-3.8.18 99.07% <100.00%> (ø)
Py-3.9.13 98.87% <100.00%> (ø)
Py-3.9.19 99.07% <100.00%> (ø)
Py-pypy7.3.11 99.39% <100.00%> (ø)
Py-pypy7.3.16 99.42% <100.00%> (ø)
VM-macos-latest 99.01% <100.00%> (ø)
VM-ubuntu-latest 99.25% <100.00%> (ø)
VM-windows-latest 99.58% <100.00%> (ø)

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
Copy link
Member Author

bdraco commented Jul 29, 2024

@bdraco bdraco marked this pull request as ready for review July 29, 2024 01:14
CHANGES/1044.misc.rst Outdated Show resolved Hide resolved
CHANGES/1044.misc.rst Outdated Show resolved Hide resolved
yarl/_url.py Show resolved Hide resolved
bdraco and others added 2 commits August 14, 2024 07:03
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <webknjaz@redhat.com>
CHANGES/1044.misc.rst Outdated Show resolved Hide resolved
@bdraco
Copy link
Member Author

bdraco commented Aug 14, 2024

I tried to fix the chronographer in #1053 but it looks like its coming in from the org level and not in the github config so its not something I have access to solve.

@bdraco
Copy link
Member Author

bdraco commented Aug 14, 2024

It looks like changelog checks haven't been working for a while per #954 (comment)

@bdraco
Copy link
Member Author

bdraco commented Aug 14, 2024

Added skip label as a workaround since changelog bot is currently not working

@bdraco bdraco added the bot:chronographer:skip This PR does not need to include a change note label Aug 14, 2024
@bdraco
Copy link
Member Author

bdraco commented Aug 14, 2024

Screenshot 2024-08-14 at 9 58 09 AM

@bdraco bdraco enabled auto-merge (squash) August 19, 2024 20:09
@bdraco bdraco merged commit f0e2d8a into master Aug 19, 2024
45 of 48 checks passed
@bdraco bdraco deleted the cache_port_hostname branch August 19, 2024 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

2 participants