-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
docs generate no longer works with dummy profile #3947
Comments
@franciscojavierarceo In what version of dbt was this previously working? The I'd also be curious to hear more about your use case for generating docs without a real database connection.If it's just an ability to visualize your project's DAG lineage, I think there may be workarounds—but as a primary feature of |
@jtcohen6 currently I'm structuring a github action to generate the lineage and docs. For security reasons, we don't want to require a live connection. |
@franciscojavierarceo Would it be possible to include That's the recommended workflow: separate steps for generating documentation and deploying documentation. The former should happen in your dbt deployment, where you're comfortable connecting to the database. The latter should be able to access artifacts from the former, in lieu of its own live database connection. |
I'm in the middle of setting up a "github action to generate the lineage and docs" myself. I am currently using dbt Cloud to I'm basically looking for a place to point people in my org where they can find the descriptions of my models without having to request (read-only) access to dbt Cloud. |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days. |
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest; add a comment to notify the maintainers. |
I also don't want to connect to the actual database for security concerns. Currently, the simplest connection for generating docs I use is dbt-duckdb. Here's a sample target in the sample_project:
outputs:
docs:
path: /tmp/dbt.duckdb
type: duckdb
target: docs
|
Hopefully this can be opened again or re-visited. I work with a few teams in the company and, as a developer, I would love to see their DAGs and understand better how they are developing/deploying their environment. How do other teams generate certain metrics, how do they use those metrics, and what kinds of tests do they typically perform across their metrics? I know that some teams use pre-hooks and post-hooks to determine things like row counts before and after runs to ensure things look right. I'd love to be able to explore this in the I can manually parse through this info on my own but digging through dozens of sql files across multiple folders is... a bit intense. That said, I'm not as interested in the actual data and don't have access anyways. I understand the huge benefit to having connectivity to the database when generating docs but it would be great if you could put a flag on the command that allows you to forego any benefits of connectivity. Something like |
to me it seems like a very big ask to force a valid connection in order to generate docs. In fact i wrote a related gh issue in sqlfluff, a project for linting that includes a dbt engine that forces you to have a valid connection to lint sql files! Seems like dbt is first and most a local machine tool (as i, im an analyst that run dbt exclusively from my machine). This is fine up to certain point, production pipelines dont usually rely on an analyst's computer being turned on :D |
We're also struggling to generate docs as we use temporary VMs to run SQL based processing jobs and there's no database in correct state available when creating docs. It would really help to be able to create bare bones lineage documentation without DB connection. Our models have complex dependencies and without the lineage it's pretty painful to track the dependency chain. |
Describe the bug
Previously I was able to generate dbt docs using a dummy profile, now I am receiving an error from Snowflake suggesting a password is empty.
Steps To Reproduce
my profiles.yml file:
Expected behavior
Successfully generate docs using:
Previously running the code above used to successfully generate docs. Now I receive the error below:
System information
Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using:
Mac
The output of
python --version
:The text was updated successfully, but these errors were encountered: