ucx
ucx copied to clipboard
[BUG]: lint-local-code doesn't catch /mnt/ calls inside a function
Is there an existing issue for this?
- [x] I have searched the existing issues
Current Behavior
Current code looks like the following:
%run ./_other_otebook
path = searchPath('/mnt/mnt_datalake_something/', rep) # searchPath is in other_notebook
However lint-local-code does not identify that /mnt/mnt_datalake_something is deprecated.
Expected Behavior
No response
Steps To Reproduce
No response
Cloud
AWS
Operating System
macOS
Version
latest via Databricks CLI
Relevant log output
@william-conti : Could you share the implementation of the searchPath?
We lint the code for known ways to access the DBFS, see this.
First hunch:
- Either UCX does not include
searchPathcorrectly - Or
searchPathaccesses the DBFS through a method that we do not lint
@william-conti can you help us create a unit test that fails for this scenario?
@gueniai here's a failed test -> https://github.com/databrickslabs/ucx/pull/3716