Uh oh!
There was an error while loading. Please reload this page.
Fix several deprecation warnings related to airflow.sdk - #53791
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR fixes several deprecation warnings related to the transition from legacy Airflow modules to the new airflow.sdk package structure. The changes update import statements to use the recommended SDK modules instead of the deprecated legacy modules.
Key changes:
- Update imports for BaseOperator from
airflow.models.baseoperatortoairflow.sdk.bases.operator - Update timezone-related imports from
airflow.utils.timezonetoairflow.sdk.timezone - Add version compatibility checks to conditionally import from the appropriate module based on Airflow version
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
providers/standard/src/airflow/providers/standard/sensors/time.py | Updates timezone import to use SDK module |
providers/standard/src/airflow/providers/standard/operators/hitl.py | Updates BaseOperator import to use SDK module |
providers/standard/src/airflow/providers/standard/example_dags/example_external_task_parent_deferrable.py | Updates datetime import to use SDK timezone module |
devel-common/src/tests_common/test_utils/mock_operators.py | Adds version compatibility for BaseOperator import with conditional logic |
airflow-core/tests/unit/cli/commands/test_dag_command.py | Adds version compatibility for BaseOperator import with conditional logic |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
potiuk
commented
Jul 27, 2025
There are some errors though :( |
ccf63fe to
fb4799fCompareDev-iL
commented
Jul 28, 2025
Fixed now! |
Uh oh!
There was an error while loading. Please reload this page.
amoghrajesh
left a comment
There was a problem hiding this comment.
@Dev-iL thanks for working on this, a general set of comments that apply throughout the PR.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
fb4799f to
00325adCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
555f0a9 to
be17494Compare+ Some ruff violations related to the performance tests.
be17494 to
8568091CompareUh oh!
There was an error while loading. Please reload this page.
+ Some ruff violations related to the performance tests.
+ Some ruff violations related to the performance tests.
Fixing some deprecations reported by breeze:
CC: @amoghrajesh
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.