ucx icon indicating copy to clipboard operation
ucx copied to clipboard

Detect dependencies of libraries installed via pip

Open ericvergnaud opened this issue 9 months ago • 1 comments

Changes

Builds child dependency graph of libraries resolved via PipResolver, using DistInfo data Changed some tests that would consequently take minutes

Linked issues

#1202 Resolves #1642

Functionality

  • [ ] added relevant user documentation
  • [ ] added new CLI command
  • [ ] modified existing command: databricks labs ucx ...
  • [ ] added a new workflow
  • [ ] modified existing workflow: ...
  • [ ] added a new table
  • [ ] modified existing table: ...

Tests

  • [ ] manually tested
  • [x] added unit tests
  • [ ] added integration tests
  • [ ] verified on staging environment (screenshot attached)

ericvergnaud avatar May 16 '24 14:05 ericvergnaud

Codecov Report

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

Project coverage is 89.23%. Comparing base (a42a83b) to head (7fda611).

Files Patch % Lines
...atabricks/labs/ucx/source_code/python_libraries.py 90.64% 7 Missing and 6 partials :warning:
src/databricks/labs/ucx/source_code/graph.py 82.35% 2 Missing and 1 partial :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1703      +/-   ##
==========================================
+ Coverage   89.22%   89.23%   +0.01%     
==========================================
  Files          88       88              
  Lines       11127    11208      +81     
  Branches     1959     1981      +22     
==========================================
+ Hits         9928    10002      +74     
- Misses        821      823       +2     
- Partials      378      383       +5     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar May 16 '24 14:05 codecov[bot]

✅ 167/167 passed, 1 flaky, 25 skipped, 2h14m33s total

Flaky tests:

  • 🤪 test_fix_dashboard (1m35.148s)

Running from acceptance #3256

github-actions[bot] avatar May 17 '24 08:05 github-actions[bot]