Migrate google + pagerduty providers to httpx2 - #72111
Draft
zach-overflow wants to merge 2 commits into
Draft
Conversation
The `httpx` package is unmaintained and Airflow is moving to the `httpx2` fork. The anthropic SDK made that jump in 1.0.0, so the provider's tests were building SDK errors from a package the client no longer uses; raising the floor keeps the two in step and lifts the `<1.0.0` cap added while 1.x was unvalidated. The ast-grep rule stops the migrated providers from regressing. It exempts `airbyte`, `common/ai`, `weaviate` and `microsoft/azure`, whose third-party SDKs are still built on `httpx` -- their objects cross that boundary, and the two packages' classes are distinct, so switching them would break at runtime rather than fail loudly.
zach-overflow
force-pushed
the
zo/initial-httpx2-support
branch
from
August 27, 2026 17:12
d59a68b to
9f5c64d
Compare
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.
What?
Modifies these provider package' dependency on
httpx→httpx2:apache-airflow-providers-googleapache-airflow-providers-pagerdutyAdds comments on remaining providers which have
httpxreferences which cannot cleanly be removed until their deps are updated.[todo] Adds a pre-commit check to prevent re-introducing httpx in any additional provider packages. Runs via
ast-grepfor super fast import checks.Why?
httpxusage forhttpx2#70522Was generative AI tooling used to co-author this PR?
httpxusage, and claude did the per-file import replacementsast-grep+ verified in IDE).{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.