The GitHub Actions job "Tests" on airflow.git has succeeded. Run started by GitHub user kaxil (triggered by kaxil).
Head commit for run: 383ad31c76411fb0a9f7d4243729d7bb0640ff0c / Kaxil Naik <[email protected]> Raise error when ``DagRun`` fails while running ``dag test`` (#36517) **Motivation**: Currently, when using `airflow dags test`, there is no easy way to know programmatically if a DagRun fails since the state is not stored in DB. The way to do know relies on log lines as below: ```bash state=$(airflow dags test exception_dag | grep "DagRun Finished" | awk -F, '{for(i=1;i<=NF;i++) if ($i ~ / state=/) print $i}' | awk -F= '{print $2}') if [[ $state == "failed" ]]; then exit 1 else exit 0 fi ``` This PR adds will return an exit code 1 when `airflow dags test` command if DagRun fails and makes it easy to integrate in CI for testing. Report URL: https://github.com/apache/airflow/actions/runs/7384833511 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
