Subham-KRLX opened a new pull request, #64156:
URL: https://github.com/apache/airflow/pull/64156

   This PR provides a manual backport of #63986 to v3-1-test to fix a critical 
TypeError crash in the FAB UI (/users/list) during concurrent API schema 
requests. The issue was caused by non-thread-safe global mocks in 
HookMetaService which corrupted FAB's class hierarchy.
   
   The fix involves:
   
   Localizing Mocks: Moving mocking logic locally within discovery methods to 
prevent global namespace hijacking.
   UnboundField Introspection: Naturally introspecting UnboundField variables 
when FAB is installed to extract parameters safely.
   
   Compatibility Fixes: Making MockOptional callable and adapting the new 
introspection logic to use Param from airflow.sdk as required by the v3-1-test 
environment.Conflict Resolution A merge conflict in connections.py was resolved 
by adapting the main branch introspection logic to use the Param class instead 
of SerializedParam.
   
   Related Issues
   
   related: #63986 (Manual backport)
   closes: #63982 (Original crash issue)
   
   Was generative AI tooling used to co-author this PR?
   
    Yes — Gemini (conflict resolution, and PR description)


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