You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jobs@airflow.apache.org by GitBox <gi...@apache.org> on 2026/06/01 20:53:56 UTC
[GH] (airflow/fix/notifier-serialized-dag-template-env): Workflow run "Tests (AMD)" failed!
The GitHub Actions job "Tests (AMD)" on airflow.git/fix/notifier-serialized-dag-template-env has failed.
Run started by GitHub user GayathriSrividya (triggered by GayathriSrividya).
Head commit for run:
6465711279a99e37484b5910cf2c70289b8689a7 / Gayathri Srividya Rajavarapu <ga...@Gayathris-MacBook-Air.local>
Fix AttributeError when notifier renders templates with SerializedDAG
When 'airflow dags test' triggers a DAG callback that uses a notifier,
the context's 'dag' key holds a SerializedDAG instance which does not
have a get_template_env method. BaseNotifier.render_template_fields
passes this dag to Templater.get_template_env, which unconditionally
calls dag.get_template_env() — raising AttributeError.
Guard the call with hasattr() so that a dag lacking get_template_env
(such as SerializedDAG) silently falls back to SandboxedEnvironment.
closes: #64649
Report URL: https://github.com/apache/airflow/actions/runs/26777884809
With regards,
GitHub Actions via GitBox
---------------------------------------------------------------------
To unsubscribe, e-mail: jobs-unsubscribe@airflow.apache.org
For additional commands, e-mail: jobs-help@airflow.apache.org