Skip to content

Recreate labs virtualenv when its interpreter is missing - #6312

Open
Hashim1999164 wants to merge 1 commit into
databricks:mainfrom
Hashim1999164:fix/labs-venv-missing-interpreter
Open

Recreate labs virtualenv when its interpreter is missing#6312
Hashim1999164 wants to merge 1 commit into
databricks:mainfrom
Hashim1999164:fix/labs-venv-missing-interpreter

Conversation

@Hashim1999164

@Hashim1999164 Hashim1999164 commented Aug 18, 2026

Copy link
Copy Markdown

Changes

  • Recreate the labs virtualenv with venv clear when the interpreter path is missing or dangling
  • That unblocks databricks labs install after Homebrew retires the Python the venv was built against

Closes #6078

Why

python m venv leaves existing interpreter symlinks in place. After a Python upgrade the symlink still points at a deleted binary, pip install fails, and every retry hits the same leftover venv.

Tests

  • go test ./cmd/labs/project covering TestShouldRecreateVenv

@github-actions

Copy link
Copy Markdown
Contributor

An authorized user can trigger integration tests manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 6312
  • Commit SHA: e189de082f75a9e7976642a74473ccdd7a8ea278

Checks will be approved automatically on success.

@github-actions

Copy link
Copy Markdown
Contributor

Approval status: pending

/cmd/labs/ - needs approval

Files: cmd/labs/project/installer.go, cmd/labs/project/installer_venv_test.go
Eligible: @alexott, @asnare

General files (require maintainer)

Files: .nextchanges/cli/labs-venv-missing-interpreter.md
Based on git history:

  • @pietern -- recent work in cmd/labs/project/, .nextchanges/cli/

Any maintainer (@andrewnester, @anton-107, @denik, @pietern, @shreyas-goenka, @simonfaltum, @renaudhartert-db, @janniklasrose, @lennartkats-db, @rugpanov, @rclarey) can approve all areas.
See OWNERS for ownership rules.

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.

labs install: stale virtualenv with a dangling interpreter symlink is never repaired, so install fails permanently

1 participant