Slim CI with state comparison
📖 Scenario: You work in a data team that uses dbt to build and maintain data models. Your team wants to speed up the Continuous Integration (CI) process by running tests only on models that have changed since the last successful run.This technique is called Slim CI with state comparison. It helps save time and computing resources by focusing only on changed models.
🎯 Goal: Build a dbt project setup that uses state comparison to identify changed models and runs tests only on those models.You will create a simple dbt model, configure state comparison, and run tests selectively.
📋 What You'll Learn
Create a dbt model file with a simple SQL select statement
Add a variable to specify the path to the previous run's manifest file
Use dbt's --state flag to compare current and previous states
Run tests only on models that have changed since the last run
💡 Why This Matters
🌍 Real World
Slim CI with state comparison helps data teams run tests faster by focusing only on changed models, saving time and computing resources.
💼 Career
Understanding slim CI is valuable for data engineers and analysts working with dbt and modern data workflows to optimize testing and deployment.
Progress0 / 4 steps