The GitHub Actions job "Tests" on airflow.git/fix/issue-55412 has succeeded.
Run started by GitHub user YoannAbriel (triggered by eladkal).

Head commit for run:
36fa822c5498920bd3baf059b11725fcf4a98a79 / Yoann Abriel <[email protected]>
fix(task-sdk): exclude pathlib.Path from Resolvable.resolve() in templater

pathlib.Path objects have a resolve() method for filesystem resolution
(strict parameter), which conflicts with the Resolvable.resolve(context)
protocol used by the templater. When a pathlib.Path subclass is passed as
a templated field value, the templater incorrectly calls
path.resolve(context), where the context dict is interpreted as
strict=True, causing FileNotFoundError if the path doesn't exist.

This adds an isinstance(value, os.PathLike) guard before calling
resolve() to ensure pathlib.Path objects are returned as-is.

Closes: #55412

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

With regards,
GitHub Actions via GitBox


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

Reply via email to