Skip to content

Migrate airflow-core to httpx2 - #74244

Merged
ashb merged 2 commits into
apache:mainfrom
DataDog:zach.gottesman/core-migrate-to-httpx2
Oct 22, 2026
Merged

ashb merged 2 commits into
apache:mainfrom
DataDog:zach.gottesman/core-migrate-to-httpx2

Conversation

@zach-overflow

@zach-overflow zach-overflow commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

What?

  • Migrates airflow-core's usage of httpx to httpx2, following the general migration guidance here.
  • Stacked off the related task-sdk migration PR (Migrate Task SDK to httpx2 #73116) since there is some code overlap.

Why?

Was generative AI tooling used to co-author this PR?
  • Yes (tool specified below)

Code changes Generated-by: [Claude Code, Opus extra-high effort] following the guidelines

Self-reviewed and adjusted as needed by hand
PR description hand-written

@zach-overflow

zach-overflow commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

Mainly a note to myself: this may require some coordination with #74728 , cc @ephraimbuddy

@zach-overflow
zach-overflow force-pushed the zach.gottesman/core-migrate-to-httpx2 branch from 81be266 to e94c70e Compare October 15, 2026 17:26
@ashb

ashb commented Oct 15, 2026

Copy link
Copy Markdown
Member

Do we need an ast-grep, Ruff has banned imports (I feel I asked this already somewhere else?)

@zach-overflow

zach-overflow commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor Author

Do we need an ast-grep, Ruff has banned imports (I feel I asked this already somewhere else?)

@ashb Ah, yeah you're right that was on my separate PR for migrating the task-sdk from httpx → httpx2, and I forgot to take that into account on this PR which I had stacked off the task-sdk PR early on. Will do the same replace with the ruff banned-imports alternative 👍.

EDIT: replaced ast-grep with the ruff alternative in baf3f27

@zach-overflow
zach-overflow force-pushed the zach.gottesman/core-migrate-to-httpx2 branch 4 times, most recently from d8fce06 to 22c088b Compare October 21, 2026 14:12
@zach-overflow
zach-overflow force-pushed the zach.gottesman/core-migrate-to-httpx2 branch from 22c088b to 1f0a572 Compare October 22, 2026 14:44
Ruff's banned-api rule already covers this, so a separate ast-grep hook only
adds tooling. It also keeps airflow-core consistent with how the Task SDK
enforces the same rule.
@zach-overflow
zach-overflow force-pushed the zach.gottesman/core-migrate-to-httpx2 branch from 1f0a572 to c7c77b4 Compare October 22, 2026 16:18
@ashb

ashb commented Oct 22, 2026

Copy link
Copy Markdown
Member

@vatsrahul1001 I think we should probably merge this and include it in 3.4.0rc1. Any questions or objections?

@ashb ashb added the backport-to-v3-4-test Backport to v3-4-test label Oct 22, 2026
@ashb
ashb merged commit 3b6f02e into apache:main Oct 22, 2026
94 of 97 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-4-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ v3-4-test PR Link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider swapping httpx usage for httpx2

3 participants