Repository navigation
Infra: Stop syncing the environment when stamping the nightly version - #4510
Open
Dhairya-007 wants to merge 1 commit into
Open
Dhairya-007 wants to merge 1 commit into
Dhairya-007 wants to merge 1 commit into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 RCstep inpypi-build-artifacts.yml:uv version <value>re-locks the project and syncs the environment unless told not to —--frozenis documented as "Update the version without re-locking the project". That sync resolves thedevgroup against the default interpreter. #4395 added3.15to this workflow'ssetup-pythonlist, andsetup-pythonmakes 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:
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.15entry 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
mainwith 3.15 as the interpreter, which is what the runner now has:With the change:
And the stamped version still reaches the artifact, so
--frozendoes not break the step that follows:actionlintis clean on the changed file.One thing a reviewer should sanity-check: with
--frozen,uv.lockkeeps the released version forpyicebergitself rather than the.devNstamp.uv builddoes 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-syncre-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.