Preset Checks
In a dbt project, there may be some checks that need to be conducted for every PR. For example, this could be an SQL query, or checking whether an important model has had a schema change.
Preset checks can be the fixed checks that are generated every time a new Recce instance is initiated.
Configure the Preset Check
To configure the preset checks, add the settings to the recce config file.
- Add a check to your checklist
- Open the menu for the check and select Get Preset Check Template.
-
Paste the config into the
recce.yml
file located at the root of the project:
Create the Preset Checks
Recce Server
- When a new Recce instance is launched, all preset checks are automatically set up, but these checks are not executed at this time.
- When the Run Query button is pressed, the check will be executed.
Recce Run
- Running
recce run
executes all preset checks. The default output file is recce_state.json.$ recce run ───────────────────────────────── DBT Artifacts ───────────────────────────────── Base: Manifest: 2024-04-10 08:54:41.546402+00:00 Catalog: 2024-04-10 08:54:42.251611+00:00 Current: Manifest: 2024-04-22 03:24:11.262489+00:00 Catalog: 2024-04-10 06:15:13.813125+00:00 ───────────────────────────────── Preset checks ───────────────────────────────── Recce Preset Checks ────────────────────────────────────────────────────────────────────────────── Status Name Type Execution Time Failed Reason ────────────────────────────────────────────────────────────────────────────── [Success] Query of customers Query Diff 0.10 seconds N/A ────────────────────────────────────────────────────────────────────────────── The state file is stored at [recce_state.json]
- You can view the check results by launching the recce server.
- You can show the summary of the state by the recce summary command