meltano invoke fails on dbt
What is the current bug behavior?
What is happening now?
Running meltano invoke dbt
doesn't use the dbt project in transform/
.
What is the expected correct behavior?
What should be happening?
A user should be able to leverage 100% of dbt using meltano invoke
.
Steps to reproduce
How one can reproduce the issue?
meltano invoke dbt archive
doesn't work.
Relevant logs and/or screenshots
Please use code blocks (```) to format console output
~/.meltano_projects/carbon_pg
(meltano) ❯ meltano invoke dbt archive
Encountered an error:
Runtime Error
fatal: Not a dbt project (or any of the parent directories). Missing dbt_project.yml file
Possible fixes
If you can, link to the line of code that might be responsible for the problem or suggest a fix
The problem is that the DbtService
is responsible for setting the proper working directory for running the dbt
subprocess, but in fact this should be delegated to the DbtPlugin.before_invoke
hook.
Further regression test
Ensure we automatically catch similar issues in the future
-
Write additional adequate test cases and submit test results -
Test results should be reviewed by a person from the team