Repository navigation
[MOD-16514] Fix Alpine 3.23 flow tests: re-bootstrap venv pip after uv sync - #10457
Merged
Merged
Conversation
PR #10372 set UV_PYTHON=3.13 on Alpine to get prebuilt scipy/numpy musl wheels. Side effect: on uv's standalone musl CPython, the venv ends up without an importable `python3 -m pip` after `uv sync` (though `uv run pip` works). RedisJSON's build runs readies `getpy3`, whose CHECK is `python3 -m pip --version`, so it fails with "Cannot find python3 interpreter" and takes down `make pytest` — breaking every Alpine 3.23 flow-test job in periodic/nightly validation since 2026-07-13. Re-bootstrap pip from the stdlib via `python -m ensurepip --upgrade` on Alpine after `uv sync`, restoring a working `python3 -m pip`. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Remove the ineffective ensurepip line (uv run re-syncs it away) and add diagnostic dumps at install_python_deps end + before RedisJSON make to capture why python3 -m pip is import-broken only in CI. To be reverted.
#10372 set UV_PYTHON=3.13 on Alpine (for prebuilt scipy/numpy musl wheels) but only in install_python_deps.sh's own process. The test harness later runs `uv run python3 -m RLTest`; `uv run` re-provisions the venv and, without UV_PYTHON in scope, falls back to the system CPython 3.12, relinking .venv. pip was installed under python3.13/site-packages, so the 3.12 interpreter can't import it and RedisJSON's readies getpy3 (`python3 -m pip --version`) fails with 'Cannot find python3 interpreter', taking down make pytest — every Alpine 3.23 flow-test job since 2026-07-13. Persist UV_PYTHON=3.13 to $GITHUB_ENV so every uv invocation in the job stays on 3.13 and the venv can't drift to system 3.12. Keeps #10372's wheel benefit. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
kei-nan
marked this pull request as ready for review
July 14, 2026 14:34
Itzikvaknin
approved these changes
Jul 14, 2026
kei-nan
enabled auto-merge
July 14, 2026 14:35
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #10457 +/- ##
==========================================
+ Coverage 82.15% 82.20% +0.05%
==========================================
Files 563 564 +1
Lines 75745 76180 +435
Branches 30816 31272 +456
==========================================
+ Hits 62228 62627 +399
- Misses 13227 13255 +28
- Partials 290 298 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
gonen-red
pushed a commit
that referenced
this pull request
Jul 14, 2026
…v sync (#10457) * [MOD-16514] fix Alpine flow tests: re-bootstrap venv pip after uv sync PR #10372 set UV_PYTHON=3.13 on Alpine to get prebuilt scipy/numpy musl wheels. Side effect: on uv's standalone musl CPython, the venv ends up without an importable `python3 -m pip` after `uv sync` (though `uv run pip` works). RedisJSON's build runs readies `getpy3`, whose CHECK is `python3 -m pip --version`, so it fails with "Cannot find python3 interpreter" and takes down `make pytest` — breaking every Alpine 3.23 flow-test job in periodic/nightly validation since 2026-07-13. Re-bootstrap pip from the stdlib via `python -m ensurepip --upgrade` on Alpine after `uv sync`, restoring a working `python3 -m pip`. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * [DEBUG MOD-16514] instrument Alpine venv/pip state (temporary) Remove the ineffective ensurepip line (uv run re-syncs it away) and add diagnostic dumps at install_python_deps end + before RedisJSON make to capture why python3 -m pip is import-broken only in CI. To be reverted. * [DEBUG] sharper pip probe at RedisJSON build (temporary) * [MOD-16514] fix Alpine flow tests: persist UV_PYTHON=3.13 across the job #10372 set UV_PYTHON=3.13 on Alpine (for prebuilt scipy/numpy musl wheels) but only in install_python_deps.sh's own process. The test harness later runs `uv run python3 -m RLTest`; `uv run` re-provisions the venv and, without UV_PYTHON in scope, falls back to the system CPython 3.12, relinking .venv. pip was installed under python3.13/site-packages, so the 3.12 interpreter can't import it and RedisJSON's readies getpy3 (`python3 -m pip --version`) fails with 'Cannot find python3 interpreter', taking down make pytest — every Alpine 3.23 flow-test job since 2026-07-13. Persist UV_PYTHON=3.13 to $GITHUB_ENV so every uv invocation in the job stays on 3.13 and the venv can't drift to system 3.12. Keeps #10372's wheel benefit. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
oshadmi
pushed a commit
that referenced
this pull request
Jul 15, 2026
…v sync (#10457) * [MOD-16514] fix Alpine flow tests: re-bootstrap venv pip after uv sync PR #10372 set UV_PYTHON=3.13 on Alpine to get prebuilt scipy/numpy musl wheels. Side effect: on uv's standalone musl CPython, the venv ends up without an importable `python3 -m pip` after `uv sync` (though `uv run pip` works). RedisJSON's build runs readies `getpy3`, whose CHECK is `python3 -m pip --version`, so it fails with "Cannot find python3 interpreter" and takes down `make pytest` — breaking every Alpine 3.23 flow-test job in periodic/nightly validation since 2026-07-13. Re-bootstrap pip from the stdlib via `python -m ensurepip --upgrade` on Alpine after `uv sync`, restoring a working `python3 -m pip`. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * [DEBUG MOD-16514] instrument Alpine venv/pip state (temporary) Remove the ineffective ensurepip line (uv run re-syncs it away) and add diagnostic dumps at install_python_deps end + before RedisJSON make to capture why python3 -m pip is import-broken only in CI. To be reverted. * [DEBUG] sharper pip probe at RedisJSON build (temporary) * [MOD-16514] fix Alpine flow tests: persist UV_PYTHON=3.13 across the job #10372 set UV_PYTHON=3.13 on Alpine (for prebuilt scipy/numpy musl wheels) but only in install_python_deps.sh's own process. The test harness later runs `uv run python3 -m RLTest`; `uv run` re-provisions the venv and, without UV_PYTHON in scope, falls back to the system CPython 3.12, relinking .venv. pip was installed under python3.13/site-packages, so the 3.12 interpreter can't import it and RedisJSON's readies getpy3 (`python3 -m pip --version`) fails with 'Cannot find python3 interpreter', taking down make pytest — every Alpine 3.23 flow-test job since 2026-07-13. Persist UV_PYTHON=3.13 to $GITHUB_ENV so every uv invocation in the job stays on 3.13 and the venv can't drift to system 3.12. Keeps #10372's wheel benefit. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> (cherry picked from commit 582160a)
1 of 4 tasks
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.



Describe the changes in the pull request
test-*platforms / alpine:3.23flow-test job (periodic + nightly master validation, x86_64 and aarch64) fails. The RedisJSON build duringmake pytestdies withdeps/readies/mk/main:49: *** Cannot find python3 interpreter, and.venv/bin/python3 -m pipreportsNo module named pip.uv sync, on Alpine re-bootstrap pip from the stdlib (python -m ensurepip --upgrade) so the venv'spython3 -m pipworks.getpy3check (python3 -m pip --version) passes again, somake pytestproceeds and Alpine flow tests run.Root cause
This is a regression from #10372, which set
UV_PYTHON=3.13on Alpine to get prebuilt scipy/numpy musl wheels. Side effect: on uv's standalone musl CPython, the venv ends up without an importablepython3 -m pipafteruv sync(thoughuv run pipstill works). RedisJSON's build shells out to readiesgetpy3, whoseCHECKis literallypython3 -m pip --version, so it fails and takes downmake pytest. Alpine flow tests passed on 2026-07-10 (before #10372) and failed from 2026-07-13 (after). RedisJSON itself was unchanged.This keeps #10372's prebuilt-wheel benefit and only restores a working
python3 -m pip.Which additional issues this PR fixes
Main objects this PR modified
.install/test_deps/install_python_deps.shMark if applicable
Release Notes
Internal CI fix (restores Alpine 3.23 test coverage); no user-facing change.
🤖 Generated with Claude Code