You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "windro-xdd (via GitHub)" <gi...@apache.org> on 2026/04/17 20:07:48 UTC

[PR] SFTP: remove deprecated timezone imports in sensor/trigger [airflow]

windro-xdd opened a new pull request, #65442:
URL: https://github.com/apache/airflow/pull/65442

   This updates the SFTP sensor and trigger to use  from  instead of importing from .
   
   It keeps the same comparison/UTC conversion behavior and adds regression tests to ensure importing these modules does not emit  for .
   
   related: #65419
   
   ##### What I tested
   
   - Running command in Breeze: pytest 
   providers/sftp/tests/unit/sftp/sensors/test_sftp.py 
   providers/sftp/tests/unit/sftp/triggers/test_sftp.py -xs
   Using project name: breeze-run-f036ffcb
   CI image already built locally.
   
   Running command: <docker inspect ghcr.io/apache/airflow/main/ci/python3.10>
   
   
   Working directory /home/wnxd/airflow-repo
   
   
   docker inspect ghcr.io/apache/airflow/main/ci/python3.10
   
   The following important files are modified in /home/wnxd/airflow-repo since last
   time image was built: 
   
   
    * Dockerfile.ci
   
   Likely CI image needs rebuild
   
   
   Do you want to build the image (this works best when you have good connection 
   and can take usually from 20 seconds to few minutes depending how old your image
   is)? 
   Press y/N/q: 
   Terminating the process on [Errno 1] Operation not permitted
   - Running command in Breeze: pytest 
   providers/sftp/tests/unit/sftp/decorators/sensors/test_sftp.py -xs
   Using project name: breeze-run-438c6158
   CI image already built locally.
   
   Running command: <docker inspect ghcr.io/apache/airflow/main/ci/python3.10>
   
   
   Working directory /home/wnxd/airflow-repo
   
   
   docker inspect ghcr.io/apache/airflow/main/ci/python3.10
   
   The following important files are modified in /home/wnxd/airflow-repo since last
   time image was built: 
   
   
    * Dockerfile.ci
   
   Likely CI image needs rebuild
   
   
   Do you want to build the image (this works best when you have good connection 
   and can take usually from 20 seconds to few minutes depending how old your image
   is)? 
   Press y/N/q: 
   Terminating the process on [Errno 1] Operation not permitted
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (OpenCode gpt-5.3-codex)
   
   Generated-by: OpenCode gpt-5.3-codex following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] SFTP: use compat timezone helpers in sensor and trigger [airflow]

Posted by "windro-xdd (via GitHub)" <gi...@apache.org>.
windro-xdd commented on PR #65442:
URL: https://github.com/apache/airflow/pull/65442#issuecomment-4273285781

   Thanks for the review — updated now.\n\n- Adjusted the PR title to avoid implying a breaking change\n- Reworded the commit messages accordingly\n\nPlease take another look when you have a moment.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Use compat timezone helpers in sensor and trigger of SFTP provider [airflow]

Posted by "dabla (via GitHub)" <gi...@apache.org>.
dabla merged PR #65442:
URL: https://github.com/apache/airflow/pull/65442


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] SFTP: remove deprecated timezone imports in sensor/trigger [airflow]

Posted by "eladkal (via GitHub)" <gi...@apache.org>.
eladkal commented on PR #65442:
URL: https://github.com/apache/airflow/pull/65442#issuecomment-4273274284

   Please ammend commit message and PR title. It sounds like you are suggesting a breaking change which is not the case.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org