The GitHub Actions job "Tests (AMD)" on airflow.git/fix-tasks-clear-regex has failed. Run started by GitHub user jni-bot (triggered by potiuk).
Head commit for run: c261fefd3d47ab070a01277fbdedfea10ffc17f3 / jni-bot <[email protected]> Fix `tasks clear --dag-regex` AttributeError on SDK DAG The regex branch of `get_dags` ignored `from_db=True` and built a `BundleDagBag` off disk, returning SDK `DAG` objects. `task_clear` then calls `SerializedDAG.clear_dags`, which calls `.clear()` on each — a method that only exists on `SerializedDAG`. Result: AttributeError: 'DAG' object has no attribute 'clear' The non-regex branch was fixed in #63827 (closes #63817) but the regex path was left untouched and untested. This change honors `from_db=True` in the regex branch too, querying `SerializedDagModel.read_all_dags()` and regex-filtering DAG IDs in Python. The previous bundle-walking path is preserved for callers that don't pass `from_db`. Also switches the "not found" raise from the generic `AirflowException` to `DagNotFound`. related: #63817 Report URL: https://github.com/apache/airflow/actions/runs/28540153762 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
