Skip to content

Infra: Stop syncing the environment when stamping the nightly version - #4510

Open
Dhairya-007 wants to merge 1 commit into
apache:mainfrom
Dhairya-007:ci/nightly-uv-version-frozen
Open

Dhairya-007 wants to merge 1 commit into
apache:mainfrom
Dhairya-007:ci/nightly-uv-version-frozen

Conversation

@Dhairya-007

Copy link
Copy Markdown

Rationale for this change

The Nightly PyPI Build has failed every night since 2026-11-26 (it was green through 2026-11-25). All five matrix legs die at the same place, the Set version with RC step in pypi-build-artifacts.yml:

run: uv version "$VERSION"

uv version <value> re-locks the project and syncs the environment unless told not to — --frozen is documented as "Update the version without re-locking the project". That sync resolves the dev group against the default interpreter. #4395 added 3.15 to this workflow's setup-python list, and setup-python makes the last version in the list the default, so the default interpreter is now 3.15. pyarrow publishes no CPython 3.15 wheels yet, so uv falls back to building it from source and the step dies in CMake looking for Arrow.

That is the same gap #4395 already accounted for elsewhere, in its own comment:

# The locked dev group (pyarrow 25.0.1, numpy 2.4.6) has no CPython 3.15 wheels yet:
# build the cp315 wheels, and test them once it does
CIBW_TEST_SKIP: "cp315-*"

Nothing at this point in the job needs a synced environment. The step only has to stamp the version into pyproject.toml; cibuildwheel then builds the wheels with its own interpreters.

I deliberately did not touch the 3.15 entry or the matrix — building cp315 wheels is the point of #4395, and this is only about the version-stamping step not dragging a full dependency sync along with it.

Are these changes tested?

Reproduced against main with 3.15 as the interpreter, which is what the runner now has:

$ 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"
  *** CMake configuration failed
hint: `pyarrow` (v25.0.1) was included because `pyiceberg:dev` depends on
      `pyspark[connect]` which depends on `pyarrow`
$ echo $?
1

With the change:

$ UV_PYTHON=3.15 uv version --frozen "0.12.0.dev20261128002500"
pyiceberg 0.12.0 => 0.12.0.dev20261128002500
$ echo $?
0

And the stamped version still reaches the artifact, so --frozen does not break the step that follows:

$ uv build --sdist
Successfully built dist/pyiceberg-0.12.0.dev20261128002500.tar.gz

actionlint is clean on the changed file.

One thing a reviewer should sanity-check: with --frozen, uv.lock keeps the released version for pyiceberg itself rather than the .devN stamp. uv build does not read the lockfile, and the sdist above carries the right version, so I believe this is fine — but if you would rather keep the lockfile in step, --no-sync re-locks while still skipping the environment build, and fixes the failure the same way.

Are there any user-facing changes?

No. CI only.


Claude Code assisted in writing this patch; I reproduced the failure and verified the fix locally before opening it.

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 <value>` 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 apache#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 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant