Dotify71 commented on PR #68758: URL: https://github.com/apache/airflow/pull/68758#issuecomment-4845833557
Fixed the CI failures. The root cause was that when removing `import os`, I missed three remaining `os.path` usages in the file: - `os.path.expanduser(settings.DAGS_FOLDER)` in `__init__` → `Path(settings.DAGS_FOLDER).expanduser()` - `os.path.join / os.path.relpath` in `_render_filename` → `Path / Path.relative_to()` - `os.path.join` in `_get_log_directory` → `Path / operator` `ruff` caught those as F821 undefined name errors, and the test failures (NameError: 'os' not defined) were a symptom of the same issue — the source file raising a NameError at import time. All `os.path` calls are now fully migrated to `pathlib`. Also rebased on latest main so the branch is up to date. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
