The GitHub Actions job "Tests" on airflow.git/fix-58058 has failed. Run started by GitHub user atulksin (triggered by guan404ming).
Head commit for run: 63673eb24dd66c58b619d89682100ef44a6caff9 / Atul <[email protected]> Fix: Make dynamically created assets with AssetAlias visible in UI Issue: #58058 Problem: When tasks yield Metadata with AssetAlias, the dynamically created assets do not appear in the Assets tab of the Airflow UI, even though the assets are correctly created and asset events are generated. Root Cause: The Assets UI tab uses OnlyActiveFilter which only shows assets that have a corresponding AssetActive record. Dynamic asset creation was only creating AssetModel records but not AssetActive records, making them invisible in the UI. Solution: - Add AssetActive import to taskinstance.py - Modify dynamic asset creation to create both AssetModel and AssetActive records - Use AssetActive.for_asset() to ensure proper association - Update test expectations to reflect that dynamically created assets are now active - Add comprehensive test to verify UI visibility Changes: - airflow/models/taskinstance.py: Add AssetActive creation for dynamic assets - tests/unit/models/test_taskinstance.py: Update tests and add UI visibility test Result: Dynamic assets with AssetAliases now properly appear in the Assets tab of the UI. Report URL: https://github.com/apache/airflow/actions/runs/19200251336 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
