Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented May 9, 2025

The #50301 deprecated using get_current_context in standard provider in favour of the task.sdk call, but some core tests are still using the provider's one.


^ 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.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@potiuk potiuk requested a review from amoghrajesh May 9, 2025 11:55
Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah damn

Copy link
Member

@kaxil kaxil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there are few more:

airflow-core/src/airflow/example_dags/tutorial_taskflow_templates.py:from airflow.providers.standard.operators.python import get_current_context
airflow-core/tests/unit/models/test_mappedoperator.py:from airflow.providers.standard.operators.python import get_current_context
airflow-core/tests/unit/models/test_mappedoperator.py:from airflow.providers.standard.operators.python import get_current_context
airflow-core/tests/unit/models/test_taskinstance.py:from airflow.providers.standard.operators.python import get_current_context
providers/amazon/tests/system/amazon/aws/example_sagemaker.py:from airflow.providers.standard.operators.python import get_current_context
providers/standard/src/airflow/providers/standard/operators/python.py:from airflow.providers.standard.operators.python import get_current_context

@potiuk potiuk force-pushed the fix-failing-main-on-get-current-context-warning branch from d58ac01 to 870f1c0 Compare May 9, 2025 12:29
@kaxil kaxil requested review from eladkal and o-nikolas as code owners May 9, 2025 12:45
The apache#50301 deprecated using get_current_context in standard provider
in favour of the task.sdk call, but some core tests are still
using the provider's one.
@potiuk potiuk force-pushed the fix-failing-main-on-get-current-context-warning branch from 2eee613 to 9da3d76 Compare May 9, 2025 12:46
@potiuk potiuk requested a review from mik-laj as a code owner May 9, 2025 12:46
@kaxil kaxil merged commit 7549923 into apache:main May 9, 2025
8 checks passed
@kaxil
Copy link
Member

kaxil commented May 9, 2025

Merged it, simple change and unblocks main

@kaxil kaxil mentioned this pull request May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants