Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/pypi-build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
3.11
3.12
3.13
3.14

- name: Install UV
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1
Expand All @@ -75,7 +76,7 @@ jobs:
env:
# Ignore 32 bit architectures
CIBW_ARCHS: "auto64"
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10,<3.14"
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10,<3.15"
# Keep these in sync with Python CI job `cibw-dev-env-smoke-test`
# in .github/workflows/python-ci.yml to catch import-time regressions early.
CIBW_BEFORE_TEST: "uv sync --directory {project} --only-group dev --no-install-project"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
max-parallel: 15
fail-fast: true
matrix:
python: ['3.10', '3.11', '3.12', '3.13']
python: ['3.10', '3.11', '3.12', '3.13', '3.14']

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/svn-build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
3.11
3.12
3.13
3.14

- name: Install UV
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1
Expand All @@ -69,7 +70,7 @@ jobs:
env:
# Ignore 32 bit architectures
CIBW_ARCHS: "auto64"
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10,<3.14"
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10,<3.15"
CIBW_BEFORE_TEST: "uv sync --directory {project} --only-group dev --no-install-project"
CIBW_TEST_COMMAND: "uv run --directory {project} pytest tests/avro/test_decoder.py"
# Skip free-threaded (PEP 703) builds until we evaluate decoder_fast support
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"mmh3>=4.0.0,<6.0.0",
Expand Down
11 changes: 4 additions & 7 deletions tests/catalog/test_hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,21 +226,18 @@ def run(self) -> None:
client.write(self._response)
client.flush()
except Exception:
pass
break

@property
def port(self) -> int | None:
self._port_bound.wait()
return self._port

def close(self) -> None:
# Close all client connections first
for client in self._clients:
try:
client.close()
except Exception:
pass
self._socket.close()
self.join(timeout=5)
for client in self._clients:
client.close()


@pytest.fixture(scope="session")
Expand Down
5 changes: 4 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ def pytest_collection_modifyitems(items: list[pytest.Item]) -> None:
item.add_marker("unmarked")


def pytest_configure(config: pytest.Config) -> None:
os.environ["RAY_ENABLE_UV_RUN_RUNTIME_ENV"] = "0"


@pytest.fixture(autouse=True, scope="session")
def _isolate_pyiceberg_config() -> None:
"""Make test runs ignore your local PyIceberg config.
Expand Down Expand Up @@ -3036,7 +3040,6 @@ def ray_session() -> Generator[Any, None, None]:

ray.init(
ignore_reinit_error=True,
runtime_env={"working_dir": None}, # Prevent Ray from serializing the working directory to workers
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While the new environment variable RAY_ENABLE_UV_RUN_RUNTIME_ENV handles the uv run specific issue, it is safer to retain the explicit runtime_env={"working_dir": None} configuration. This serves as a general safeguard to prevent Ray from automatically serializing the local working directory in other environments where it might still attempt to do so.

Suggested change
)
runtime_env={"working_dir": None}, # Prevent Ray from serializing the working directory to workers
)

yield ray
ray.shutdown()
Expand Down
135 changes: 69 additions & 66 deletions uv.lock

Large diffs are not rendered by default.

Loading