brooklyn-data / dbt_artifacts

A dbt package for modelling dbt metadata. https://brooklyn-data.github.io/dbt_artifacts
Apache License 2.0
319 stars 117 forks source link

[Bug]: Environment variable DBT_ARTIFACT_STATE_PATH has been renamed to DBT_STATE #359

Closed jakobfloe closed 1 year ago

jakobfloe commented 1 year ago

Overview

12:31:33 [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.

How to reproduce

Simply run a job in dbt cloud.

Expected behaviour

No warnings in system logs

Environment

dbt cloud v. 1.5

Please paste the contents of your packages.yml file here:

packages:

glsdown commented 1 year ago

Hi @jakobfloe thanks for commenting.

I believe this is related to dbt and not dbt_artifacts as in their 1.5 release they renamed some environment variables. I am not able to replicate the issue that you are having and I can't see that we use that variable anywhere. Can you search your code base to see if you explicitly use the DBT_ARTIFACT_STATE_PATH environment variable anywhere in your project please?

glsdown commented 1 year ago

I'm closing this issue as it seems like it's an upstream problem and not related to this package. Please let me know if it's been closed in error though.