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

   Fixes #71125
   
   **Description**
   
   Previously, `find_dag_file_paths` used `zipfile.is_zipfile()` to sniff if a 
file could be a DAG bundle. Since the PK-ZIP format underpins many common file 
types (such as `.jar`, `.docx`, `.pptx`, `.xlsx`), the DAG processor would 
waste time opening and scanning these irrelevant files if they were placed in 
the DAGs folder.
   
   This update enforces that a file must end in `.zip` before it is considered 
a DAG bundle, eliminating wasted CPU cycles and log noise for deployments that 
store supporting zip-format files alongside their DAGs.
   
   **Testing**
   * Added `test_find_dag_file_paths_ignores_non_zip_archives` in 
`test_file.py` which mocks the presence of `.jar` and `.docx` files, ensuring 
they are ignored.


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