The GitHub Actions job "Tests" on airflow.git/fix-docker-operator-dict-mounts-66345 has failed. Run started by GitHub user bdsoha (triggered by bdsoha).
Head commit for run: e9f0095c3ec50e2adf19baaf56f2f5a0c74268a2 / Dov Benyomin Sohacheski <[email protected]> Fix DockerOperator init crash on dict mount entries PR #52451 added a loop in ``DockerOperator.__init__`` that assigns ``template_fields`` on every entry of ``mounts``. Plain ``dict`` entries have no ``__dict__`` slot, so the assignment raises:: AttributeError: 'dict' object has no attribute 'template_fields' and no __dict__ for setting new attributes at construction time, breaking any DAG that historically passed mount entries as ``dict`` (a documented and previously supported form). Fixes the regression by normalising each entry to ``docker.types.Mount`` on input — ``Mount`` instances are passed through, and ``dict`` entries are unpacked into ``Mount(**entry)``. The subsequent ``template_fields`` assignment then operates on a uniform ``Mount`` (a ``dict`` subclass that does carry an instance ``__dict__``). Closes: #66345 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> Report URL: https://github.com/apache/airflow/actions/runs/25503610038 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
