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

Restore AsyncResolver to be the default resolver #8522

Merged
merged 2 commits into from
Jul 21, 2024
Merged

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Jul 21, 2024

What do these changes do?

Restore AsyncResolver to be the default resolver

Note that we do not install aiodns on windows because it uses protractor event loop by default, and the DefaultResolver will end up being ThreadedResolver on windows.

Are there changes in behavior for the user?

Reduction in executor jobs and thread switching. This can result in a significant performance boost.

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

no

Related issue number

The AsyncResolver was disabled in 9fbb7d7 because of problems with IPv6 (see #559). This is no longer an issue as the AsyncResolver uses the same underlying getaddrinfo call to match ThreadedResolver. Home Assistant has been using AsyncResolver for months now, and nobody noticed the change over.

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

codecov bot commented Jul 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.64%. Comparing base (38fc33b) to head (a4bedcb).
Report is 914 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8522   +/-   ##
=======================================
  Coverage   97.64%   97.64%           
=======================================
  Files         107      107           
  Lines       33313    33317    +4     
  Branches     3914     3916    +2     
=======================================
+ Hits        32527    32531    +4     
  Misses        568      568           
  Partials      218      218           
Flag Coverage Δ
CI-GHA 97.55% <100.00%> (+<0.01%) ⬆️
OS-Linux 97.21% <100.00%> (-0.01%) ⬇️
OS-Windows 95.65% <66.66%> (-0.01%) ⬇️
OS-macOS 96.87% <100.00%> (-0.01%) ⬇️
Py-3.10.11 97.01% <100.00%> (+<0.01%) ⬆️
Py-3.10.14 96.96% <100.00%> (-0.01%) ⬇️
Py-3.11.9 97.19% <100.00%> (+<0.01%) ⬆️
Py-3.12.4 97.32% <100.00%> (-0.01%) ⬇️
Py-3.8.10 95.41% <66.66%> (-0.01%) ⬇️
Py-3.8.18 96.85% <100.00%> (-0.01%) ⬇️
Py-3.9.13 97.00% <100.00%> (+<0.01%) ⬆️
Py-3.9.19 96.95% <100.00%> (-0.01%) ⬇️
Py-pypy7.3.16 96.52% <100.00%> (-0.01%) ⬇️
VM-macos 96.87% <100.00%> (-0.01%) ⬇️
VM-ubuntu 97.21% <100.00%> (-0.01%) ⬇️
VM-windows 95.65% <66.66%> (-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 July 21, 2024 15:22
@bdraco bdraco requested review from webknjaz and asvetlov as code owners July 21, 2024 15:22
@bdraco bdraco merged commit 5a9e500 into master Jul 21, 2024
38 of 39 checks passed
@bdraco bdraco deleted the async_resolver_default branch July 21, 2024 15:26
Copy link
Contributor

patchback bot commented Jul 21, 2024

Backport to 3.10: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.10/5a9e500633a06648d3ea1627b5056b15b9e7db26/pr-8522

Backported as #8523

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

2 participants