Repository navigation
Conversation
This was referenced Sep 12, 2026
Fizzadar
force-pushed
the
v4/asyncio-test
branch
from
September 17, 2026 20:57
d293791 to
d877489
Compare
Fizzadar
force-pushed
the
v4/asyncio-test
branch
3 times, most recently
from
September 21, 2026 20:01
a5f68de to
da9b3f8
Compare
This was referenced Oct 14, 2026
wowi42
requested changes
Nov 1, 2026
Collaborator
There was a problem hiding this comment.
This is a large migration, and the current head has a host key handling issue and merge conflicts. It needs to be split and rebased before another review.
Issues
src/pyinfra/connectors/ssh.py:275-311appliesssh_connect_kwargsand then replacesknown_hostsandclient_factory.src/pyinfra/connectors/ssh_hostkeys.py:32-51maps valid AsyncSSH values such as in-memory bytes, callables, and loaded host key data to the default known hosts path. For example,ssh_connect_kwargs={"known_hosts": pinned_bytes}silently dropspinned_bytes. Withaccept-new, pyinfra can then trust and save a different key. Preserve these overrides or reject unsupported values, and add coverage for them.- The PR conflicts with
3.x: GitHub reportsmergeable=CONFLICTINGandmergeStateStatus=DIRTY. Rebase and rerun CI before merge. uv.lockis included with unrelated lock regeneration and dependency removals. Drop the lockfile update from this PR.pyproject.toml:24-25addsgreenlet>=3andasyncssh[bcrypt]>=2.21without upper bounds. Add major version upper bounds.- The scope is not atomic. The 58-file change combines the public API migration, CLI rewrite, AsyncSSH migration, and the async reboot operation. Split the core and CLI migration from the SSH library replacement.
Notes
- Open PR #1482 covers the same asyncio and AsyncSSH migration. Mark it as superseded or explain how the two PRs relate.
- The PR body has no test plan or AI-use disclosure.
Done at PyCon FR.
8 of 9 tasks
This migrates the public pyinfra API to asyncio. Operations and callbacks may now be either sync or async functions and context is maintained using greenlets (not gevent). Also sets up support for parallel deploys as state/inventory now become local context vars.
Fizzadar
force-pushed
the
v4/asyncio-test
branch
from
November 20, 2026 13:10
da9b3f8 to
ea1373c
Compare
6 tasks done
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For rebasing, each commit builds on the other. First commit is the real change everything else builds off it. Most exciting is 13a0a9c which replaces paramiko w/asyncssh!