From 7f1df6b6df2c04e217884d590e8bf9e7c4a971a9 Mon Sep 17 00:00:00 2001 From: Mirna Wong <89008547+mirnawong1@users.noreply.github.com> Date: Mon, 5 Aug 2024 09:26:08 +0100 Subject: [PATCH] Update validation.md remove dbt core validation command and add ci semantic validation. slack thread here: https://dbt-labs.slack.com/archives/C03KHQRQUBX/p1722535059304309?thread_ts=1722215844.627059&cid=C03KHQRQUBX --- website/docs/docs/build/validation.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/website/docs/docs/build/validation.md b/website/docs/docs/build/validation.md index 02ce48729a4..aab13a1907b 100644 --- a/website/docs/docs/build/validation.md +++ b/website/docs/docs/build/validation.md @@ -15,13 +15,16 @@ The code that handles validation [can be found here](https://github.com/dbt-labs ## Validations command -You can run validations from dbt Cloud or the command line with the following [MetricFlow commands](/docs/build/metricflow-commands): +You can run validations against the defined semantic model configurations from the command line with the following [MetricFlow commands](/docs/build/metricflow-commands): + +Note, in dbt Cloud you don't need to validate the Semantic Layer config separately. Running a dbt command (such as dbt parse, dbt build, dbt compile, dbt run) automatically checks it. ```bash -dbt sl validate-configs # dbt Cloud users mf validate-configs # dbt Core users ``` +You can run semantic validations in a CI job to guarantee any code changes made to dbt models don't break these metrics. For more information, refer to [semantic validation in CI](/docs/deploy/ci-jobs#semantic-validations-in-ci). + ## Parsing In this validation step, we ensure your config files follow the defined schema for each semantic graph object and can be parsed successfully. It validates the schema for the following core objects: