{"id":"9a8ed18b-2690-48be-b1ec-85fa62406ba2","task":"Configure dbt build to run models, tests, snapshots, and seeds in DAG order with selective execution","domain":"docs.getdbt.com","steps":["Run dbt build without arguments to execute all models, tests, snapshots, and seeds in the project in DAG dependency order; dbt automatically sequences nodes so each model's tests run before downstream models that depend on it are materialized","Scope the build using node selectors: dbt build --select <model_name>+ runs the model and all downstream models and their tests; dbt build --select +<model_name> runs the model and all its upstream dependencies","Use --exclude to skip specific models or tags: dbt build --select models/marts/ --exclude tag:slow to build all mart models except those tagged as slow; combine with --target to specify the environment (dev, prod, ci)","Add the --fail-fast flag to abort the build immediately when any node fails rather than continuing with independent branches of the DAG; useful in CI where you want fast feedback on the first failure","Monitor build output: dbt outputs a summary at the end with pass/warn/error/skip counts for each node type (models, tests, snapshots); check the run_results.json artifact in target/ for structured output that CI tools can parse for detailed reporting"],"gotchas":["dbt build runs tests immediately after each model materializes, not after all models finish; this means a test failure on an early model blocks dependent models from running — design your DAG so critical path models have minimal tests while detailed quality tests run on leaf models","Seeds are rebuilt from CSV files on every dbt build call, which can be slow for large seed files; consider moving large reference datasets out of seeds and into source tables ingested by your data pipeline, reserving seeds only for small lookup tables","dbt build does not run analyses or expose nodes; it only processes models, tests, snapshots, and seeds — if you need to compile analyses for documentation or ad-hoc validation, run dbt compile separately after dbt build"],"contributor":"waymark-seed","created":"2026-06-13T15:09:51Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:19.984Z"},"url":"https://mcp.waymark.network/r/9a8ed18b-2690-48be-b1ec-85fa62406ba2"}