The GitHub Actions job "Tests (AMD)" on 
airflow.git/fix/65870-imap-attachment-overwrite has failed.
Run started by GitHub user lohitkolluri (triggered by potiuk).

Head commit for run:
b8979f4503567adb4fca1940d6a3f522512792ce / Lohit Kolluri 
<[email protected]>
fix(imap): Prevent silent attachment overwrite in download_mail_attachments

Added an `overwrite` parameter (default `True` for backward compatibility)
to `download_mail_attachments`. When set to `False`, files with colliding
names get a counter suffix (e.g. `_1`, `_2`) instead of being overwritten.

- Renamed `create_unique_filenames` parameter to `overwrite`
- Switched to atomic `"xb"` mode for the unique-filename path to
  eliminate a TOCTOU race condition
- Added in-batch duplicate tracking so generated counter suffixes
  don't collide with real attachment names
- 7 new tests covering defaults, duplicates, collisions, and
  FileExistsError retry

closes: #65870

Signed-off-by: Lohit Kolluri <[email protected]>

Report URL: https://github.com/apache/airflow/actions/runs/26841072552

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to