The GitHub Actions job "Tests (AMD)" on airflow.git/fix-db-clean-callback-table 
has failed.
Run started by GitHub user steveahnahn (triggered by steveahnahn).

Head commit for run:
31f5e16f706d59a6b60a7dac26fecf960fe2b49d / Steve Ahn 
<[email protected]>
Purge orphaned partitioned_asset_key_log rows and restore the db clean coverage 
check

The check that is meant to catch a metadata table being left out of
airflow db clean looked for the models package at a path relative to the
test file. That path stopped resolving when the sources moved under
airflow-core, so the check examined no models at all and its assertions
held trivially for an empty set. It has not been able to report a missing
table since, which is how the callback table went unpurged for several
releases.

Walking the package's own search path instead keeps the check working
wherever the sources live, and asserting that models were found stops it
from passing on an empty set again.

With the check restored, partitioned_asset_key_log is the one table it
reports that genuinely has no way to be purged: it carries no foreign
key, so its rows are left behind when the partition Dag run they describe
is cascade-deleted with its dag_run. Only those orphans are deleted --
rows whose partition Dag run still exists are the evidence the scheduler
evaluates to decide when that pending run fires, so they are kept
regardless of age. The other uncovered tables are recorded in the
exclusion list with the reason each is safe.

Report URL: https://github.com/apache/airflow/actions/runs/30922944852

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to