farkmarnum commented on issue #48554:
URL: https://github.com/apache/airflow/issues/48554#issuecomment-2949764357

   We're seeing this same error when running tests:
   ```py
   # Passes
   def test_with_models_import() -> None:
       from airflow.models import Variable
   
       Variable.set("foo", "bar")
       assert Variable.get("foo") == "bar"
   
   
   # Fails
   def test_with_sdk_import() -> None:
       from airflow.sdk import Variable
   
       Variable.set("foo", "bar")
       assert Variable.get("foo") == "bar"
   ```
   
   The seconds test fails with:
   ```log
   FAILED tests/dags/temp_test.py::test_with_sdk_import - ImportError:
   cannot import name 'SUPERVISOR_COMMS' from 
'airflow.sdk.execution_time.task_runner'
   (<conda env dir>/lib/python3.12/site-packages/airflow/sdk/execution_time/...
   ```
   
   Both on Airflow 3.0.1 and 3.0.2rc2.


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