This is an automated email from the ASF dual-hosted git repository.

eladkal pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 75e481c08f7 Fix hardcoded OS path in edge provider (#67039)
75e481c08f7 is described below

commit 75e481c08f7ce2bade45ea51f8c16e55e0bd85b6
Author: Jens Scheffler <[email protected]>
AuthorDate: Mon May 18 09:27:47 2026 +0200

    Fix hardcoded OS path in edge provider (#67039)
---
 providers/edge3/tests/unit/edge3/worker_api/routes/test_logs.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/providers/edge3/tests/unit/edge3/worker_api/routes/test_logs.py 
b/providers/edge3/tests/unit/edge3/worker_api/routes/test_logs.py
index f0eb5773b0f..1be89f07649 100644
--- a/providers/edge3/tests/unit/edge3/worker_api/routes/test_logs.py
+++ b/providers/edge3/tests/unit/edge3/worker_api/routes/test_logs.py
@@ -17,6 +17,7 @@
 from __future__ import annotations
 
 from collections.abc import Sequence
+from pathlib import Path
 from typing import TYPE_CHECKING
 
 import pytest
@@ -53,8 +54,8 @@ class TestLogsApiRoutes:
     def test_logfile_path(self, session: Session):
         p: str = logfile_path(dag_id=DAG_ID, task_id=TASK_ID, run_id=RUN_ID, 
try_number=1, map_index=-1)
         assert p
-        assert f"dag_id={DAG_ID}/run_id={RUN_ID}/task_id={TASK_ID}/attempt=1" 
in p
-        assert "/-1" not in p
+        assert str(Path(f"dag_id={DAG_ID}") / f"run_id={RUN_ID}" / 
f"task_id={TASK_ID}" / "attempt=1") in p
+        assert "-1" not in Path(p).parts
 
     def test_push_logs(self, session: Session):
         log_data = PushLogsBody(

Reply via email to