Subham-KRLX opened a new pull request, #74269:
URL: https://github.com/apache/airflow/pull/74269

   Dag discovery accepts packaged Dags ending in `.ZIP`, but `ZIP_REGEX` in 
`airflow/utils/file.py` only matched lowercase `.zip`. As a result, 
`correct_maybe_zipped` and `open_maybe_zipped` failed to treat `.ZIP` archives 
as zip files, causing `DagCode` to raise `NotADirectoryError` when reading back 
the Dag source.
   
   This PR adds `re.IGNORECASE` to `ZIP_REGEX` and adds unit tests covering 
uppercase `.ZIP` archives for both `correct_maybe_zipped` and 
`open_maybe_zipped`.
   
   closes: #74060
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (Claude Code for code research and PR description)
   


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