Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump min version of Alembic to 1.13.1 #36928

Merged
merged 1 commit into from
Jan 20, 2024

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
80 checks passed
@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.

flacode pushed a commit to flacode/airflow that referenced this pull request Jan 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: apache#36912
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)
abhishekbhakat pushed a commit to abhishekbhakat/my_airflow that referenced this pull request Mar 5, 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: apache#36912
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