Skip to content

Improve SQLite test DB health checks#68021

Open
henry3260 wants to merge 1 commit into
apache:mainfrom
henry3260:fix-sqlite-test-db-health-check
Open

Improve SQLite test DB health checks#68021
henry3260 wants to merge 1 commit into
apache:mainfrom
henry3260:fix-sqlite-test-db-health-check

Conversation

@henry3260
Copy link
Copy Markdown
Contributor

@henry3260 henry3260 commented Jun 4, 2026

Why

User can end up with a stale local SQLite test DB after migration squashes, reverts, or schema changes.
Before this change, pytest could skip DB initialization just because the marker file existed, even when the SQLite DB no longer matched the current Airflow metadata or migration heads.

That left contributors with confusing test failures and often required manually figuring out that the local SQLite DB needed to be removed or recreated.

closes : #44377

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@henry3260 henry3260 force-pushed the fix-sqlite-test-db-health-check branch from 729f640 to ec130dc Compare June 4, 2026 18:10
@henry3260 henry3260 marked this pull request as ready for review June 5, 2026 15:43
@henry3260
Copy link
Copy Markdown
Contributor Author

cc @potiuk I'd love to get your thoughts on this when you have a moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Better dev db auto-maintenance

1 participant