From 233cbce7f57766725dbdad28e94e6ffb50a85bbb Mon Sep 17 00:00:00 2001 From: dhairya05 <83921853+Dhairya-007@users.noreply.github.com> Date: Sat, 28 Nov 2026 19:31:19 +0530 Subject: [PATCH] Infra: Stop syncing the environment when stamping the nightly version The nightly PyPI build has failed every night since 2026-11-26, at the "Set version with RC" step: run: uv version "$VERSION" `uv version ` re-locks the project and syncs the environment unless told otherwise -- `--frozen` is documented as "Update the version without re-locking the project". The sync resolves the dev group against the default interpreter, and #4395 added 3.15 to this workflow's `setup-python` list, which makes 3.15 the default. pyarrow has no CPython 3.15 wheels yet, so uv falls back to building it from source and the step dies in CMake looking for Arrow -- the same gap that commit already noted when it set `CIBW_TEST_SKIP: "cp315-*"`. Nothing here needs a synced environment: the step only has to stamp the version into pyproject.toml, and cibuildwheel builds the wheels with its own interpreters afterwards. Reproduced against this commit with 3.15 as the interpreter: $ UV_PYTHON=3.15 uv version "0.12.0.dev20261128002500" ... CMake Error at CMakeLists.txt:294 (find_package): Could not find a package configuration file provided by "Arrow" hint: `pyarrow` (v25.0.1) was included because `pyiceberg:dev` depends on `pyspark[connect]` which depends on `pyarrow` exit 1 $ UV_PYTHON=3.15 uv version --frozen "0.12.0.dev20261128002500" pyiceberg 0.12.0 => 0.12.0.dev20261128002500 exit 0 Then `uv build --sdist` produces `pyiceberg-0.12.0.dev20261128002500.tar.gz`, so the stamped version still reaches the artifact. Co-Authored-By: Claude Opus 5 --- .github/workflows/pypi-build-artifacts.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pypi-build-artifacts.yml b/.github/workflows/pypi-build-artifacts.yml index 08933b2221..93f4efe6ef 100644 --- a/.github/workflows/pypi-build-artifacts.yml +++ b/.github/workflows/pypi-build-artifacts.yml @@ -60,7 +60,11 @@ jobs: shell: bash env: VERSION: ${{ inputs.VERSION }} - run: uv version "$VERSION" + # --frozen stamps the version in pyproject.toml without re-locking or + # syncing the environment. A sync here resolves the dev group against + # the default interpreter, which is now 3.15, and pyarrow has no 3.15 + # wheels yet, so it would fall back to building Arrow from source. + run: uv version --frozen "$VERSION" # Publish the source distribution with the version that's in # the repository, otherwise the tests will fail