23241a6749 opened a new pull request, #77343:
URL: https://github.com/apache/airflow/pull/77343

   The synchronous and asynchronous SMTP connection tests open a client and 
return after NOOP without explicitly closing it. Run both tests inside the 
hook's existing context managers so the client is released and its cached 
reference cleared when NOOP succeeds, returns a non-success status, or raises.
   
   The six regression cases fail without the change. With it, all 105 SMTP 
provider unit tests pass. Regular/manual static checks, the four core/provider 
test groups selected by `breeze verify`, and `breeze build-docs common.compat 
smtp` pass. The DB groups used SQLite explicitly. No live SMTP server or email 
delivery was tested.
   
   This reuses the context-manager cleanup updated in #74416. Related PR #74185 
handles cleanup when connection setup/authentication fails; this change covers 
the separate connection-test lifecycle after setup succeeds and does not modify 
that setup logic.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Codex (GPT-6)
   
   Generated-by: Codex (GPT-6) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   
   ---
   
   * Read the **[Pull Request 
Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)**
 for more information. Note: commit author/co-author name and email in commits 
become permanently public when merged.
   


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