github-actions[bot] opened a new pull request, #77861:
URL: https://github.com/apache/airflow/pull/77861

   * Use the Task SDK Variable in the standard Python operators
   
   The module loaded the core Variable ORM model at import time, so every
   Dag using @task loaded it too, although the operator only reads the
   virtualenv cache key through it.
   
   * Check the Variable deprecation warning in test_caching
   
   The visible effect of the import change is that cached virtualenv tasks
   no longer emit the core Variable.get deprecation warning, so the test
   checks that instead of a private method call.
   
   * Set the cache key Variable in the Dag bundle import test
   
   The test calls op.execute() outside a task runner. On Airflow 3.0, the
   Task SDK reads a Variable that no secrets backend has through
   SUPERVISOR_COMMS, which only a task runner sets. An env var lets the
   cache key lookup finish on every Airflow version.
   (cherry picked from commit c286e0537e449f73b421de5be505849b391ee8aa)
   
   Co-authored-by: Yu-Cheng (Andrew) Chang 
<[email protected]>


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