-
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
feat(dbt): implement subsetting to execute dbt tests #16801
Conversation
3b1082b
to
83b5e63
Compare
75b53f5
to
100586b
Compare
Current dependencies on/for this PR: This comment was auto-generated by Graphite. |
83b5e63
to
228070a
Compare
100586b
to
d6e4af0
Compare
228070a
to
7674850
Compare
d6e4af0
to
7452d4a
Compare
7452d4a
to
da4d111
Compare
1d7128c
to
d2ddd84
Compare
python_modules/libraries/dagster-dbt/dagster_dbt/core/resources_v2.py
Outdated
Show resolved
Hide resolved
python_modules/libraries/dagster-dbt/dagster_dbt/core/resources_v2.py
Outdated
Show resolved
Hide resolved
python_modules/libraries/dagster-dbt/dagster_dbt/asset_utils.py
Outdated
Show resolved
Hide resolved
python_modules/libraries/dagster-dbt/dagster_dbt/core/resources_v2.py
Outdated
Show resolved
Hide resolved
d2ddd84
to
fc31d83
Compare
3d29758
to
a0a3113
Compare
Deploy preview for dagster-docs ready! Preview available at https://dagster-docs-c7wspd4b0-elementl.vercel.app Direct link to changed pages: |
885c787
to
625e26d
Compare
a0a3113
to
be84e88
Compare
625e26d
to
0e0819d
Compare
be84e88
to
b82d4e4
Compare
0e0819d
to
d13e120
Compare
b82d4e4
to
c6d2ef4
Compare
c6d2ef4
to
f6af804
Compare
Deploy preview for dagit-core-storybook ready! ✅ Preview Built with commit f6af804. |
Deploy preview for dagit-storybook ready! ✅ Preview Built with commit f6af804. |
## Summary & Motivation Add the ability to select individual dbt tests when subsetting the execution of a dbt project. Now that users can explicitly select for both tests and models, we should disable dbt's indirect selection: https://docs.getdbt.com/reference/node-selection/test-selection-examples?indirect-selection-mode=empty#indirect-selection. dbt's indirect selection basically controls whether tests are automatically run when a dbt model is built. Previously, in the case for `dbt build`, all tests associated with a dbt model would be run if the model is materialized. Now, we only run the tests that were explicitly selected and are available in the asset definition's context. ## How I Tested These Changes local, pytest
Summary & Motivation
Add the ability to select individual dbt tests when subsetting the execution of a dbt project.
Now that users can explicitly select for both tests and models, we should disable dbt's indirect selection: https://docs.getdbt.com/reference/node-selection/test-selection-examples?indirect-selection-mode=empty#indirect-selection.
dbt's indirect selection basically controls whether tests are automatically run when a dbt model is built. Previously, in the case for
dbt build
, all tests associated with a dbt model would be run if the model is materialized. Now, we only run the tests that were explicitly selected and are available in the asset definition's context.How I Tested These Changes
local, pytest