vatsrahul1001 opened a new pull request, #77823:
URL: https://github.com/apache/airflow/pull/77823

   In multi-team mode, tasks and triggers looked up Variables and
   Connections without passing their team to the secrets backends. The
   environment variables backend is checked first, so a global
   AIRFLOW_VAR_<KEY> was returned even when AIRFLOW_VAR__<TEAM>___<KEY>
   was set. The docs say the team value takes precedence, and the
   Execution API, which does resolve the team, was never reached.
   (cherry picked from commit f9dca510f9f9ea8ac9652919dcce941e7286a680)
   
   Co-authored-by: Niko Oliveira <[email protected]>
   
   ---
   
   Conflicts in `task-sdk/src/airflow/sdk/execution_time/context.py` and 
`task-sdk/tests/task_sdk/execution_time/test_context.py` were import and 
test-context lines from main-only changes. In `context.py` only `import os` is 
kept (`warnings` is not used on `v3-4-test`). In the test file the import list 
keeps `_get_variable` and the new `TestTeamSecretLookups` class; the main-only 
`_json_size_exceeds` import and its `TestJsonSizeExceeds` cases were dropped.
   
   **Verified locally:** task-sdk test_context.py, test_context_cache.py, 
definitions test_connection.py and test_variables.py, and test_task_runner.py: 
906 passed, 8 failed. The same 8 `TestTriggerDagRunOperator` tests fail on an 
unmodified `v3-4-test` in this environment, so they are not from this change. 
ruff clean.
   
   Backport of #75998.
   
   Generated-by: Claude Code
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


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