The GitHub Actions job "Tests (AMD)" on 
airflow.git/fix-vault-connection-sdk-compat has failed.
Run started by GitHub user seanmuth (triggered by seanmuth).

Head commit for run:
105c7b2de16ff19662a0ae5c43a839ebe3545207 / seanmuth <[email protected]>
Fix VaultBackend.get_connection() causing mapper init failure in virtualenv 
tasks

Constructing airflow.models.connection.Connection (SQLAlchemy ORM) triggers
lazy mapper initialisation for the entire Airflow model registry. In
PythonVirtualenvOperator subprocesses, DagModel has not been imported so
DagScheduleAssetNameReference cannot resolve its 'DagModel' relationship,
raising sqlalchemy.exc.InvalidRequestError. This exception is silently
swallowed in context.py's secrets-backend loop, making the connection appear
undefined even when Vault returns a valid 200 response.

Switch to airflow.providers.common.compat.sdk.Connection (Pydantic in
Airflow 3, SQLAlchemy in Airflow 2) which does not trigger mapper init.
Also update call sites to use keyword-only conn_id= to match the SDK
Connection's constructor signature.

Report URL: https://github.com/apache/airflow/actions/runs/27233931424

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to