saitejabandaru-in opened a new pull request, #71204: URL: https://github.com/apache/airflow/pull/71204
### Description Fixes #71125. `zipfile.is_zipfile()` is a content sniff, which means it evaluates to true for files like `.jar`, `.pptx`, `.docx`, `.xlsx` etc. since they are technically zip archives. This resulted in the DAG processor incorrectly treating them as DAG bundles, leading to wasted processing, errors, and noise. This PR updates the DAG discovery logic to ensure that a file explicitly has a `.zip` extension in addition to passing `zipfile.is_zipfile()` before we process it as a zipped DAG bundle. ### Are you willing to submit a PR? - [x] Yes ### Code of Conduct - [x] I agree to follow this project's Code of Conduct -- 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]
