kevinjqliu commented on PR #3299:
URL: https://github.com/apache/iceberg-python/pull/3299#issuecomment-4361738675
i think we can use this
```
@pytest.fixture(scope="session")
def ray_session() -> Generator[Any, None, None]:
"""Fixture to manage Ray initialization and shutdown for tests."""
import os
import ray
# Disable Ray's automatic uv environment propagation to workers.
# When tests are invoked via `uv run`, Ray detects the wrapper and tries
# to package the working directory for remote workers, which is
unnecessary
# and problematic in local single-node test mode.
os.environ["RAY_ENABLE_UV_RUN_RUNTIME_ENV"] = "0"
ray.init(
ignore_reinit_error=True,
)
yield ray
ray.shutdown()
```
And remove `RAY_ENABLE_UV_RUN_RUNTIME_ENV` from Makefile.
WDYT?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]