-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add "test" log level #3977
Comments
Agree with both goals: it should be easy to test dbt-core, and easy to find useful information in debug-level logs to see what dbt is doing under the hood. We regularly need to use debug logs for (what else) debugging issues that crop up in community members' projects. One complication: I also know we've talked about moving away from |
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. |
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. |
Describe the feature
There are a lot of tests that test for the presence of specific lines in debug-level logs that really don't need to be part of the user-facing debug-level output. This pattern is by far the easiest method of testing many of the difficult-to-test deep internals of core, so it is expected that the debug log level will become even more diluted for users.
See the static parser for an example.
To fix this, we should introduce a new log-level
test
(open to alternative names likedev
,automation
,correctness
,testing
,tests
,integration
or whatever) that we can use use in our integration tests. This keeps the debug level free from clutter for users, and still allows core contributors and developers to add new tests with the same pattern we do today.Describe alternatives you've considered
Who will this benefit?
dbt users who use the debug log level to debug their dbt runs. The dbtLabs support department who may ask customers to run dbt with the debug flag and interpret the results.
The text was updated successfully, but these errors were encountered: