wilmerdooley opened a new pull request, #67931:
URL: https://github.com/apache/airflow/pull/67931

   Resolves #61667.
   
   The default email that `SmtpNotifier` sends on task failure does not show 
which DAG or task failed, so it is hard to triage at a glance. This restyles 
the default templates for readability, keeping the change minimal and backward 
compatible.
   
   ### What changed
   - `templates/email.html`: add **DAG** and **Task** rows (previously missing) 
alongside the existing Run ID, Try, State, Host and log link, and lay the body 
out as a scannable table. Layout uses a plain `<table>` with inline cell styles 
only (no `<style>` or `<head>` styling, no CSS grid or flexbox), so it renders 
consistently in Gmail and Outlook.
   - `templates/email_subject.jinja2`: a more scannable subject, `[Airflow] {{ 
ti.dag_id }}.{{ ti.task_id }} {{ ti.state }} - Run {{ ti.run_id }}`. The SLA 
branch is unchanged.
   - `tests/unit/smtp/notifications/test_smtp.py`: update the one assertion 
that pins the default subject.
   
   ### Scope and compatibility
   - Only the SMTP provider default templates are touched. airflow-core and 
task-sdk are left alone, since email integration is moving out of core (PR 
#30531).
   - Backward compatible: a user-provided `subject_template` or 
`html_content_template` (connection extras) still takes precedence over the 
bundled defaults.
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (please specify the tool below)
   
   Generated-by: Claude Code
   
   <!-- pr-triage-fold: triaged=2026-07-28T16:10:44Z head=f39ed66 action=draft 
-->
   
   ---
   
   > [!IMPORTANT]
   > **๐Ÿ› ๏ธ Maintainer triage note for @wilmerdooley** ยท by `@potiuk` ยท 
2026-07-28 16:10 UTC
   >
   > Helpful heads-up from the maintainers โ€” please address before this PR can 
be reviewed:
   > - :x: **Unit tests**. See 
[docs](https://github.com/apache/airflow/blob/main/contributing-docs/09_testing.rst).
   >
   > **The ball is in your court** โ€” you've been assigned to this PR. Fix the 
above, then mark it **Ready for review**.
   >
   > See the [Pull Request quality 
criteria](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-quality-criteria)
 for how to fix each item. There is no rush.
   >
   > **Note:** your branch is **1310 commits behind `main`** โ€” please rebase 
and push again to get up-to-date CI results.
   >
   > <sub>_Automated triage โ€” may be imperfect; a maintainer takes the next 
look. We use this [two-stage triage 
process](https://github.com/apache/airflow/blob/main/contributing-docs/25_maintainer_pr_triage.md#why-the-first-pass-is-automated)
 so maintainers' limited time goes to the conversation with you._</sub>
   
   <!-- /pr-triage-fold -->
   


-- 
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