Code Monkey home page Code Monkey logo

dbt-impact-action's People

Contributors

hsheth2 avatar tjirab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dbt-impact-action's Issues

Impact analysis fails to run

Error message

+ DBT_ARTIFACT_STATE_PATH=target-previous
+ python /home/runner/work/_actions/acryldata/dbt-impact-action/v1/src/impact_analysis.py
/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/pydantic/_internal/_config.py:261: UserWarning: Valid config keys have changed in V2:
* 'keep_untouched' has been renamed to 'ignored_types'
* 'schema_extra' has been renamed to 'json_schema_extra'
* 'underscore_attrs_are_private' has been removed
  warnings.warn(message, UserWarning)
Traceback (most recent call last):
  File "/home/runner/work/_actions/acryldata/dbt-impact-action/v1/src/impact_analysis.py", line 285, in main
ERROR: 5 validation errors for DatahubClientConfig
    output = dbt_impact_analysis()
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/datahub/telemetry/telemetry.py", line 379, in wrapper
    raise e
  File "/opt/hostedtoolcache/Python/3.10.12/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 230, in dbt_impact_analysis
    graph = get_graph()
  File "/home/runner/work/_actions/acryldata/dbt-impact-action/v1/src/impact_analysis.py", line 26, in get_graph
    DatahubClientConfig(server=DATAHUB_SERVER, token=DATAHUB_TOKEN)
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/pydantic/main.py", line 150, in __init__
    __pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__)
pydantic_core._pydantic_core.ValidationError: 5 validation errors for DatahubClientConfig
timeout_sec
  Field required [type=missing, input_value={'server': 'https://notio......u0w/'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.1.2/v/missing

Impact analysis fails with dbt v1.5.1

+ 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.