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

[Epic] state:modified should Actually (only) select the modified resources #9562

Closed
6 of 8 tasks
graciegoheen opened this issue Feb 13, 2024 · 5 comments
Closed
6 of 8 tasks
Assignees
Labels
Milestone

Comments

@graciegoheen
Copy link
Contributor

graciegoheen commented Feb 13, 2024

We currently call out a lot of caveats to state comparison in our docs.

There are many scenarios where executing dbt list --select state:modified over or under selects the appropriate resources. This leads to:

  • confusion "why are these models selected as state:modified, I haven't changed them"
  • performance concerns "why am I running 60 models when I only changed 2"
  • potentially bad code sneaking it's way into production "i checked my changes using a Slim CI job, but these models weren't run, now production is broken"

While it's unlikely we can cover ever single edge case here, we should improve state:modified so that it Ideally actually only selects the modified resources.

This epic will track the relevant bugs/enhancements related to state:modified.

p1

  1. paper_cut state state: modified
  2. Refinement bug state: modified
@graciegoheen graciegoheen changed the title [Epic] state:modified should Actually only select the modified resources [Epic] state:modified should Actually (only) select the modified resources Feb 13, 2024
@matt-winkler
Copy link
Contributor

What would be lost by disallowing env-aware logic outside the dbt_project.yml?

@patkearns10
Copy link

Lots of examples here: https://discourse.getdbt.com/t/why-are-ci-jobs-state-method-building-more-less-models-nodes-than-expected/7504
An example of env_var logic here , which seems impossible to keep out of state:modified

@graciegoheen
Copy link
Contributor Author

For those following along, would love to hear your thoughts over in this discussion #10518

@graciegoheen
Copy link
Contributor Author

Closing this EPIC since we wrapped the issues that will be going out in 1.9 - queued up the remaining issues for 1.10

@FishtownBuildBot
Copy link
Collaborator

Opened a new issue in dbt-labs/docs.getdbt.com: dbt-labs/docs.getdbt.com#6538

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants