From 62635aa804a7d700e543539104185b095b3de2d0 Mon Sep 17 00:00:00 2001 From: Kshitij Aranke Date: Mon, 5 Jun 2023 10:12:19 -0700 Subject: [PATCH 1/7] Add `run-operation` command to `run_results.json` This will be true in dbt 1.6+ --- website/docs/reference/artifacts/run-results-json.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/website/docs/reference/artifacts/run-results-json.md b/website/docs/reference/artifacts/run-results-json.md index c77d2c75b2a..6d7329dc671 100644 --- a/website/docs/reference/artifacts/run-results-json.md +++ b/website/docs/reference/artifacts/run-results-json.md @@ -5,7 +5,15 @@ sidebar_label: "Run results" **Current schema**: [`v4`](https://schemas.getdbt.com/dbt/run-results/v4/index.html) -**Produced by:** [`build`](/reference/commands/build) [`compile`](/reference/commands/compile) [`docs generate`](/reference/commands/cmd-docs) [`seed`](/reference/commands/seed) [`snapshot`](/reference/commands/snapshot) [`test`](/reference/commands/test) [`run`](/reference/commands/run) +**Produced by:** +[`build`](/reference/commands/build) +[`compile`](/reference/commands/compile) +[`docs generate`](/reference/commands/cmd-docs) +[`run`](/reference/commands/run) +[`run-operation`](/reference/commands/run-operation) +[`seed`](/reference/commands/seed) +[`snapshot`](/reference/commands/snapshot) +[`test`](/reference/commands/test) This file contains information about a completed invocation of dbt, including timing and status info for each node (model, test, etc) that was executed. In aggregate, many `run_results.json` can be combined to calculate average model runtime, test failure rates, the number of record changes captured by snapshots, etc. From 737c0b6a9cdeef069f8082680908a8a57f358bea Mon Sep 17 00:00:00 2001 From: Kshitij Aranke Date: Mon, 5 Jun 2023 10:26:54 -0700 Subject: [PATCH 2/7] Add version blocks --- .../reference/artifacts/run-results-json.md | 31 +++++++++++++------ 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/website/docs/reference/artifacts/run-results-json.md b/website/docs/reference/artifacts/run-results-json.md index 6d7329dc671..b77b0518f10 100644 --- a/website/docs/reference/artifacts/run-results-json.md +++ b/website/docs/reference/artifacts/run-results-json.md @@ -5,15 +5,28 @@ sidebar_label: "Run results" **Current schema**: [`v4`](https://schemas.getdbt.com/dbt/run-results/v4/index.html) -**Produced by:** -[`build`](/reference/commands/build) -[`compile`](/reference/commands/compile) -[`docs generate`](/reference/commands/cmd-docs) -[`run`](/reference/commands/run) -[`run-operation`](/reference/commands/run-operation) -[`seed`](/reference/commands/seed) -[`snapshot`](/reference/commands/snapshot) -[`test`](/reference/commands/test) + + **Produced by:** + [`build`](/reference/commands/build) + [`compile`](/reference/commands/compile) + [`docs generate`](/reference/commands/cmd-docs) + [`run`](/reference/commands/run) + [`seed`](/reference/commands/seed) + [`snapshot`](/reference/commands/snapshot) + [`test`](/reference/commands/test) + + + + **Produced by:** + [`build`](/reference/commands/build) + [`compile`](/reference/commands/compile) + [`docs generate`](/reference/commands/cmd-docs) + [`run`](/reference/commands/run) + [`run-operation`](/reference/commands/run-operation) + [`seed`](/reference/commands/seed) + [`snapshot`](/reference/commands/snapshot) + [`test`](/reference/commands/test) + This file contains information about a completed invocation of dbt, including timing and status info for each node (model, test, etc) that was executed. In aggregate, many `run_results.json` can be combined to calculate average model runtime, test failure rates, the number of record changes captured by snapshots, etc. From 7c41afdd625854d22190007a9d1264adbdea1f85 Mon Sep 17 00:00:00 2001 From: Kshitij Aranke Date: Mon, 5 Jun 2023 10:51:11 -0700 Subject: [PATCH 3/7] Move version block inline --- .../reference/artifacts/run-results-json.md | 31 ++++++------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/website/docs/reference/artifacts/run-results-json.md b/website/docs/reference/artifacts/run-results-json.md index b77b0518f10..522381f67e8 100644 --- a/website/docs/reference/artifacts/run-results-json.md +++ b/website/docs/reference/artifacts/run-results-json.md @@ -5,28 +5,15 @@ sidebar_label: "Run results" **Current schema**: [`v4`](https://schemas.getdbt.com/dbt/run-results/v4/index.html) - - **Produced by:** - [`build`](/reference/commands/build) - [`compile`](/reference/commands/compile) - [`docs generate`](/reference/commands/cmd-docs) - [`run`](/reference/commands/run) - [`seed`](/reference/commands/seed) - [`snapshot`](/reference/commands/snapshot) - [`test`](/reference/commands/test) - - - - **Produced by:** - [`build`](/reference/commands/build) - [`compile`](/reference/commands/compile) - [`docs generate`](/reference/commands/cmd-docs) - [`run`](/reference/commands/run) - [`run-operation`](/reference/commands/run-operation) - [`seed`](/reference/commands/seed) - [`snapshot`](/reference/commands/snapshot) - [`test`](/reference/commands/test) - + **Produced by:** + [`build`](/reference/commands/build) + [`compile`](/reference/commands/compile) + [`docs generate`](/reference/commands/cmd-docs) + [`run`](/reference/commands/run) + [`run-operation`](/reference/commands/run-operation) + [`seed`](/reference/commands/seed) + [`snapshot`](/reference/commands/snapshot) + [`test`](/reference/commands/test) This file contains information about a completed invocation of dbt, including timing and status info for each node (model, test, etc) that was executed. In aggregate, many `run_results.json` can be combined to calculate average model runtime, test failure rates, the number of record changes captured by snapshots, etc. From e041a6e02e26d41a727dd40e8712e9a320852c88 Mon Sep 17 00:00:00 2001 From: Kshitij Aranke Date: Mon, 5 Jun 2023 10:56:59 -0700 Subject: [PATCH 4/7] Unindent `VersionBlock` --- website/docs/reference/artifacts/run-results-json.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/reference/artifacts/run-results-json.md b/website/docs/reference/artifacts/run-results-json.md index 522381f67e8..b746e9a4ffa 100644 --- a/website/docs/reference/artifacts/run-results-json.md +++ b/website/docs/reference/artifacts/run-results-json.md @@ -10,7 +10,7 @@ sidebar_label: "Run results" [`compile`](/reference/commands/compile) [`docs generate`](/reference/commands/cmd-docs) [`run`](/reference/commands/run) - [`run-operation`](/reference/commands/run-operation) +[`run-operation`](/reference/commands/run-operation) [`seed`](/reference/commands/seed) [`snapshot`](/reference/commands/snapshot) [`test`](/reference/commands/test) From a40dc83711366aed09620b5f0d6f70ec7ee0c8d7 Mon Sep 17 00:00:00 2001 From: Kshitij Aranke Date: Mon, 5 Jun 2023 12:06:40 -0700 Subject: [PATCH 5/7] Try multi-line --- website/docs/reference/artifacts/run-results-json.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/docs/reference/artifacts/run-results-json.md b/website/docs/reference/artifacts/run-results-json.md index b746e9a4ffa..06728334b76 100644 --- a/website/docs/reference/artifacts/run-results-json.md +++ b/website/docs/reference/artifacts/run-results-json.md @@ -10,7 +10,9 @@ sidebar_label: "Run results" [`compile`](/reference/commands/compile) [`docs generate`](/reference/commands/cmd-docs) [`run`](/reference/commands/run) -[`run-operation`](/reference/commands/run-operation) + + [`run-operation`](/reference/commands/run-operation) + [`seed`](/reference/commands/seed) [`snapshot`](/reference/commands/snapshot) [`test`](/reference/commands/test) From b649000c7948cd9b268a2dec5fbe24039b338911 Mon Sep 17 00:00:00 2001 From: mirnawong1 <89008547+mirnawong1@users.noreply.github.com> Date: Wed, 7 Jun 2023 12:03:57 +0100 Subject: [PATCH 6/7] Update run-results-json.md --- website/docs/reference/artifacts/run-results-json.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/website/docs/reference/artifacts/run-results-json.md b/website/docs/reference/artifacts/run-results-json.md index 06728334b76..b746e9a4ffa 100644 --- a/website/docs/reference/artifacts/run-results-json.md +++ b/website/docs/reference/artifacts/run-results-json.md @@ -10,9 +10,7 @@ sidebar_label: "Run results" [`compile`](/reference/commands/compile) [`docs generate`](/reference/commands/cmd-docs) [`run`](/reference/commands/run) - - [`run-operation`](/reference/commands/run-operation) - +[`run-operation`](/reference/commands/run-operation) [`seed`](/reference/commands/seed) [`snapshot`](/reference/commands/snapshot) [`test`](/reference/commands/test) From b6af189d884e65093da890953d88e574ae144b1c Mon Sep 17 00:00:00 2001 From: mirnawong1 Date: Wed, 7 Jun 2023 12:39:07 +0100 Subject: [PATCH 7/7] fix versioning --- website/docs/reference/artifacts/run-results-json.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/reference/artifacts/run-results-json.md b/website/docs/reference/artifacts/run-results-json.md index b746e9a4ffa..c421e8ea5f3 100644 --- a/website/docs/reference/artifacts/run-results-json.md +++ b/website/docs/reference/artifacts/run-results-json.md @@ -10,10 +10,10 @@ sidebar_label: "Run results" [`compile`](/reference/commands/compile) [`docs generate`](/reference/commands/cmd-docs) [`run`](/reference/commands/run) -[`run-operation`](/reference/commands/run-operation) [`seed`](/reference/commands/seed) [`snapshot`](/reference/commands/snapshot) - [`test`](/reference/commands/test) + [`test`](/reference/commands/test) [`run-operation`](/reference/commands/run-operation) + This file contains information about a completed invocation of dbt, including timing and status info for each node (model, test, etc) that was executed. In aggregate, many `run_results.json` can be combined to calculate average model runtime, test failure rates, the number of record changes captured by snapshots, etc.