Skip to content

Commit 5012828

Browse files
committed
cleanup
1 parent d248658 commit 5012828

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/integrations/ray/test_ray.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ def read_error_from_log(job_id, ray_temp_dir):
6161
for f in os.listdir(log_dir)
6262
if "worker" in f and job_id in f and f.endswith(".out")
6363
][0]
64+
print()
65+
print(">>>>>>", log_file)
66+
print()
6467
with open(os.path.join(log_dir, log_file), "r") as file:
6568
lines = file.readlines()
6669

@@ -141,7 +144,6 @@ def example_task():
141144
def test_errors_in_ray_tasks():
142145
setup_sentry_with_logging_transport()
143146

144-
# Create a short temp directory to avoid Unix socket path length limits
145147
ray_temp_dir = os.path.join("/tmp", f"ray_test_{uuid.uuid4().hex[:8]}")
146148
os.makedirs(ray_temp_dir, exist_ok=True)
147149

@@ -176,7 +178,6 @@ def example_task():
176178
assert not error["exception"]["values"][0]["mechanism"]["handled"]
177179

178180
finally:
179-
# Clean up the temporary directory
180181
if os.path.exists(ray_temp_dir):
181182
shutil.rmtree(ray_temp_dir, ignore_errors=True)
182183

@@ -220,7 +221,6 @@ def increment(self):
220221
def test_errors_in_ray_actors():
221222
setup_sentry_with_logging_transport()
222223

223-
# Create a short temp directory to avoid Unix socket path length limits
224224
ray_temp_dir = os.path.join("/tmp", f"ray_test_{uuid.uuid4().hex[:8]}")
225225
os.makedirs(ray_temp_dir, exist_ok=True)
226226

@@ -258,6 +258,5 @@ def increment(self):
258258
assert error is None
259259

260260
finally:
261-
# Clean up the temporary directory
262261
if os.path.exists(ray_temp_dir):
263262
shutil.rmtree(ray_temp_dir, ignore_errors=True)

0 commit comments

Comments
 (0)