You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ashb (via GitHub)" <gi...@apache.org> on 2025/04/09 09:23:30 UTC
[I] Integrate `alembic check` into CI to check for model changes without a matching migration [airflow]
ashb opened a new issue, #48998:
URL: https://github.com/apache/airflow/issues/48998
### Body
Since Alembic 1.9 it has had a built in command to check if there are changes to the models that don't have a migration: https://alembic.sqlalchemy.org/en/latest/autogenerate.html#alembic-check
> When developing code it’s useful to know if a set of code changes has made any net change to the database model, such that new revisions would need to be generated. To automate this, Alembic provides the alembic check command. This command will run through the same process as alembic revision --autogenerate, up until the point where revision files would be generated, however does not generate any new files. Instead, it returns an error code plus a message if it is detected that new operations would be rendered into a new revision, or if not, returns a success code plus a message. When alembic check returns a success code, this is an indication that the alembic revision --autogenerate command would produce only empty migrations, and does not need to be run.
We should add this somewhere in our CI pipeline. We've already got some CI jobs that do upgrade and downgrade, adding this to that workflow seems like a good idea
### Committer
- [x] I acknowledge that I am a maintainer/committer of the Apache Airflow project.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Integrate `alembic check` into CI to check for model changes without a matching migration [airflow]
Posted by "guan404ming (via GitHub)" <gi...@apache.org>.
guan404ming commented on issue #48998:
URL: https://github.com/apache/airflow/issues/48998#issuecomment-2789009104
Hi, could I work on this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Integrate `alembic check` into CI to check for model changes without a matching migration [airflow]
Posted by "jason810496 (via GitHub)" <gi...@apache.org>.
jason810496 closed issue #48998: Integrate `alembic check` into CI to check for model changes without a matching migration
URL: https://github.com/apache/airflow/issues/48998
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Integrate `alembic check` into CI to check for model changes without a matching migration [airflow]
Posted by "guan404ming (via GitHub)" <gi...@apache.org>.
guan404ming commented on issue #48998:
URL: https://github.com/apache/airflow/issues/48998#issuecomment-2821052437
Currently not, there are still some bug in ci for my PR, if u could help out that would be nice though
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Integrate `alembic check` into CI to check for model changes without a matching migration [airflow]
Posted by "ashb (via GitHub)" <gi...@apache.org>.
ashb commented on issue #48998:
URL: https://github.com/apache/airflow/issues/48998#issuecomment-2789219092
@guan404ming Feel free -- just open a PR with the `closes #48998` in the PR desc!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Integrate `alembic check` into CI to check for model changes without a matching migration [airflow]
Posted by "adnanhashmi25 (via GitHub)" <gi...@apache.org>.
adnanhashmi25 commented on issue #48998:
URL: https://github.com/apache/airflow/issues/48998#issuecomment-2820906108
Is this issue resolved ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Integrate `alembic check` into CI to check for model changes without a matching migration [airflow]
Posted by "guan404ming (via GitHub)" <gi...@apache.org>.
guan404ming commented on issue #48998:
URL: https://github.com/apache/airflow/issues/48998#issuecomment-2789233548
Thanks~ I've opened one PR towards this issue!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org