-
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
Expand --greedy test selection to have a flag in profile.yml file #3997
Comments
@isaac-taylor Thanks for the issue, and glad you're getting benefit out of the I'd love to have your help with this one. The good news is, it's easier than ever before—in the lead-up to v1.0, we've significantly simplified the logic to working with global flags / user settings in dbt. There are two main changes you'd need to make:
If we're going to add In the meantime, @joellabes and I are going to spend some time writing up "In defence of lazy expansion." I still stand by the switch, in v0.20, to less-greedy test selection, when you're only selecting a specific subset of project resources—but I think it's high time to provide a more thorough account of our rationale. In the meantime, it doesn't hurt to make it more configurable for users who disagree, or (better yet) who might want different behavior in dev vs. CI vs. prod. |
Describe the feature
Starting in 0.20.0 test selection was changed to be less greedy meaning that things like relationship tests which depend on more than one model are not selected by default on single model test runs. @joellabes has a great PR to enable a
--greedy
flag in 0.21.0. It would be a great if you could enable this feature the same way you could enable partial parse or other configuration options and make it the default.Describe alternatives you've considered
The alternative, which is the current system, is to just have
--greedy
on each test run. There's nothing explicitly wrong with this but it is tedious.Who will this benefit?
To my mind this will benefit a lot of dbt users; its always better imho to over test rather than undertest and since we have many tests that rely on multiple models, we prefer greedy test selection to less greedy selection. Of course this is a matter of preference though I know from seeing other people asking on slack that others feel similarly.
Are you interested in contributing this feature?
I've never contributed to a public repo actually but I love using dbt so if I could get some help getting started I'd be super excited to contribute!
The text was updated successfully, but these errors were encountered: