github-actions[bot] opened a new pull request, #73216:
URL: https://github.com/apache/airflow/pull/73216

   * Fix DAG.cli() crashing on dags test --show-dagrun
   
   A Dag file run as a script goes through DAG.cli(), whose parser drops the
   dag_id positional and passes the Dag object to the handler instead. dag_test
   never needed dag_id from the parsed arguments until it rendered the run: the
   task instance query read args.dag_id, so --show-dagrun, --save-dagrun and
   --imgcat-dagrun raised AttributeError after the Dag had already run, while
   the plain command and the regular airflow dags test path worked.
   
   Filtering on the resolved Dag's id is the same value on the regular path and
   the only one available from DAG.cli().
   
   * Update airflow-core/tests/unit/cli/commands/test_dag_command.py
   
   Co-authored-by: rjgoyln <[email protected]>
   
   * Update airflow-core/tests/unit/cli/commands/test_dag_command.py
   
   ---------
   (cherry picked from commit 63fc32fd14bbbb20abfa60301abcd2f33d49726f)
   
   Co-authored-by: Y-C <[email protected]>
   Co-authored-by: Eason09053360 
<[email protected]>
   Co-authored-by: rjgoyln <[email protected]>
   Co-authored-by: Henry Chen <[email protected]>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to