Repository navigation
Fix Cloud Environment install when python3.12 lacks venv package - #380
Merged
Merged
Conversation
Cloud build images often include python3.12 without python3.12-venv, so setup-engine-venv.sh failed with ensurepip unavailable. Probe venv creation and apt-install the split package before bootstrapping .venv. Proving tests keep SDLC_INSTALL_SKIP_SYSTEM_DEPS=1 behavior unchanged. Co-authored-by: jmjava <jmjava@gmail.com>
jmjava
marked this pull request as ready for review
October 18, 2026 00:36
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.
Problem
Recurring Cloud Environment builds for this repo were failing with
INSTALL_FAILED. Install logs showedpython3.12on the image butpython3.12 -m venvfailing because Debian’spython3.12-venvpackage (ensurepip) was not installed.GitHub Actions on
mainwere already green; the failure was in.cursor/install.shduring environment snapshot builds.Fix
ensure_python312_and_venv()in.cursor/install.shto probe venv creation andapt-get installpython3.12/python3.12-venvas needed.SDLC_INSTALL_SKIP_SYSTEM_DEPS=1.tests/test-cloud-environment.sh.Verification
./tests/test-cloud-environment.sh— 26/26 passedbash .cursor/install.sh— succeeds after installingpython3.12-venv[INSTALL] Exit code: 0, status SUCCEEDEDAfter merge, activate a new environment build in the Cursor dashboard so recurring builds pick up the fix.