Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Jan 20, 2024

There are some errors for users who still use sqlalchemy 1, where Alembic 1.13.0 wrongly marks some migration as SqlAlchemy 2+

Fixes: #36912


^ 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 newsfragments.

There are some errors for users who still use sqlalchemy 1, where
Alembic 1.13.0 wrongly marks some migration as SqlAlchemy 2+

Fixes: apache#36912
@potiuk potiuk added this to the Airflow 2.8.2 milestone Jan 20, 2024
@potiuk potiuk requested a review from Taragolis January 20, 2024 09:43
@Taragolis
Copy link
Contributor

Maybe we just need to exclude the version which has buggy behavior in SA 1.4?

@potiuk potiuk merged commit 74baebe into apache:main Jan 20, 2024
@potiuk potiuk deleted the add-min-alembic-version-bump branch January 20, 2024 14:43
@potiuk
Copy link
Member Author

potiuk commented Jan 20, 2024

Thought about it and I generally prefer to bump it up in this case. Alembic has generally one purpose - keep our migrations working. And there is rather low probability someone will need a lower version of alembic for something else in airflow environment.

And alembic has very few dependencies and they have low limits in this new version so no risk of other conflicts.

I'd prefer in such cases to bump min versions with lower-binding. This has the nice side effect of people experiencing less bugs and security problems - and risks are IMHO rather low.

potiuk added a commit that referenced this pull request Feb 7, 2024
There are some errors for users who still use sqlalchemy 1, where
Alembic 1.13.0 wrongly marks some migration as SqlAlchemy 2+

Fixes: #36912
(cherry picked from commit 74baebe)
@ephraimbuddy ephraimbuddy added the type:misc/internal Changelog: Misc changes that should appear in change log label Feb 19, 2024
ephraimbuddy pushed a commit that referenced this pull request Feb 22, 2024
There are some errors for users who still use sqlalchemy 1, where
Alembic 1.13.0 wrongly marks some migration as SqlAlchemy 2+

Fixes: #36912
(cherry picked from commit 74baebe)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:misc/internal Changelog: Misc changes that should appear in change log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Airflow 2.8.1 contains migration requiring SQLAlchemy 2+

3 participants