Bluetooth-Devices
dbus-fast
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
test: cover transport fallback in aio connect() and sync _setup_socket() Adds two tests exercising the unix -> tcp fallback path: - aio MessageBus.connect() with a multi-transport address where the first entry fails and the next also fails, verifying the loop iterates and raises the last error. - BaseMessageBus._setup_socket() directly, covering the sync fallback path used by the glib bus. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
agners:fix-sync-io-in-messagebus-init
2 days ago
chore(deps-dev): bump pytest-codspeed from 4.3.0 to 4.4.0 (#616) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
main
2 days ago
chore(pre-commit.ci): pre-commit autoupdate (#615) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
main
2 days ago
chore(deps-dev): bump pytest-codspeed from 4.3.0 to 4.4.0 Bumps [pytest-codspeed](https://github.com/CodSpeedHQ/pytest-codspeed) from 4.3.0 to 4.4.0. - [Release notes](https://github.com/CodSpeedHQ/pytest-codspeed/releases) - [Changelog](https://github.com/CodSpeedHQ/pytest-codspeed/blob/master/CHANGELOG.md) - [Commits](https://github.com/CodSpeedHQ/pytest-codspeed/compare/v4.3.0...v4.4.0) --- updated-dependencies: - dependency-name: pytest-codspeed dependency-version: 4.4.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot/pip/pytest-codspeed-4.4.0
3 days ago
chore(pre-commit.ci): pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.10 ā v0.15.11](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.10...v0.15.11)
pre-commit-ci-update-config
3 days ago
fix: parse address before allocating socket in _create_socket_for_transport Move option parsing (unix path/abstract, tcp port conversion) before the socket.socket() and sock.makefile() calls so a malformed address raises InvalidAddressError/ValueError without having allocated any resources to leak. Previously, makefile() was called before validation and the except handler only closed the socket, leaving the stream's refcount on the fd. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
agners:fix-sync-io-in-messagebus-init
3 days ago
fix!: defer socket.connect() from __init__ to connect() in aio MessageBus BREAKING CHANGE: For the aio MessageBus, connection errors are now raised from connect() instead of __init__. Code that catches exceptions from MessageBus() instantiation must be updated to catch them from connect() instead. Previously, BaseMessageBus.__init__() called _setup_socket() which performed a blocking socket.connect() call. This violated async design principles - an async library should not perform blocking I/O in __init__. This caused issues with tools like blockbuster that detect blocking calls in async contexts (e.g., Home Assistant Supervisor). Changes: - BaseMessageBus.__init__() no longer calls _setup_socket(); subclasses are responsible for triggering socket setup. - glib MessageBus.__init__() explicitly calls _setup_socket() to preserve its existing blocking-connect behavior (the glib path is intentionally left unchanged otherwise). - aio MessageBus.connect() now iterates the configured transports, creates a socket for each, and awaits loop.sock_connect(), falling back to the next transport on failure. The unix -> tcp fallback is preserved. - Factored out _create_socket_for_transport() helper so the sync (_setup_socket) and async (connect) paths share transport parsing. - _setup_socket is cpdef so it can be called from Python subclasses. - Added .. versionchanged:: 5.0.0 notes and expanded :raises: on aio MessageBus.connect() and the class docstring. Fixes blocking I/O detection errors like: blockbuster.BlockingError: Blocking call to socket.socket.connect š¤ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
agners:fix-sync-io-in-messagebus-init
6 days ago
chore(pre-commit.ci): pre-commit autoupdate (#614) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
main
6 days ago
Latest Branches
CodSpeed Performance Gauge
0%
fix!: defer socket.connect() from __init__ to connect()
#570
2 days ago
96f11a9
agners:fix-sync-io-in-messagebus-init
CodSpeed Performance Gauge
0%
chore(deps-dev): bump pytest-codspeed from 4.3.0 to 4.4.0
#616
3 days ago
e5c1583
dependabot/pip/pytest-codspeed-4.4.0
CodSpeed Performance Gauge
0%
chore(pre-commit.ci): pre-commit autoupdate
#615
3 days ago
766c8f5
pre-commit-ci-update-config
Ā© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs