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

Run models and then their tests, before running downstream models, as part of dbt run #3332

Closed
friendofasquid opened this issue May 10, 2021 · 3 comments
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@friendofasquid
Copy link

Describe the feature

The current dbt flowis dbt run then dbt test, but what if tests ran as part of dbt run, where after each model was built, the tests ran. Then we can halt processing models downstream from the failed ones.

Describe alternatives you've considered

No obvious alternatives here.

Additional context

Would be relevant across the board.

Who will this benefit?

Anyone who uses tests and wants to preserve correct models over up-to-date ones

Are you interested in contributing this feature?

Not at this time.

@friendofasquid friendofasquid added enhancement New feature or request triage labels May 10, 2021
@friendofasquid
Copy link
Author

If I understand #2743 , this may be a duplicate.

@friendofasquid
Copy link
Author

And possibly #2234.

@jtcohen6 jtcohen6 added duplicate This issue or pull request already exists and removed triage labels May 10, 2021
@jtcohen6
Copy link
Contributor

@friendofasquid I'm all about this! It's very much the goal of #2743. Rather than changing the behavior of the existing run or test tasks, it proposes a new task type that would do just the thing you suggest, as well as seeding seeds, snapshottint snapshots, and so on. That's something I hope to attempt in the next few months.

I'm going to close this as a duplicate in the meantime, but I'm tremendously appreciative of your opening it, as it's good to confirm that this is something people want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants