-
Notifications
You must be signed in to change notification settings - Fork 69
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
Conversation
Signed-off-by: Jim.Idle <jimi@idle.ws>
- 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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Codecov ReportAttention: Patch coverage is
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. |
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)).
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)).
Changes
The installer.Upgrade() processing did not install Python dependencies. This resulted in errors such as:
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.