The GitHub Actions job "Tests (AMD)" on airflow.git/fix-docker-init has 
succeeded.
Run started by GitHub user 1fanwang (triggered by 1fanwang).

Head commit for run:
4ae16f02b2d32167ea34da04d9825df083901085 / 1fanwang <[email protected]>
Leave rendered Mount dicts alone in DockerOperator._normalize_mounts

A user-supplied Mount is a dict subclass, so the templater flattens it to a
plain API-cased dict ({Target, Source, Type, ReadOnly}) during rendering.
_normalize_mounts then hit the else branch and called Mount(**m) with those
keys, raising TypeError at execute() before the container started. A rendered
Mount is already the shape docker-py wants, so leave it (and any real Mount)
alone; only rebuild a Mount from a raw user dict.

Add a render-then-execute regression test that fails on the pre-fix source.

Signed-off-by: 1fanwang <[email protected]>

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

With regards,
GitHub Actions via GitBox


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

Reply via email to