Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Category of Bug / Issue
Analyzer bug
Current Behavior
I got unexpected output for the analyzer.
Expected Behavior
I believe it should be exit_code=1
when it's failed.
Steps To Reproduce
Install:
Databricks CLI v0.255.0
Lakebridge v0.10.4
Specify folder --source-directory
with no yxmd,yxmc
files inside and run analyzer.
Relevant log output or Exception details
Databricks Code Analyzer
Copyright (c) 2025 Databricks. All rights reserved.
Version 5.6.4 Build 20250530
CodeAnalyzer [783]: 2025-07-08 00:09:14 Start time: 20250708_000914
CodeAnalyzer [784]: 2025-07-08 00:09:14 OS Process ID: 53557
ANLZ_CC [694]: 2025-07-08 00:09:14 PROGRESS: Reading config file
ANLZ_CC [694]: 2025-07-08 00:09:15 PROGRESS: Done reading config file
CodeAnalyzer [879]: 2025-07-08 00:09:15 Stats folder: /test_output
CodeAnalyzer [924]: 2025-07-08 00:09:15 Applying job type filter:
CodeAnalyzer [960]: 2025-07-08 00:09:15 Verbose Mode:
CodeAnalyzer [5153]: 2025-07-08 00:09:15 Traversing folder /test_project_to_analyze
CodeAnalyzer [5375]: 2025-07-08 00:09:15 Analyzer could not find source files with the extension: yxmd,yxmc.
Please specify file extension with -E.
Info: start
Info: Overriding login profile: Lakebridge
CodeAnalyzer [5375]: 2025-07-08 00:09:15 Analyzer could not find source files with the extension: yxmd,yxmc.
Please specify file extension with -E.
Died at /Users/igor.kirey/.databricks/labs/lakebridge/state/venv/lib/python3.10/site-packages/databricks/labs/bladespector/Analyzer/MacOS/analyzer line 5394.
at /Users/igor.kirey/.databricks/labs/lakebridge/state/venv/lib/python3.10/site-packages/databricks/labs/bladespector/Analyzer/MacOS/analyzer line 5394.
main::get_source_files() called at /Users/igor.kirey/.databricks/labs/lakebridge/state/venv/lib/python3.10/site-packages/databricks/labs/bladespector/Analyzer/MacOS/analyzer line 1078
00:09:15 ERROR [d.l.bladespector.analyzer] Analysis failed
Traceback (most recent call last):
File "/Users/igor.kirey/.databricks/labs/lakebridge/state/venv/lib/python3.10/site-packages/databricks/labs/bladespector/analyzer.py", line 98, in _run_binary
raise subprocess.CalledProcessError(process.returncode, args)
subprocess.CalledProcessError: Command '['/Users/igor.kirey/.databricks/labs/lakebridge/state/venv/lib/python3.10/site-packages/databricks/labs/bladespector/Analyzer/MacOS/analyzer', '-d', '/test_project_to_analyze', '-r', '/test_output/output.xlsx', '-t', 'ALTERYX']' returned non-zero exit status 2.
00:09:15 ERROR [d.l.lakebridge.analyze] RuntimeError: Analysis failed
Info: completed execution
Sample Query
`databricks labs lakebridge analyze --profile "Lakebridge" --source-directory "/test_project_to_analyze" --report-file "/test_output/output.xlsx" --source-tech "Alteryx" --log-level=INFO`
Operating System
macOS
Version
latest via Databricks CLI