Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that python dependencies are installed during upgrade #1390

Merged
merged 2 commits into from
Apr 24, 2024

Conversation

jimidle
Copy link
Contributor

@jimidle jimidle commented Apr 22, 2024

Changes

The installer.Upgrade() processing did not install Python dependencies. This resulted in errors such as:

ModuleNotFoundError: No module named 'databricks.labs.blueprint'

Any new dependencies are now installed during the upgrade process.

Resolves: databrickslabs/ucx#1276

Tests

The TestUpgraderWorksForReleases test now checks to see if the upgrade process resulted in the dependencies being installed.

jimidle added 2 commits April 22, 2024 14:54
  - Adds a stub to intercept the python -m pip install .  command
  - Checks that the dependency install was in fact run in the upgrade process

Signed-off-by: Jim.Idle <jimi@idle.ws>
@jimidle jimidle marked this pull request as ready for review April 24, 2024 17:16
@nfx nfx self-requested a review April 24, 2024 17:23
Copy link
Contributor

@nfx nfx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

cmd/labs/project/installer.go Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Apr 24, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 52.88%. Comparing base (e22dd8a) to head (0bd42af).
Report is 83 commits behind head on main.

Files Patch % Lines
cmd/labs/project/installer.go 25.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1390      +/-   ##
==========================================
+ Coverage   52.25%   52.88%   +0.63%     
==========================================
  Files         317      338      +21     
  Lines       18004    19532    +1528     
==========================================
+ Hits         9408    10330     +922     
- Misses       7903     8436     +533     
- Partials      693      766      +73     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nfx nfx added this pull request to the merge queue Apr 24, 2024
Merged via the queue into databricks:main with commit 4c71f8c Apr 24, 2024
5 checks passed
pietern added a commit that referenced this pull request Apr 25, 2024
This is a bugfix release.

CLI:
 * Pass `DATABRICKS_CONFIG_FILE` for `auth profiles` ([#1394](#1394)).

Bundles:
 * Show a better error message for using wheel tasks with older DBR versions ([#1373](#1373)).
 * Allow variable references in non-string fields in the JSON schema ([#1398](#1398)).
 * Fix variable overrides in targets for non-string variables ([#1397](#1397)).
 * Fix bundle schema for variables ([#1396](#1396)).
 * Fix bundle documentation URL ([#1399](#1399)).

Internal:
 * Removed autogenerated docs for the CLI commands ([#1392](#1392)).
 * Remove `JSON.parse` call from homebrew-tap action ([#1393](#1393)).
 * Ensure that Python dependencies are installed during upgrade ([#1390](#1390)).
@pietern pietern mentioned this pull request Apr 25, 2024
github-merge-queue bot pushed a commit that referenced this pull request Apr 25, 2024
This is a bugfix release.

CLI:
* Pass `DATABRICKS_CONFIG_FILE` for `auth profiles`
([#1394](#1394)).

Bundles:
* Show a better error message for using wheel tasks with older DBR
versions ([#1373](#1373)).
* Allow variable references in non-string fields in the JSON schema
([#1398](#1398)).
* Fix variable overrides in targets for non-string variables
([#1397](#1397)).
* Fix bundle schema for variables
([#1396](#1396)).
* Fix bundle documentation URL
([#1399](#1399)).

Internal:
* Removed autogenerated docs for the CLI commands
([#1392](#1392)).
* Remove `JSON.parse` call from homebrew-tap action
([#1393](#1393)).
* Ensure that Python dependencies are installed during upgrade
([#1390](#1390)).
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.

[BUG]: Upgrade not working from 0.8.0: ModuleNotFoundError: No module named 'databricks.labs.blueprint'
3 participants