You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jobs@airflow.apache.org by GitBox <gi...@apache.org> on 2026/04/09 00:36:40 UTC

[GH] (airflow/fix_common_compat_af2): Workflow run "Tests" failed!

The GitHub Actions job "Tests" on airflow.git/fix_common_compat_af2 has failed.
Run started by GitHub user jedcunningham (triggered by jedcunningham).

Head commit for run:
d5a7eda248eec43685c2a8896186b5018a7ab59e / Jed Cunningham <je...@apache.org>
Fix RESOURCE_ASSET compatibility with Airflow 2.x in common-compat

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) <no...@anthropic.com>

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

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: jobs-unsubscribe@airflow.apache.org
For additional commands, e-mail: jobs-help@airflow.apache.org