Untag staging and intermediate models #114
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Checklist
PR Structure
otherwise).
Thoroughness
Release planning
semver, and I've changed the name of the BRANCH to major/* , minor/* or patch/* .
What
Addresses https://stellarorg.atlassian.net/browse/HUBBLE-576
Untags staging and intermediate models so that the models aren't unnecessarily built based on tags.
Why
Airflow executes dbt models according to tags. Some upstream models were tagged unnecessarily and rebuilt every dbt run. (ie,
enriched_history_operations
) this was causing dbt tests to fail if there were data delays, causing noisy alerts.This change pushes model dependency management back into dbt. Models should be rebuilt using
dbt --select +tag:<tag>
. This will ensure models are only built when the downstream mart model executes, reducing noise and test execution.Known limitations
This PR must be released with corresponding Airflow changes to introduce
+
node selection to dbt model execution commands. If we are pushing dependency management into dbt, the command must rebuild dependent models.