Skip to content

Commit 66eab4c

Browse files
committed
Use normalized working directory
1 parent 86a1cd7 commit 66eab4c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/codeflare_sdk/ray/rayjobs/rayjob.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,10 @@ def _validate_working_dir_entrypoint(self):
527527

528528
# Check file exists within working_dir
529529
if not normalized_entrypoint.startswith(normalized_working_dir + os.sep):
530-
full_entrypoint_path = os.path.join(working_dir, entrypoint_path)
530+
# Use normalized_working_dir (absolute path) for proper file existence check
531+
full_entrypoint_path = os.path.join(
532+
normalized_working_dir, entrypoint_path
533+
)
531534
if not os.path.isfile(full_entrypoint_path):
532535
raise ValueError(
533536
f"❌ Entrypoint file not found:\n"

tests/e2e/rayjob/rayjob_existing_cluster_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def test_existing_kueue_cluster(self):
5656
worker_cpu_limits=resources["worker_cpu_limits"],
5757
worker_memory_requests=resources["worker_memory_requests"],
5858
worker_memory_limits=resources["worker_memory_limits"],
59-
image=get_ray_image(),
59+
image=constants.CUDA_PY312_RUNTIME_IMAGE,
6060
local_queue=self.local_queues[0],
6161
write_to_file=True,
6262
verify_tls=False,

0 commit comments

Comments
 (0)