The GitHub Actions job "Tests" on airflow.git/main has failed. Run started by GitHub user potiuk (triggered by jscheffl).
Head commit for run: 7c633b6f8f66681599387d0fbf564c3301eba829 / Jed Cunningham <[email protected]> Fix RESOURCE_ASSET compatibility with Airflow 2.x in common-compat (#64933) PR #63335 hardcoded RESOURCE_ASSET = "Assets" in this compat module, which broke Airflow 2.x deployments. In Airflow 2.x, the equivalent resource is named "Datasets" (RESOURCE_DATASET), not "Assets". apache-airflow-providers-fab imports RESOURCE_ASSET from this module at runtime (via the `else` branch of an `if TYPE_CHECKING` block). When RESOURCE_ASSET resolves to "Assets" instead of "Datasets", it creates duplicate "Assets" and "Datasets" resource types for upgraded instances. And worse "Assets", which dont even exist in AF2, are used for auth checks. This also breaks any custom roles. Fix: use AIRFLOW_V_3_0_PLUS to return the correct value for each version, falling back to RESOURCE_DATASET from airflow.security.permissions (which is not deprecated in Airflow 2.x) for the Airflow 2.x case. Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]> Report URL: https://github.com/apache/airflow/actions/runs/24298620739 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
