Skip to content

Add migration test in CI that initializes Airflow 2.10, upgrades and runs 3.0 migration tests #45479

@ephraimbuddy

Description

@ephraimbuddy

Description

Since we pruned the migration files, we no longer have those other migration files from 2.7.0 downwards, and this means that for tests in CI/dev, we have to reset the DB from ORM. The effect of this is that if you are doing a development and adding a field or a new table, you have to initialize the DB without your changes before Alembic can autogenerate the needed migrations. Else, it sees no changes.

Using breeze to create a DB from airflow 2.10 and then upgrading and running all the migration tests would help in detecting missing fields/tables in the migration files.

Use case/motivation

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

area:CIAirflow's tests and continious integrationarea:db-migrationsPRs with DB migrationkind:featureFeature Requests

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions