iting0321 opened a new pull request, #64905: URL: https://github.com/apache/airflow/pull/64905
Adds a parametrized test that walks every incremental Alembic migration one step at a time **upgrade → downgrade → re-upgrade** to verify all migrations are fully reversible. ## Why: Silent breakage can occur when a downgrade forgets to drop a constraint/column added by its upgrade, or references something that doesn't exist. The existing `test_database_schema_and_sqlalchemy_model_are_in_sync` only checks the final state; it won't catch a broken intermediate step. ## How to test: ```bash uv run --project airflow-core pytest airflow-core/tests/unit/migrations/test_migration_utils.py -xvs ``` Each test ID is the revision hash (e.g. 937cbd173ca1), so a failure points directly to the broken migration. **Was generative AI tooling used to co-author this PR?** - [x] Yes (please specify the tool below) Claude Code following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
