Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edr --project-dir is not used when edr calls an underlying dbt command #1720

Open
michael-c-hoffman opened this issue Oct 9, 2024 · 1 comment
Labels
Bug Something isn't working Triage 👀

Comments

@michael-c-hoffman
Copy link

michael-c-hoffman commented Oct 9, 2024

Describe the bug
When running edr report --project-dir <myprojectdir> when edr runs an underlying dbt command it does not use the supplied project-dir, but instead the project-dir from where edr is installed to.
Is it possible to utilize an existing dbt project when running the edr commands? or does edr require using it's internal dbt installation and configurations?

To Reproduce
Steps to reproduce the behavior:

  1. Run edr report with specifying the project-dir option to point to an existing dbt installation
  2. See error
edr report --project-dir /project/
024-10-08 19:59:47 — INFO — Running dbt command --log-format json run-operation elementary.log_macro_results --args {"macro_name": "elementary_cli.get_test_results", "macro_args": {"days_back": 7, "invocations_per_test": 720, "disable_passed_test_metrics": false}} --project-dir /usr/local/python/3.12.6/lib/python3.12/site-packages/elementary/monitor/dbt_project

Expected behavior

edr report --project-dir /project/
024-10-08 19:59:47 — INFO — Running dbt command --log-format json run-operation elementary.log_macro_results --args {"macro_name": "elementary_cli.get_test_results", "macro_args": {"days_back": 7, "invocations_per_test": 720, "disable_passed_test_metrics": false}} --project-dir /project/

Environment (please complete the following information):

  • Elementary CLI (edr) version: [0.16.1]
  • Elementary dbt package version: [0.16.1], can be found in packages.yml file
  • dbt version [1.8.6]
  • Data warehouse [snowflake] - version 1.8.3

Additional context
Add any other context about the problem here.

Would you be willing to contribute a fix for this issue?
Let us know if you're willing to contribute so that we'll be able to provide guidance.

@michael-c-hoffman michael-c-hoffman added Bug Something isn't working Triage 👀 labels Oct 9, 2024
@macklin-fluehr
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Triage 👀
Projects
None yet
Development

No branches or pull requests

2 participants