Impact analysis fails with dbt v1.5.1
ADraginda opened this issue · 0 comments
ADraginda commented
+ python /home/runner/work/_actions/acryldata/dbt-impact-action/v1/src/impact_analysis.py
Traceback (most recent call last):
File "/home/runner/work/_actions/acryldata/dbt-impact-action/v1/src/impact_analysis.py", line 82, in determine_changed_dbt_models
dbt_info: DbtNodeInfo = json.loads(line)
File "/opt/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/opt/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/runner/work/_actions/acryldata/dbt-impact-action/v1/src/impact_analysis.py", line 265, in main
output = dbt_impact_analysis()
File "/opt/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/site-packages/datahub/telemetry/telemetry.py", line 379, in wrapper
raise e
File "/opt/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/site-packages/datahub/telemetry/telemetry.py", line 334, in wrapper
res = func(*args, **kwargs)
File "/home/runner/work/_actions/acryldata/dbt-impact-action/v1/src/impact_analysis.py", line 214, in dbt_impact_analysis
changed_dbt_nodes = determine_changed_dbt_models()
File "/home/runner/work/_actions/acryldata/dbt-impact-action/v1/src/impact_analysis.py", line 88, in determine_changed_dbt_models
raise ImpactAnalysisError("Failed to parse dbt output") from e
ImpactAnalysisError: Failed to parse dbt output
Unable to determine changed dbt models: Expecting value: line 1 column 1 (char 0). Output was 21:10:02 Running with dbt=1.5.1
21:10:02 [WARNING]: Deprecated functionality
The environment variable `DBT_ARTIFACT_STATE_PATH` has been renamed as
`DBT_STATE`. If `DBT_ARTIFACT_STATE_PATH` is currently set, its value will be
used instead of `DBT_STATE`. Set `DBT_STATE` and unset `DBT_ARTIFACT_STATE_PATH`
to avoid this deprecation warning and ensure it works properly in a future
release.
21:10:03 Found ...[redacted].. models
{}
{}
ERROR: Failed to parse dbt output