Open benedikt-buchert opened 3 months ago
To make this even more perfect a full refresh can be tried if the first one fails.
If full refresh succeeds a warning comment can be added by the workflow that there is a breaking schema change.
This can be adjusted to also run full refresh for these models in prod too.
PR for feature 1: https://github.com/bruno-szdl/dbt-ci-cd/pull/24
When testing incremental models in ci it may happen they succeed even though they fail on prod this can be worked around as described here:
https://docs.getdbt.com/best-practices/clone-incremental-models
dbt clone --select state:modified+,config.materialized:incremental,state:old
Then
dbt build --select state:modified+