Skip to content

Commit cc1d345

Browse files
authored
Add defaults on pipelines that terraform applies (#2787)
## Changes Set defaults for pipelines: edition and channel, same as added by terraform. ## Why See #2767 ## Tests Existing tests.
1 parent 5c9b188 commit cc1d345

File tree

13 files changed

+62
-11
lines changed

13 files changed

+62
-11
lines changed

acceptance/bundle/override/pipeline_cluster/output.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
>>> [CLI] bundle validate -o json -t development
33
{
44
"foo": {
5+
"channel": "CURRENT",
56
"clusters": [
67
{
78
"label": "default",
@@ -16,6 +17,7 @@
1617
"kind": "BUNDLE",
1718
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/override_pipeline_cluster/development/state/metadata.json"
1819
},
20+
"edition": "ADVANCED",
1921
"name": "job",
2022
"permissions": []
2123
}
@@ -24,6 +26,7 @@
2426
>>> [CLI] bundle validate -o json -t staging
2527
{
2628
"foo": {
29+
"channel": "CURRENT",
2730
"clusters": [
2831
{
2932
"label": "default",
@@ -38,6 +41,7 @@
3841
"kind": "BUNDLE",
3942
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/override_pipeline_cluster/staging/state/metadata.json"
4043
},
44+
"edition": "ADVANCED",
4145
"name": "job",
4246
"permissions": []
4347
}

acceptance/bundle/paths/invalid_pipeline_globs/output.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Exit code: 1
88
"resources": {
99
"pipelines": {
1010
"nyc_taxi_pipeline": {
11+
"channel": "CURRENT",
12+
"edition": "ADVANCED",
1113
"libraries": [
1214
{
1315
"notebook": {

acceptance/bundle/paths/pipeline_expected_file_got_notebook/output.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Exit code: 1
88
"resources": {
99
"pipelines": {
1010
"nyc_taxi_pipeline": {
11+
"channel": "CURRENT",
12+
"edition": "ADVANCED",
1113
"libraries": [
1214
{
1315
"file": {

acceptance/bundle/paths/pipeline_globs/output.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
"resources": {
55
"pipelines": {
66
"nyc_taxi_pipeline": {
7+
"channel": "CURRENT",
78
"deployment": {
89
"kind": "BUNDLE",
910
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/pipeline_glob_paths/default/state/metadata.json"
1011
},
12+
"edition": "ADVANCED",
1113
"libraries": [
1214
{
1315
"notebook": {

acceptance/bundle/python/pipelines-support/output.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,22 @@
1414
"resources": {
1515
"pipelines": {
1616
"my_pipeline_1": {
17+
"channel": "CURRENT",
1718
"deployment": {
1819
"kind": "BUNDLE",
1920
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/my_project/default/state/metadata.json"
2021
},
22+
"edition": "ADVANCED",
2123
"name": "My Pipeline 1 (updated)",
2224
"permissions": []
2325
},
2426
"my_pipeline_2": {
27+
"channel": "CURRENT",
2528
"deployment": {
2629
"kind": "BUNDLE",
2730
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/my_project/default/state/metadata.json"
2831
},
32+
"edition": "ADVANCED",
2933
"name": "My Pipeline 2 (updated)",
3034
"permissions": []
3135
}

acceptance/bundle/templates/default-python/integration_classic/out.validate.dev.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
},
117117
"pipelines": {
118118
"project_name_[UNIQUE_NAME]_pipeline": {
119+
"channel": "CURRENT",
119120
"configuration": {
120121
"bundle.sourcePath": "/Workspace/Users/[USERNAME]/.bundle/project_name_[UNIQUE_NAME]/dev/files/src"
121122
},
@@ -124,6 +125,7 @@
124125
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/project_name_[UNIQUE_NAME]/dev/state/metadata.json"
125126
},
126127
"development": true,
128+
"edition": "ADVANCED",
127129
"libraries": [
128130
{
129131
"notebook": {

acceptance/bundle/templates/default-python/integration_classic/output.txt

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ Resources:
7474
+ "url": "[DATABRICKS_URL]/jobs/[NUMBER]"
7575
}
7676
},
77-
@@ -125,4 +126,5 @@
78-
},
77+
@@ -127,4 +128,5 @@
7978
"development": true,
79+
"edition": "ADVANCED",
8080
+ "id": "[UUID]",
8181
"libraries": [
8282
{
83-
@@ -133,6 +135,6 @@
83+
@@ -135,6 +137,6 @@
8484
],
8585
"name": "[dev [USERNAME]] project_name_[UNIQUE_NAME]_pipeline",
8686
- "permissions": [],
@@ -89,7 +89,7 @@ Resources:
8989
+ "url": "[DATABRICKS_URL]/pipelines/[UUID]"
9090
}
9191
}
92-
@@ -143,5 +145,4 @@
92+
@@ -145,5 +147,4 @@
9393
]
9494
},
9595
- "targets": null,
@@ -197,8 +197,8 @@ Validation OK!
197197
+ "pause_status": "UNPAUSED",
198198
"periodic": {
199199
"interval": 1,
200-
@@ -118,21 +107,20 @@
201-
"project_name_[UNIQUE_NAME]_pipeline": {
200+
@@ -119,22 +108,21 @@
201+
"channel": "CURRENT",
202202
"configuration": {
203203
- "bundle.sourcePath": "/Workspace/Users/[USERNAME]/.bundle/project_name_[UNIQUE_NAME]/dev/files/src"
204204
+ "bundle.sourcePath": "/Workspace/Users/[USERNAME]/.bundle/project_name_[UNIQUE_NAME]/prod/files/src"
@@ -209,6 +209,7 @@ Validation OK!
209209
+ "metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/project_name_[UNIQUE_NAME]/prod/state/metadata.json"
210210
},
211211
- "development": true,
212+
"edition": "ADVANCED",
212213
"libraries": [
213214
{
214215
"notebook": {
@@ -224,7 +225,7 @@ Validation OK!
224225
+ "schema": "project_name_[UNIQUE_NAME]_prod"
225226
}
226227
}
227-
@@ -145,10 +133,10 @@
228+
@@ -147,10 +135,10 @@
228229
"targets": null,
229230
"workspace": {
230231
- "artifact_path": "/Workspace/Users/[USERNAME]/.bundle/project_name_[UNIQUE_NAME]/dev/artifacts",
@@ -347,8 +348,8 @@ Resources:
347348
+ "pause_status": "UNPAUSED",
348349
"periodic": {
349350
"interval": 1,
350-
@@ -119,21 +112,20 @@
351-
"project_name_[UNIQUE_NAME]_pipeline": {
351+
@@ -120,11 +113,10 @@
352+
"channel": "CURRENT",
352353
"configuration": {
353354
- "bundle.sourcePath": "/Workspace/Users/[USERNAME]/.bundle/project_name_[UNIQUE_NAME]/dev/files/src"
354355
+ "bundle.sourcePath": "/Workspace/Users/[USERNAME]/.bundle/project_name_[UNIQUE_NAME]/prod/files/src"
@@ -359,8 +360,9 @@ Resources:
359360
+ "metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/project_name_[UNIQUE_NAME]/prod/state/metadata.json"
360361
},
361362
- "development": true,
363+
"edition": "ADVANCED",
362364
"id": "[UUID]",
363-
"libraries": [
365+
@@ -132,10 +124,10 @@
364366
{
365367
"notebook": {
366368
- "path": "/Workspace/Users/[USERNAME]/.bundle/project_name_[UNIQUE_NAME]/dev/files/src/dlt_pipeline"
@@ -374,7 +376,7 @@ Resources:
374376
+ "schema": "project_name_[UNIQUE_NAME]_prod",
375377
"url": "[DATABRICKS_URL]/pipelines/[UUID]"
376378
}
377-
@@ -146,10 +138,10 @@
379+
@@ -148,10 +140,10 @@
378380
},
379381
"workspace": {
380382
- "artifact_path": "/Workspace/Users/[USERNAME]/.bundle/project_name_[UNIQUE_NAME]/dev/artifacts",

acceptance/bundle/templates/experimental-jobs-as-code/output.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ Warning: Ignoring Databricks CLI version constraint for development build. Requi
8383
"pipelines": {
8484
"my_jobs_as_code_pipeline": {
8585
"catalog": "catalog_name",
86+
"channel": "CURRENT",
8687
"configuration": {
8788
"bundle.sourcePath": "/Workspace/Users/[USERNAME]/.bundle/my_jobs_as_code/dev/files/src"
8889
},
@@ -91,6 +92,7 @@ Warning: Ignoring Databricks CLI version constraint for development build. Requi
9192
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/my_jobs_as_code/dev/state/metadata.json"
9293
},
9394
"development": true,
95+
"edition": "ADVANCED",
9496
"libraries": [
9597
{
9698
"notebook": {

acceptance/bundle/validate/empty_resources/empty_dict/output.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
{
2424
"pipelines": {
2525
"rname": {
26+
"channel": "CURRENT",
27+
"deployment": {
28+
"kind": "BUNDLE",
29+
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/BUNDLE/default/state/metadata.json"
30+
},
31+
"edition": "ADVANCED",
2632
"permissions": []
2733
}
2834
}

acceptance/bundle/validate/empty_resources/with_grants/output.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ Warning: unknown field: grants
3131
{
3232
"pipelines": {
3333
"rname": {
34+
"channel": "CURRENT",
35+
"deployment": {
36+
"kind": "BUNDLE",
37+
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/BUNDLE/default/state/metadata.json"
38+
},
39+
"edition": "ADVANCED",
3440
"permissions": []
3541
}
3642
}

0 commit comments

Comments
 (0)