databricks / cli

Databricks CLI
Other
132 stars 50 forks source link

[BUG] `databricks labs upgrade` does not upgrade the project dependencies if requirements are satisfied #1634

Closed JCZuurmond closed 2 months ago

JCZuurmond commented 2 months ago

Describe the issue

databricks labs upgrade does not upgrade the project dependencies if requirements are satisfied

Steps to reproduce the behavior

Steps to reproduce

  1. Install the latest Databricks cli version: download from https://github.com/databricks/cli/releases
  2. Authenticate to workspace: databricks auth login
  3. Install ucx (will work): databricks labs install ucx
  4. Downgrade lsql: ~/.databricks/labs/ucx/state/venv/bin/python3 -m pip install databricks-labs-lsql==0.7.2
  5. Upgrade ucx (will not work): databricks labs upgrade ucx

Expected Behavior

The databricks labs upgrade command should update the project dependencies to the latest versions

Actual Behavior

The databricks labs upgrade command does not update the project dependencies to the latest versions

OS and CLI version

Cli: v0.224.1

Is this a regression?

No

Related issues

Issue originally reported in Databrickslabs ucx

JCZuurmond commented 2 months ago

I'll work on this