Skip to content

Conversation

@chiuinggum
Copy link
Contributor

Why

Note

After this change, the remaining from starlette imports are limited to the following
image


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

Copy link
Collaborator

@sunank200 sunank200 left a comment

Choose a reason for hiding this comment

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

Many tests are failing

except ValueError:
raise HTTPException(
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
status_code=status.HTTP_422_UNPROCESSABLE_CONTENT,
Copy link
Member

Choose a reason for hiding this comment

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

IIRC someone tried this before and it didn’t work

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it was this one: #56564

Copy link
Member

Choose a reason for hiding this comment

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

This can use airflow.api_fastapi.compat.HTTP_422_UNPROCESSABLE_CONTENT instead now.

@uranusjr
Copy link
Member

Are the imports considered equivalent? We should have some references from FastAPI for the import changes.

Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

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

Yes, for some utility functions and classes, FastAPI just re-export the 'starlette' entities for convenience.

I think it's indeed better to use things from FastAPI instead whenever possible.

As long as the CI is happy i'm good with that.

Do you ming fixing the CI please?

@github-actions
Copy link

github-actions bot commented Jan 8, 2026

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added stale Stale PRs per the .github/workflows/stale.yml policy file and removed stale Stale PRs per the .github/workflows/stale.yml policy file labels Jan 8, 2026
@pierrejeambrun
Copy link
Member

@chiuinggum Any chance you can address rebase the PR and fix the CI ?

@pierrejeambrun
Copy link
Member

Closing in favor of #60382 that was merged.

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.

5 participants