Skip to content

Commit b50e909

Browse files
committed
Since test runs on single worker, disable ray's uv hook
1 parent dd1b67c commit b50e909

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

tests/conftest.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3032,17 +3032,16 @@ def pyarrow_table_with_promoted_types(pyarrow_schema_with_promoted_types: "pa.Sc
30323032
@pytest.fixture(scope="session")
30333033
def ray_session() -> Generator[Any, None, None]:
30343034
"""Fixture to manage Ray initialization and shutdown for tests."""
3035-
import tempfile
3035+
import os
30363036

30373037
import ray
30383038

3039-
with tempfile.TemporaryDirectory() as tmpdir:
3040-
ray.init(
3041-
ignore_reinit_error=True,
3042-
runtime_env={"working_dir": tmpdir},
3043-
)
3044-
yield ray
3045-
ray.shutdown()
3039+
os.environ["RAY_ENABLE_UV_RUN_RUNTIME_ENV"] = "0"
3040+
ray.init(
3041+
ignore_reinit_error=True,
3042+
)
3043+
yield ray
3044+
ray.shutdown()
30463045

30473046

30483047
# Catalog fixtures

0 commit comments

Comments
 (0)