Repository: dbt-labs/dbt-core

Issue:
Bump run_results.json and manifest.json artifact schema versions
### Description
We introduced some changes to a few artifacts:
#### Added to test node properties:
- `failures` (test node message is now a string message with helpful info instead of just the number of failures)
#### Added to the test node config properties:
- `where`
- `limit`
- `store_failures`
- `fail_calc`
- `warn_if`
- `error_if`
#### Added to add node properties:
- `compiled_path`
- `created_at`
#### Added to exposure node properties:
- `meta`
- `tags`
#### Changed on test node:
- `kwargs` is no longer a required field
#### New default value for test node config schema property
- `None` -> `dbt_test__audit`

We should bump the version for the schemas describing `run_results.json` and `manifest.json`. 


Discussion:

Resolving patch:
diff --git a/core/dbt/contracts/graph/manifest.py b/core/dbt/contracts/graph/manifest.py
--- a/core/dbt/contracts/graph/manifest.py
+++ b/core/dbt/contracts/graph/manifest.py
@@ -1081,7 +1081,7 @@ def __init__(self, macros):
 
 
 @dataclass
-@schema_version('manifest', 1)
+@schema_version('manifest', 2)
 class WritableManifest(ArtifactMixin):
     nodes: Mapping[UniqueID, ManifestNode] = field(
         metadata=dict(description=(
diff --git a/core/dbt/contracts/results.py b/core/dbt/contracts/results.py
--- a/core/dbt/contracts/results.py
+++ b/core/dbt/contracts/results.py
@@ -94,7 +94,7 @@ class BaseResult(dbtClassMixin):
     thread_id: str
     execution_time: float
     adapter_response: Dict[str, Any]
-    message: Optional[Union[str, int]]
+    message: Optional[str]
     failures: Optional[int]
 
     @classmethod
@@ -184,7 +184,7 @@ def write(self, path: str):
 
 
 @dataclass
-@schema_version('run-results', 1)
+@schema_version('run-results', 2)
 class RunResultsArtifact(ExecutionResult, ArtifactMixin):
     results: Sequence[RunResultOutput]
     args: Dict[str, Any] = field(default_factory=dict)


Test patch:
diff --git a/test/integration/029_docs_generate_tests/test_docs_generate.py b/test/integration/029_docs_generate_tests/test_docs_generate.py
--- a/test/integration/029_docs_generate_tests/test_docs_generate.py
+++ b/test/integration/029_docs_generate_tests/test_docs_generate.py
@@ -1096,7 +1096,7 @@ def expected_seeded_manifest(self, model_database=None, quote_model=False):
         )
 
         return {
-            'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v1.json',
+            'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v2.json',
             'dbt_version': dbt.version.__version__,
             'nodes': {
                 'model.test.model': {
@@ -1683,7 +1683,7 @@ def expected_postgres_references_manifest(self, model_database=None):
         snapshot_path = self.dir('snapshot/snapshot_seed.sql')
 
         return {
-            'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v1.json',
+            'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v2.json',
             'dbt_version': dbt.version.__version__,
             'nodes': {
                 'model.test.ephemeral_copy': {
@@ -2206,7 +2206,7 @@ def expected_bigquery_complex_manifest(self):
         my_schema_name = self.unique_schema()
 
         return {
-            'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v1.json',
+            'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v2.json',
             'dbt_version': dbt.version.__version__,
             'nodes': {
                 'model.test.clustered': {
@@ -2698,7 +2698,7 @@ def expected_redshift_incremental_view_manifest(self):
         snapshot_path = self.dir('snapshot/snapshot_seed.sql')
 
         return {
-            'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v1.json',
+            'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v2.json',
             'dbt_version': dbt.version.__version__,
             'nodes': {
                 'model.test.model': {
@@ -2962,7 +2962,7 @@ def verify_manifest(self, expected_manifest):
             elif key == 'metadata':
                 metadata = manifest['metadata']
                 self.verify_metadata(
-                    metadata, 'https://schemas.getdbt.com/dbt/manifest/v1.json')
+                    metadata, 'https://schemas.getdbt.com/dbt/manifest/v2.json')
                 assert 'project_id' in metadata and metadata[
                     'project_id'] == '098f6bcd4621d373cade4e832627b4f6'
                 assert 'send_anonymous_usage_stats' in metadata and metadata[
@@ -3103,7 +3103,7 @@ def verify_run_results(self, expected_run_results):
         run_results = _read_json('./target/run_results.json')
         assert 'metadata' in run_results
         self.verify_metadata(
-            run_results['metadata'], 'https://schemas.getdbt.com/dbt/run-results/v1.json')
+            run_results['metadata'], 'https://schemas.getdbt.com/dbt/run-results/v2.json')
         self.assertIn('elapsed_time', run_results)
         self.assertGreater(run_results['elapsed_time'], 0)
         self.assertTrue(
diff --git a/test/unit/test_manifest.py b/test/unit/test_manifest.py
--- a/test/unit/test_manifest.py
+++ b/test/unit/test_manifest.py
@@ -271,7 +271,7 @@ def test__no_nodes(self):
                 'child_map': {},
                 'metadata': {
                     'generated_at': '2018-02-14T09:15:13Z',
-                    'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v1.json',
+                    'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v2.json',
                     'dbt_version': dbt.version.__version__,
                     'env': {ENV_KEY_NAME: 'value'},
                     # invocation_id is None, so it will not be present
@@ -417,7 +417,7 @@ def test_no_nodes_with_metadata(self, mock_user):
                 'docs': {},
                 'metadata': {
                     'generated_at': '2018-02-14T09:15:13Z',
-                    'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v1.json',
+                    'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v2.json',
                     'dbt_version': dbt.version.__version__,
                     'project_id': '098f6bcd4621d373cade4e832627b4f6',
                     'user_id': 'cfc9500f-dc7f-4c83-9ea7-2c581c1b38cf',
@@ -660,7 +660,7 @@ def test__no_nodes(self):
                 'child_map': {},
                 'metadata': {
                     'generated_at': '2018-02-14T09:15:13Z',
-                    'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v1.json',
+                    'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v2.json',
                     'dbt_version': dbt.version.__version__,
                     'invocation_id': '01234567-0123-0123-0123-0123456789ab',
                     'env': {ENV_KEY_NAME: 'value'},