Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: avoid loading adapter list twice #1564

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

Merged
merged 2 commits into from
Apr 14, 2025
Merged

Conversation

agners
Copy link
Collaborator

@agners agners commented Apr 10, 2025

Load adapter list only once if operating in dual-stack mode. Also fix typing around adapater list to match what ifaddr defines.

Copy link

codspeed-hq bot commented Apr 10, 2025

CodSpeed Performance Report

Merging #1564 will not alter performance

Comparing load-adapters-only-once (e64d166) with master (389a8a2)

Summary

✅ 6 untouched benchmarks

@agners agners force-pushed the load-adapters-only-once branch from 028d1c3 to 0488d34 Compare April 10, 2025 17:43
Copy link

codecov bot commented Apr 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.79%. Comparing base (389a8a2) to head (e64d166).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1564   +/-   ##
=======================================
  Coverage   99.79%   99.79%           
=======================================
  Files          33       33           
  Lines        3393     3401    +8     
  Branches      463      463           
=======================================
+ Hits         3386     3394    +8     
  Misses          5        5           
  Partials        2        2           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

src/zeroconf/__init__.py Outdated Show resolved Hide resolved
@agners agners force-pushed the load-adapters-only-once branch from 0488d34 to cc4b790 Compare April 10, 2025 21:52
@bdraco bdraco changed the title chore: avoid loading adapter list twice fix: avoid loading adapter list twice Apr 10, 2025
@agners agners force-pushed the load-adapters-only-once branch from cc4b790 to d236934 Compare April 10, 2025 22:13
@agners agners force-pushed the load-adapters-only-once branch from d236934 to 62482d9 Compare April 10, 2025 23:00
@agners agners requested a review from bdraco April 14, 2025 07:59
Load adapter list only once if operating in dual-stack mode. Also
fix typing around adapater list to match what ifaddr defines.
@agners agners force-pushed the load-adapters-only-once branch from 1ae0455 to 3b3887f Compare April 14, 2025 08:02
Copy link
Member

@bdraco bdraco left a comment

Choose a reason for hiding this comment

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

Thanks @agners

@bdraco
Copy link
Member

bdraco commented Apr 14, 2025

Should be good to go once the CI is green

tests/utils/test_net.py Outdated Show resolved Hide resolved
tests/utils/test_net.py Outdated Show resolved Hide resolved
@agners agners force-pushed the load-adapters-only-once branch 2 times, most recently from 18f6091 to a478d24 Compare April 14, 2025 09:03
@bdraco
Copy link
Member

bdraco commented Apr 14, 2025

Only the PR title matters for the the commit messages check since its going to get squashed anyways

@agners agners force-pushed the load-adapters-only-once branch 2 times, most recently from bff2495 to d5a3466 Compare April 14, 2025 09:14
@agners
Copy link
Collaborator Author

agners commented Apr 14, 2025

Only the PR title matters for the the commit messages check since its going to get squashed anyways

Ah whoops, yeah well it's fixed now 😅

Sorry for the churn, was a bit distracted here 🙈

tests/utils/test_net.py Outdated Show resolved Hide resolved
Officially deprecate get_all_addresses and get_all_addresses_v6 in
favor of using ifaddr directly.
@agners agners force-pushed the load-adapters-only-once branch from d5a3466 to e64d166 Compare April 14, 2025 09:18
@agners agners merged commit 8359488 into master Apr 14, 2025
34 checks passed
@agners agners deleted the load-adapters-only-once branch April 14, 2025 09:33
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.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.