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: ba7707d07df097d9e8a7e6291864917005a06f11 / 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/27229901547 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
