The GitHub Actions job "Tests (AMD)" on airflow.git/feat/bulk-clear-dag-runs-endpoint has failed. Run started by GitHub user pierrejeambrun (triggered by pierrejeambrun).
Head commit for run: 667f2c1ee2372cb1dae7972205861118883f4e4a / pierrejeambrun <[email protected]> API: Add POST /dags/{dag_id}/clearDagRuns bulk endpoint Mirrors ``POST /dags/{dag_id}/clearTaskInstances`` for Dag Runs: a single round-trip clears N runs and (optionally) attaches a note in the same transaction, removing the per-run fan-out the UI does today. The URL sits at the parent-Dag level (``/clearDagRuns`` not ``/dagRuns/clear``) on purpose, to match the existing ``clearTaskInstances`` convention. To register at that prefix without collapsing into ``task_instances_router``, ``dag_run.py`` gains a sibling router ``dag_run_at_dag_router`` with prefix ``/dags/{dag_id}``. URL ``dag_id`` is concrete or ``~``. With ``~``, every entry in ``dag_runs`` must carry its own ``dag_id``. With a specific Dag, entries may omit ``dag_id`` and inherit from the URL (and the route rejects mismatches with 400). Duplicate ``(dag_id, run_id)`` entries collapse to one operation, matching ``BulkDagRunService``'s ``handle_bulk_delete`` semantics. ``dry_run`` is the safe default — returns the union of affected task instances across the listed runs (or the ``NewTaskResponse`` placeholders for the ``only_new`` path) without touching state. Real clear returns a ``DAGRunCollectionResponse`` with the post-clear runs. To keep both endpoints in sync, the per-run lookup, dry-run TI computation, and the clear+note step are pulled out of the single ``clear_dag_run`` route into ``services/public/dag_run.py`` as ``get_dag_run_and_dag_for_clear`` / ``dry_run_clear_dag_run`` / ``perform_clear_dag_run``. The single-run route now composes them instead of duplicating the logic. Auth uses a new ``requires_access_dag_run_clear_bulk`` dependency modelled on ``requires_access_dag_run_bulk`` — same per-Dag team caching, same wildcard-then-400 contract. Report URL: https://github.com/apache/airflow/actions/runs/26637004093 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
